/* =========================================
   1. GLOBAL RESET & UTILITIES
========================================= */
html { 
    scroll-behavior: smooth; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Open Sans', sans-serif; 
    color: #0d1b3e; 
    background-color: #ffffff; 
    font-size: 1.15rem; /* Increased base text size */
}

body.modal-open { 
    overflow: hidden; 
} 

a { 
    text-decoration: none; 
    transition: 0.3s; 
}

p, .details-desc, .testimonial-card p, .range-card p {
    font-size: 1.15rem;
}

section {
    position: relative;
    margin-top: 0;
}

.section-header-center { 
    text-align: center; 
    margin-bottom: 40px; 
}

/* Consolidated Section Titles */
.section-header-center h2, .services-alt h2, .equipment-header h2 { 
    font-family: 'Nunito Sans', sans-serif; 
    font-size: 3.2rem; 
    color: #111827; 
    font-weight: 800; 
    margin-bottom: 10px; 
}

.section-header-center p { 
    color: #4b5563; 
    max-width: 700px; 
    margin: 0 auto; 
    line-height: 1.6; 
}

/* Consolidated Sub-headings */
.range-card h3, .transform-card h3, .c-card h4 {
    font-size: 1.3rem;
}

.pill-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 8px 16px; 
    background: #eff6ff; 
    color: #3b82f6; 
    font-size: 0.85rem; 
    font-weight: 700; 
    border-radius: 20px; 
    margin-bottom: 15px; 
}

.pill-badge svg { width: 14px; height: 14px; }
.bg-blue { background: #3b82f6; }
.bg-green { background: #34d399; }

/* =========================================
   2. NAVBAR & NAVIGATION
========================================= */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px 5%; 
    z-index: 1000;
    box-shadow: none; 
    transition: all 0.3s ease; 
}

.logo-section { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 70px; width: auto; display: block; object-fit: contain; }
.logo-text h1 { font-family: 'Nunito Sans', sans-serif; font-size: 1.1rem; font-weight: 800; color: #ffffff; margin-bottom: 2px; transition: color 0.3s;}
.logo-text p { font-size: 0.65rem; color: rgba(255,255,255,0.8); transition: color 0.3s;}

.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #ffffff; font-weight: 600; font-size: 1.05rem; transition: color 0.3s;}

/* Hide hamburger menu on desktop */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}
.hamburger-menu svg { width: 32px; height: 32px; }
.navbar.scrolled .hamburger-menu { color: #111827; }

/* Navbar Actions & Contact */
.nav-actions { display: flex; align-items: center; gap: 15px; }
.contact-info { display: flex; align-items: center; gap: 8px; }
.phone-info { display: flex; flex-direction: column; font-size: 0.75rem; }
.phone-info .provider { color: rgba(255,255,255,0.8); font-size: 0.65rem; transition: color 0.3s;}
.phone-info .number { font-weight: 600; color: #ffffff; transition: color 0.3s;}
.contact-svg { stroke: rgba(255,255,255,0.8); transition: stroke 0.3s; }

/* Navbar Buttons */
.btn-book-nav, .btn-login-nav {
    font-size: 1.1rem;
    font-family: 'Nunito Sans', sans-serif;
    transition: all 0.3s ease;
}

.btn-book-nav { background: #3b82f6; color: white; padding: 10px 24px; border-radius: 30px; font-weight: 600; border: 1px solid #3b82f6;}
.btn-book-nav:hover { background: #2563eb; }

.btn-login-nav {
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 700;
    background: transparent;
    color: #374151; 
    border: 1.5px solid #e5e7eb;
}
.btn-login-nav:hover { background: #f9fafb; border-color: #d1d5db; color: #111827; }

/* Scrolled Navbar State */
.navbar.scrolled { background: #ffffff; box-shadow: 0 1px 15px rgba(0,0,0,0.05); padding: 12px 5%; }
.navbar.scrolled .logo-text h1 { color: #111827; }
.navbar.scrolled .logo-text p { color: #6b7280; }
.navbar.scrolled .nav-links a { color: #374151; }
.navbar.scrolled .phone-info .provider { color: #6b7280; }
.navbar.scrolled .phone-info .number { color: #374151; }
.navbar.scrolled .contact-svg { stroke: #666; }

/* Dynamic Navbar Active/Hover States */
.nav-links a.active {
    color: #ffffff !important; 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); 
    position: relative;
}
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background-color: #ffffff; border-radius: 2px; transition: all 0.3s ease;
}
.nav-links a:hover { color: #ffffff !important; text-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }

.navbar.scrolled .nav-links a.active { color: #3b82f6 !important; text-shadow: none !important; }
.navbar.scrolled .nav-links a.active::after { background-color: #3b82f6 !important; }
.navbar.scrolled .nav-links a:hover { color: #2563eb !important; text-shadow: none !important; }

/* =========================================
   3. HERO SECTION
========================================= */
.hero { 
    position: relative;
    height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: white; 
    /* IMAGE 1 (Base Layer): Reception Area */
    background: linear-gradient(110deg, rgba(59, 130, 246, 0.85) 0%, rgba(20, 184, 166, 0.75) 100%), url('images/bg.jpg') center/cover; 
    z-index: 1;
}

/* IMAGE 2 (Middle Layer): Treatment Room */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(110deg, rgba(59, 130, 246, 0.85) 0%, rgba(20, 184, 166, 0.75) 100%), url('images/chair1.jpg') center/cover;
    z-index: -2;
    opacity: 0;
    animation: fadeImageTwo 15s infinite;
}

/* IMAGE 3 (Top Layer): Clinic Front */
.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(110deg, rgba(59, 130, 246, 0.85) 0%, rgba(20, 184, 166, 0.75) 100%), url('images/front.jpg') center/cover;
    z-index: -1;
    opacity: 0;
    animation: fadeImageThree 15s infinite;
}

/* 15-Second Animation Cycle Logic */
@keyframes fadeImageTwo {
    0%, 28% { opacity: 0; }    /* Hidden while Image 1 shows */
    33%, 61% { opacity: 1; }   /* Fades in and holds Image 2 */
    66%, 100% { opacity: 0; }  /* Fades out as Image 3 takes over */
}

@keyframes fadeImageThree {
    0%, 61% { opacity: 0; }    /* Hidden while Image 1 & 2 show */
    66%, 94% { opacity: 1; }   /* Fades in and holds Image 3 */
    100% { opacity: 0; }       /* Fades out to reveal Image 1 again */
}

/* Protects the text so it never fades out or gets covered */
.hero-content {
    position: relative;
    z-index: 2; 
}

.hero h2 { font-family: 'Nunito Sans', sans-serif; font-size: 4.5rem; font-weight: 800; margin-bottom: 20px; }
.hero p { max-width: 600px; margin: 0 auto 30px; font-size: 1.3rem; }
.btn-request { background: white; color: #3b82f6; padding: 15px 35px; border-radius: 35px; font-weight: 700; display: inline-block; font-size: 1.1rem; }
/* =========================================
   4. SERVICES SECTIONS
========================================= */
.services-alt { padding: 40px 6% 40px; text-align: center; background: #ffffff; }
.section-sub { color: #6b7280; margin-bottom: 50px; font-size: 1rem; }
.transformations-grid { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap; 
    align-items: flex-start; /* ADD THIS LINE: Prevents siblings from stretching */
}
.transform-card { width: 340px; background: white; padding: 20px; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid #f3f4f6; }
.transform-card h3 { font-family: 'Nunito Sans', sans-serif; margin-top: 10px; color: #111827; font-weight: 800; }

.img-box { position: relative; border-radius: 12px; overflow: hidden; }
.img-box img { width: 100%; height: 190px; object-fit: cover; display: block; }
.badge { position: absolute; bottom: 10px; left: 10px; padding: 4px 12px; border-radius: 12px; color: white; font-size: 0.7rem; font-weight: 700; }
.badge.before { background: #ff4d4f; }
.badge.after { background: #52c41a; }
.arrow-down { display: block; margin: 12px 0; color: #3b82f6; font-size: 1.5rem; font-weight: 800; }

.services-main { padding: 40px 6% 100px; background: #ffffff; }
.services-range-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
    max-width: 1400px; 
    margin: 0 auto; 
    align-items: start; /* ADD THIS LINE: Prevents row stretching */
}
.range-card { background: #ffffff; padding: 30px 25px; border-radius: 16px; border: 1px solid #e5e7eb; text-align: left; display: flex; flex-direction: column; box-shadow: 0 4px 12px rgba(0,0,0,0.02); }
.range-card h3 { font-family: 'Nunito Sans', sans-serif; margin-bottom: 12px; color: #111827; font-weight: 800; }
.range-card p { color: #6b7280; line-height: 1.6; margin-top: auto; }

.range-icon-box { width: 48px; height: 48px; border-radius: 12px; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; }
.range-card:nth-child(odd) .range-icon-box { background: linear-gradient(135deg, #44bbfb, #45c4c0); }
.range-card:nth-child(even) .range-icon-box { background: linear-gradient(135deg, #5bb1fb, #3b82f6); }
.range-icon-box svg { stroke: white; width: 22px; height: 22px; }

/* =========================================
   5. FORMS & INPUTS (Appointment & Contact)
========================================= */
.appointment-section { position: relative; z-index: 1; overflow: hidden; padding: 40px 20px 80px; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.appointment-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('images/front.jpg'); background-size: cover; background-position: center; filter: blur(8px); transform: scale(1.05); z-index: -2; }
.appointment-section::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.6); z-index: -1; }

.form-wrapper { background: #ffffff; width: 100%; max-width: 800px; padding: 45px 50px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); }
.form-section-title { font-family: 'Nunito Sans', sans-serif; font-size: 1.25rem; font-weight: 800; color: #111827; margin: 35px 0 20px 0; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.align-center-row { align-items: flex-end; } 
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-size: 1.15rem; color: #111827; font-weight: 700; margin-bottom: 8px; }

.appointment-form-clean input, 
.appointment-form-clean select, 
.appointment-form-clean textarea,
.modern-feedback-name { 
    width: 100%; padding: 14px 18px; background-color: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 0.95rem; outline: none; transition: 0.3s; font-family: 'Open Sans', sans-serif; margin-bottom: 15px;
}
.appointment-form-clean input:not([type="radio"]):not([type="checkbox"]), .modern-feedback-name { height: 50px; }
.appointment-form-clean textarea { height: auto; }

.appointment-form-clean input:focus, 
.appointment-form-clean select:focus, 
.appointment-form-clean textarea:focus,
.modern-feedback-name:focus { 
    border-color: #3b82f6; background-color: #ffffff; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.appointment-form-clean input[type="radio"] { width: 18px !important; height: 18px !important; min-width: 18px; cursor: pointer; margin: 0; flex: none; }
.radio-group { display: flex; gap: 15px; align-items: center; height: 50px; }
.radio-label { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; white-space: nowrap; }

.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin: 30px 0; }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; cursor: pointer; accent-color: #3b82f6; }

.btn-submit-clean { width: 100%; padding: 16px; border-radius: 12px; border: none; background: linear-gradient(to right, #3b82f6, #4cd0a5); color: white; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.3s; }
.btn-submit-clean:hover { filter: brightness(1.05); transform: translateY(-2px); }

/* =========================================
   6. FEEDBACK SECTION
========================================= */
.feedback-section { padding: 40px 5% 100px; background: #ffffff; display: flex; flex-direction: column; align-items: center; }
.feedback-container { display: flex; gap: 40px; width: 100%; max-width: 1000px; margin-bottom: 30px; }
.feedback-form-box { flex: 1; background: #ffffff; padding: 40px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid #f3f4f6; }
.star-rating { display: flex; gap: 15px; margin-bottom: 40px; justify-content: center; }
.star-rating svg { width: 45px; height: 45px; cursor: pointer; transition: 0.2s; }
.star-rating svg.active { fill: #fbbf24; stroke: #fbbf24; }

.modern-feedback-input { width: 100%; padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 12px; background-color: #f8fafc; font-family: 'Nunito Sans', sans-serif; font-size: 1rem; color: #1f2937; transition: 0.3s; resize: vertical; min-height: 120px; margin-bottom: 20px; }
.modern-feedback-input:focus { outline: none; border-color: #48b29c; background: #fff; box-shadow: 0 0 0 4px rgba(72, 178, 156, 0.15); }
.modern-feedback-name::placeholder { color: #9ca3af; }

.btn-feedback-submit { display: flex; align-items: center; justify-content: center; width: 100%; gap: 8px; padding: 14px 30px; border: none; border-radius: 12px; background: linear-gradient(to right, #3b82f6, #4cd0a5); color: white; font-size: 1rem; font-weight: 700; cursor: pointer; }

/* Testimonials */
.feedback-testimonials-box { flex: 1; display: flex; flex-direction: column; }
.testimonials-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.testimonials-header svg { width: 24px; height: 24px; }
.testimonials-header h3 { font-family: 'Nunito Sans', sans-serif; font-size: 1.3rem; color: #111827; font-weight: 800; }
.testimonials-scroll-area { height: 380px; overflow-y: auto; padding-right: 20px; display: flex; flex-direction: column; gap: 15px; }
.testimonials-scroll-area::-webkit-scrollbar { width: 6px; }
.testimonials-scroll-area::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #3b82f6, #4cd0a5); border-radius: 10px; }
.testimonial-card { background: #ffffff; border: 1px solid #f3f4f6; padding: 20px; border-radius: 12px; }
.t-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.t-header h4 { font-size: 0.95rem; font-weight: 700; }
.t-header span { font-size: 0.75rem; color: #9ca3af; }
.t-stars svg { width: 14px; height: 14px; }
.testimonial-card p { color: #6b7280; font-style: italic; line-height: 1.5; }
.testimonials-footer-note { background: #eff6ff; color: #1e3a8a; padding: 15px; border-radius: 12px; text-align: center; font-size: 0.85rem; }

/* =========================================
   7. ABOUT & FACILITIES
========================================= */
.about-section { padding: 40px 5% 40px; background: #ffffff; display: flex; flex-direction: column; align-items: center; max-width: 1400px; margin: 0 auto; }
.about-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; margin-bottom: 40px; }
.gallery-img-card { position: relative; border-radius: 16px; overflow: hidden; height: 260px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.gallery-img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 20px 20px; background: linear-gradient(to top, rgba(17, 24, 39, 0.9), transparent); color: white; }

.mission-vision-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; width: 100%; }
.mv-card { padding: 40px; border-radius: 20px; }
.mission-card { background: #f0f7ff; }
.vision-card { background: #f0fdf4; }
.mv-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; justify-content: center; align-items: center; margin-bottom: 25px; }
.mission-card .mv-icon { background: #3b82f6; }
.vision-card .mv-icon { background: #34d399; }

.contact-section { padding: 40px 5% 100px; background: #ffffff; max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; }
.contact-split-container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; margin-top: 50px; }
.map-side { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.08); background: white; border: 1px solid #f3f4f6; }
.map-iframe-wrapper { flex: 1; min-height: 350px; }
.map-info-box { background: linear-gradient(135deg, #3b82f6, #4cd0a5); color: white; padding: 25px 30px; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; }
.c-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 25px; }
.c-card h4 { font-weight: 800; margin-bottom: 10px; }
.c-card p { color: #6b7280; line-height: 1.5; }

.c-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; justify-content: center; align-items: center; margin-bottom: 15px; flex-shrink: 0; }
.c-icon svg { width: 22px; height: 22px; stroke: white; }

/* Pediatric Banner */
.pediatric-banner { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 16px; padding: 25px; margin-top: 10px;}
.ped-header svg { width: 24px !important; height: 24px !important; min-width: 24px; flex-shrink: 0; }
.phone-item { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.phone-item svg { width: 18px !important; height: 18px !important; min-width: 18px; stroke: #60a5fa; }
.phone-item div { display: flex; flex-direction: column; }
.phone-item span { font-size: 0.9rem; font-weight: 700; color: #1e3a8a; line-height: 1; }
.phone-item small { font-size: 0.7rem; color: #6b7280; }

/* Contact Us Specifics */
.contact-us-section { padding: 40px 5% 100px; background: #f9fafb; display: flex; flex-direction: column; align-items: center; }
.cu-container { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; width: 100%; max-width: 1200px; margin-top: 30px;}
.cu-card { background: #ffffff; border: 1px solid #f3f4f6; border-radius: 16px; padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); margin-bottom: 15px;}
.cu-form-wrapper { background: #ffffff; width: 100%; padding: 45px 50px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); }
.cu-form-wrapper input, .cu-form-wrapper textarea { width: 100%; padding: 14px 18px; background-color: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 0.95rem; margin-bottom: 15px; outline: none; }
.btn-submit { width: 100%; padding: 16px; border: none; border-radius: 12px; background: linear-gradient(to right, #3b82f6, #4cd0a5); color: white; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 1.1rem; }

/* =========================================
   8. MODALS & FLOATING BUTTON
========================================= */
.floating-btn { position: fixed; bottom: 30px; right: 30px; background: #3facfb; color: white; padding: 14px 28px; border-radius: 35px; font-weight: 600; display: flex; align-items: center; gap: 8px; z-index: 1000; box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3); }

/* Clean Modal Overlay */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background-color: rgba(17, 24, 39, 0.7); 
    z-index: 99999; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease; 
}

.modal-overlay.show-modal { 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto;
}

.modal-box { 
    background: #ffffff; 
    border-radius: 20px; 
    padding: 40px; 
    width: 400px; 
    max-width: 90%; 
    position: relative; 
    text-align: center; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    transform: translateY(-20px); 
    transition: transform 0.3s ease; 
    margin: 0 auto; 
}

.modal-overlay.show-modal .modal-box { 
    transform: translateY(0); 
}

.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; color: #9ca3af; cursor: pointer; transition: 0.2s; }
.modal-close:hover { color: #111827; }

/* Modal Content Styling */
.modal-box h2 { font-family: 'Nunito Sans', sans-serif; font-size: 1.8rem; font-weight: 800; color: #111827; margin-bottom: 25px; }
.modal-avatar { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 25px; background: linear-gradient(to bottom right, #3b82f6, #4cd0a5); display: flex; align-items: center; justify-content: center; }

.modal-tabs { display: flex; background: #f3f4f6; border-radius: 12px; padding: 5px; margin-bottom: 30px; }
.tab-btn { flex: 1; padding: 12px; border: none; background: transparent; border-radius: 8px; cursor: pointer; font-weight: 700; color: #6b7280; font-family: 'Open Sans', sans-serif; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; }
.tab-btn.active { background: #ffffff; color: #3b82f6; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.tab-content { display: none; } 
.tab-content.active { display: block; animation: fadeIn 0.4s ease forwards; }

.form-group-modal { margin-bottom: 20px; text-align: left; }
.form-group-modal label { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #374151; font-weight: 600; margin-bottom: 8px; }
.form-group-modal input, .form-group-modal select, .form-group-modal textarea { width: 100%; padding: 14px 18px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 0.95rem; outline: none; transition: 0.3s; font-family: 'Open Sans', sans-serif; }
.form-group-modal input:focus, .form-group-modal select:focus, .form-group-modal textarea:focus { border-color: #3b82f6; background: #ffffff; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.btn-modal { width: 100%; padding: 16px; border: none; border-radius: 12px; background: linear-gradient(to right, #3b82f6, #4cd0a5); color: white; font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 10px; transition: 0.3s; }
.btn-modal:hover { filter: brightness(1.05); transform: translateY(-2px); }

.modal-footer { margin-top: 25px; font-size: 0.85rem; color: #6b7280; line-height: 1.6; }
.modal-footer a { color: #3b82f6; font-weight: 700; }
.modal-footer a:hover { text-decoration: underline; }
.admin-note { font-size: 0.8rem; margin-bottom: 5px; }
.forgot-link { display: inline-block; margin-top: 15px; color: #9ca3af; font-weight: 600; }
.forgot-link:hover { color: #374151; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   9. MEDIA QUERIES
========================================= */
@media (max-width: 1100px) { 
    .cu-container { grid-template-columns: 1fr; } 
}

@media (max-width: 768px) { 
    .form-row { flex-direction: column; gap: 0; } 
    .form-wrapper { padding: 30px 20px; } 
}

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
========================================= */

/* TABLETS & SMALL DESKTOPS (Screens 1100px and below) */
@media (max-width: 1100px) { 
    /* Condense 4-column grids into 2 columns */
    .services-range-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .about-gallery { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    /* Stack split containers (e.g. Map on top, Info on bottom) */
    .contact-split-container, .cu-container { 
        grid-template-columns: 1fr; 
    }

    /* Shrink giant hero text slightly */
    .hero h2 { 
        font-size: 3.5rem !important; 
    }
}

/* MOBILE PHONES (Screens 768px and below) */
@media (max-width: 768px) { 
    /* 1. Fix the Navigation Bar */
   /* 1. Mobile Navbar: Hamburger Menu */
    .navbar { 
        display: block; 
        padding: 15px 20px; 
        background: rgba(17, 24, 39, 0.95); 
    }
    
    .logo-section { display: flex; }

    .hamburger-menu {
        display: block; 
        position: absolute;
        top: 25px;
        right: 20px;
        color: #ffffff !important; 
    }

    /* Hide links and actions by default on mobile */
    .nav-links, .nav-actions { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        align-items: center;
        text-align: center; 
        margin-top: 20px; 
        gap: 20px;
    }
    
    /* When Javascript adds 'menu-open', show the links */
    .navbar.menu-open .nav-links,
    .navbar.menu-open .nav-actions {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    /* 2. Force all Grids to 1 Column */
    .services-range-grid, 
    .about-gallery, 
    .contact-grid, 
    .mission-vision-container { 
        grid-template-columns: 1fr; 
    }

    /* 3. Stack all Flexbox Rows Vertically */
    .form-row, 
    .dob-group, 
    .feedback-container { 
        flex-direction: column; 
        gap: 0; 
    }
    .radio-group {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 10px;
    }

    /* 4. Adjust Padding and Text Sizes to prevent overflow */
    .hero h2 { font-size: 2.5rem !important; }
    .hero p { font-size: 1.1rem !important; }
    .section-header-center h2 { font-size: 2.2rem !important; }
    
    .form-wrapper, .feedback-form-box, .cu-form-wrapper { 
        padding: 30px 20px; 
    }
    
    /* 5. Ensure the Modal doesn't bleed off the screen */
    .modal-box { 
        padding: 25px 15px !important; 
        width: 95% !important;
    }
    
    /* 6. Center Mission & Vision Cards on Mobile */
    .mv-card {
        text-align: center;
        padding: 30px 20px; 
    }
    
    .mv-card .mv-icon {
        margin: 0 auto 20px auto; 
    }

    /* 7. Perfectly Align Birthdate and Sex on Mobile */
    .dob-group, 
    .form-row:has(input[type="date"]), 
    .form-row:has(input[type="radio"]) {
        flex-direction: row !important; 
        gap: 15px !important;
    }

    .dob-group .form-group, 
    .form-row:has(input[type="date"]) .form-group {
        width: 50% !important; 
        flex: 1;
        margin-bottom: 15px;
    }

    .radio-group {
        flex-direction: row !important; 
        align-items: center !important;
        height: 50px !important; 
        margin-top: 0 !important;
        gap: 10px !important;
    }
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    padding: 30px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.file-drop-area:hover, .file-drop-area.dragover {
    background-color: #f1f5f9;
    border-color: #3b82f6; /* Blue border on hover/drag */
}

.file-drop-area input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0; /* Hides the default file input visually but keeps it clickable */
    cursor: pointer;
}

.drop-msg {
    color: #64748b;
    font-size: 0.95rem;
}

.file-preview {
    margin-top: 10px;
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.85rem;
    z-index: 2; /* Ensures text is visible over the input */
}

/* =========================================
   MOBILE RESPONSIVENESS & HAMBURGER MENU
========================================= */
@media (max-width: 860px) {
    /* Show the hamburger button */
    .hamburger-menu {
        display: block;
    }
    
    /* Restructure nav-links into a hidden dropdown */
    .nav-links {
        position: absolute;
        top: 100%; /* Puts the menu directly below the navbar */
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 0;
        max-height: 0; /* Hides the menu by default */
        overflow: hidden;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    /* When JavaScript adds .menu-open, expand the menu */
    .navbar.menu-open .nav-links {
        max-height: 400px; 
        padding: 20px 0;
    }
    
    /* Fix text colors and spacing for mobile view */
    .nav-links a {
        color: #111827 !important; /* Force dark text on white background */
        text-shadow: none !important;
        padding: 12px 20px;
        text-align: center;
        display: block;
    }

    .nav-links a:hover, .nav-links a.active {
        color: #3b82f6 !important;
        background-color: #f9fafb;
    }

    .nav-links a.active::after {
        display: none; /* Hide the blue active underline on mobile */
    }

    /* Hide the phone number to prevent overlapping with buttons */
    .nav-actions .contact-info {
        display: none; 
    }
}

/* For extremely small screens, shrink the logo a bit */
@media (max-width: 480px) {
    .logo-img { height: 50px; }
    .logo-text h1 { font-size: 0.9rem; }
    .btn-login-nav, .btn-book-nav { padding: 8px 15px; font-size: 0.9rem; }
}

/* =========================================
   EXPANDABLE SERVICE CARDS
========================================= */
.expandable-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.expandable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.expandable-card h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.toggle-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: #3b82f6;
    transition: transform 0.3s ease;
    line-height: 1;
}
.expandable-card.expanded .toggle-icon {
    transform: rotate(45deg); /* Turns the + into an X */
}
.service-desc-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}
.expandable-card.expanded .service-desc-wrapper {
    max-height: 400px; /* Expands container */
    opacity: 1;
    margin-top: 12px;
}
.btn-book-service {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: 0.3s;
}
.btn-book-service:hover {
    background: #3b82f6;
    color: #ffffff;
}