/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo h2 {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #2563eb;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-booking-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
    transition: all 0.3s ease !important;
    margin-left: 1rem !important;
}

.nav-booking-btn:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.nav-booking-btn::after {
    display: none !important;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-button:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.lang-button.active {
    border-color: #2563eb;
    background: #2563eb;
    color: white;
}

.lang-button img {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: white;
    color: #2563eb;
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-tertiary:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.hero-booking-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4) !important;
    animation: pulse-booking 2s infinite !important;
}

.hero-booking-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5) !important;
}

@keyframes pulse-booking {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-icon {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ai-icon i {
    font-size: 4rem;
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #f9fafb;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.founder-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.founder-image {
    flex-shrink: 0;
}

.placeholder-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.founder-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.founder-title {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
}

.founder-description {
    color: #6b7280;
    line-height: 1.7;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-card.featured {
    border: 2px solid #2563eb;
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

.course-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.course-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.course-duration {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.course-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.course-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #6b7280;
}

.course-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Advantages Section */
.advantages {
    background: #f9fafb;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.advantage-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.advantage-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.contact-item a {
    color: #2563eb;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-section p i {
    margin-right: 0.5rem;
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 0.75rem 20px;
        min-height: 60px;
    }
    
    .nav-menu {
        margin: 0.5rem 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.25rem 0;
    }
    
    .language-selector {
        margin-top: 0.5rem;
    }
    
    .hero {
        padding: 180px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .founder-info {
        flex-direction: column;
        text-align: center;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .course-card.featured {
        transform: none;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .team-grid {
        gap: 1rem;
    }
    
    .nav-container {
        padding: 0.5rem 15px;
        min-height: 50px;
    }
    
    .nav-logo h2 {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        margin: 0.25rem 0;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }
    
    .lang-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 200px 0 40px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .ai-icon {
        width: 120px;
        height: 120px;
    }
    
    .ai-icon i {
        font-size: 2.5rem;
    }
    
    section {
        padding: 50px 0;
    }
}

/* Correzioni specifiche per iPhone e Safari mobile */
@media screen and (max-width: 414px) and (-webkit-min-device-pixel-ratio: 2) {
    .hero {
        padding: 220px 0 40px;
    }
    
    .nav-container {
        padding: 0.4rem 15px;
    }
}

/* Fix per il viewport height su iOS */
@supports (-webkit-appearance: none) {
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

/* Ulteriori correzioni per dispositivi mobili */
@media (max-width: 768px) {
    body {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
    }
    
    .hero {
        min-height: calc(var(--vh, 1vh) * 100);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.founder-info,
.course-card,
.advantage-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* iPhone Safari specific fixes */
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
    /* Fix per il calendario su iPhone Safari */
    .calendar-grid {
        -webkit-overflow-scrolling: touch;
        overflow: visible;
    }
    
    .calendar-day {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        outline: none;
        border: none;
        -webkit-appearance: none;
    }
    
    .calendar-day.available {
        -webkit-tap-highlight-color: rgba(34, 197, 94, 0.2);
    }
    
    .course-option {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        outline: none;
        -webkit-appearance: none;
    }
    
    /* Fix per il viewport su iPhone */
    .booking {
        min-height: calc(100vh - 100px);
        overflow-x: hidden;
    }
    
    .calendar-section,
    .course-selection,
    .booking-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Booking System Styles */
.booking {
    position: relative;
    z-index: 1;
    padding-top: 100px; /* Spazio per header fisso */
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Calendar Section */
.calendar-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin: 0;
}

.calendar-nav {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.calendar-nav:hover {
    background: #5a67d8;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    background: white;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.calendar-day.header {
    background: #667eea;
    color: white;
    font-weight: 600;
    cursor: default;
}

.calendar-day:hover:not(.header):not(.past) {
    background: #f3f4f6;
}

.calendar-day.available {
    background: #10b981;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    /* Ottimizzazioni per iPhone */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.calendar-day.available:hover {
    background: #059669;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

.calendar-day.blocked {
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #ef4444;
    cursor: not-allowed;
    position: relative;
}

.calendar-day.blocked::after {
    content: "🚫";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.7rem;
}

.calendar-day.blocked:hover {
    background: #fef2f2;
    transform: none;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #4f46e5 !important;
    color: white !important;
    font-weight: 600;
    border: 3px solid #3730a3 !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
    z-index: 2;
    position: relative;
}

.calendar-day.past {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Course Selection */
.course-selection {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.course-selection h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.course-options {
    margin-bottom: 2rem;
}

.course-option {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    /* Ottimizzazioni per iPhone */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.course-option:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.course-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #4f46e5;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    color: white;
    transform: scale(1.02);
}

.course-option.selected h4,
.course-option.selected p {
    color: white;
}

.course-option.selected .course-price {
    color: #fbbf24;
}

.course-option .course-icon {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.course-option h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.course-option p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

/* Status Panel */
.status-panel {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.status-panel h4 {
    color: #0369a1;
    margin-bottom: 1rem;
}

.booking-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.participants-count {
    font-size: 1.2rem;
    font-weight: 600;
    color: #059669;
}

.progress-bar {
    background: #e5e7eb;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    transition: width 0.5s ease;
}

.status-message {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    border-radius: 5px;
}

/* Booking Form */
.booking-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.booking-form h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.booking-instructions {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.booking-instructions h4 {
    color: #0369a1;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.booking-instructions p {
    color: #075985;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.location-info {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.location-info h4 {
    color: #166534;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.location-info p {
    color: #15803d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.booking-form .btn {
    margin-top: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-form .btn i {
    font-size: 1.1rem;
}

.booking-form .btn small {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 0.25rem;
    opacity: 0.9;
    color: #fbbf24;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.alert.success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Contact Info Section */
.contact-info-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-section h3 {
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.contact-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Mobile Responsive for Booking System */
@media (max-width: 768px) {
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calendar-section {
        padding: 1.5rem;
    }
    
    .calendar-grid {
        font-size: 0.85rem;
        gap: 2px;
    }
    
    .calendar-day {
        min-height: 45px;
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    .course-option {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-items {
        grid-template-columns: 1fr;
    }
    
    .booking-form {
        padding: 1.5rem;
    }
}

/* iPhone Specific Optimizations */
@media (max-width: 430px) {
    .calendar-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .calendar-header {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .calendar-header h3 {
        font-size: 1.1rem;
    }
    
    .calendar-nav {
        padding: 0.5rem;
        font-size: 1.2rem;
    }
    
    .calendar-grid {
        font-size: 0.8rem;
        gap: 1px;
        padding: 0.5rem;
    }
    
    .calendar-day {
        min-height: 40px;
        padding: 0.3rem;
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .calendar-day.header {
        font-size: 0.7rem;
        padding: 0.2rem;
        font-weight: 600;
    }
    
    .calendar-day.available {
        font-weight: 600;
    }
    
    .course-selection {
        padding: 1rem;
    }
    
    .course-options {
        gap: 1rem;
    }
    
    .course-option {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .course-option h4 {
        font-size: 1rem;
    }
    
    .course-option p {
        font-size: 0.85rem;
    }
    
    .course-price {
        font-size: 1.1rem;
    }
    
    .status-panel {
        padding: 1rem;
    }
    
    .booking-form {
        padding: 1rem;
    }
    
    .booking-instructions,
    .location-info {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .booking-instructions h4,
    .location-info h4 {
        font-size: 0.9rem;
    }
    
    .booking-instructions p,
    .location-info p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* iPhone 12/13/14 Pro Max specific */
@media (max-width: 428px) and (min-width: 415px) {
    .calendar-day {
        min-height: 42px;
        font-size: 0.85rem;
    }
    
    .calendar-grid {
        font-size: 0.85rem;
    }
}

/* iPhone SE and smaller devices */
@media (max-width: 375px) {
    .calendar-section {
        padding: 0.8rem;
        background: white;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
    }
    
    .calendar-grid {
        font-size: 0.75rem;
        gap: 2px;
        padding: 0.5rem;
        background: #f8fafc;
        border-radius: 10px;
    }
    
    .calendar-day {
        min-height: 40px;
        padding: 0.3rem;
        font-size: 0.75rem;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .calendar-day.header {
        font-size: 0.7rem;
        padding: 0.2rem;
        background: #e2e8f0;
        font-weight: 700;
        color: #475569;
    }
    
    .calendar-day.available {
        background: #10b981 !important;
        color: white !important;
        font-weight: 700;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
        transform: scale(1.02);
    }
    
    .course-option {
        padding: 0.8rem;
        background: white;
        border: 2px solid #e2e8f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .course-option h4 {
        font-size: 1rem;
        color: #1e40af;
        margin-bottom: 0.5rem;
    }
    
    .course-option p {
        font-size: 0.85rem;
        color: #64748b;
    }
    
    .course-price {
        font-size: 1.2rem;
        color: #059669;
        font-weight: 700;
    }
    
    .booking-form {
        padding: 1rem;
        background: white;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .booking-instructions,
    .location-info {
        padding: 0.8rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    .booking-instructions h4,
    .location-info h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .booking-instructions p,
    .location-info p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Responsive Rules for New Booking Buttons */
@media (max-width: 768px) {
    .nav-booking-btn {
        display: none !important;
    }
    
    .hero-booking-btn {
        font-size: 1rem !important;
        padding: 0.9rem 1.8rem !important;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-booking-btn {
        font-size: 0.95rem !important;
        padding: 0.8rem 1.5rem !important;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .hero-booking-btn {
        font-size: 0.9rem !important;
        padding: 0.75rem 1.2rem !important;
    }
}