/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
    /* Colors */
    --color-dark-green: #0a332c;
    --color-dark-green-hover: #072621;
    --color-card-dark: #082a24;
    --color-card-darker: #051c18;

    --color-gold: #c08e5c;
    --color-gold-hover: #a8794c;
    --color-gold-light: #f3ebdf;
    --gradient-gold: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);

    --color-bg-light: #fbfaf8;
    --color-bg-beige: #f5f3ee;
    --color-white: #ffffff;

    --color-text-dark: #1f2b28;
    --color-text-light: #ffffff;
    --color-text-gray: #666666;

    --color-border: #e2dfd8;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 100px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
    /* Scaled up from default 16px for better readability */
    overflow-x: clip;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Placeholder for images before they are added */
.placeholder-img {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.875rem;
    position: relative;
}

.placeholder-img::after {
    content: attr(data-placeholder);
}

/* ==========================================================================
   Typography utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.accent-serif {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-gold);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    white-space: nowrap;
    width: max-content;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--color-dark-green);
    color: var(--color-white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    /* Slightly smaller for a cleaner look */
    padding: 0.5rem;
    color: #c08e5c;
    /* Solid gold to match logo */
}

.hamburger-btn i {
    display: block;
}

.hamburger-btn:hover {
    opacity: 0.8;
}

.logo-img {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 300px;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 1.25rem;
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--color-gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--color-white);
    color: var(--color-dark-green);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.phone-link:hover {
    background-color: #f0f0f0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-bottom: var(--space-xl);
    text-align: center;
    background-color: var(--color-bg-light);
}

.hero-image-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 2rem;
    will-change: transform, top, position; /* Hardware acceleration */
}

#video-sentinel {
    position: absolute;
    top: 0;
    height: 1px;
    width: 1px;
    pointer-events: none;
    visibility: hidden;
}


.hero-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 550px;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 0 auto;
}

/* ── Hero Video ─────────────────────────────────────────────────────────── */
#hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay: mute + close buttons */
.video-controls {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.video-close-btn,
.video-mute-btn {
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.25s ease;
}

.video-close-btn:hover,
.video-mute-btn:hover {
    background: rgba(0, 0, 0, 0.80);
}

/* Desktop: No sticky styles here. Video stays in hero. */

/* ── After close — video plays inline in hero, no longer sticky ─────────── */
.hero-image-container.is-closed {
    position: relative !important;
    top: auto !important;
    box-shadow: none !important;
    z-index: 1;
    padding: 2rem;
    margin: 0 auto 3rem;
    max-width: 1400px;
}

.hero:has(.is-closed) {
    padding-top: 0;
}

/* Hide close button once video is in-place (no longer sticky) */
.hero-image-container.is-closed .video-close-btn {
    display: none;
}

.hero-content h1 {
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Utilities & Layouts
   ========================================================================== */
.section {
    padding: var(--space-xl) 0;
}

.bg-beige {
    background-color: var(--color-bg-beige);
}

.section-dark {
    background-color: var(--color-dark-green);
    color: var(--color-white);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.pb-xl {
    padding-bottom: var(--space-xl);
}

.rounded-img {
    border-radius: var(--radius-md);
    width: 100%;
    object-fit: cover;
}

.gold-text {
    color: var(--color-gold);
}

.gold-caps {
    color: var(--color-gold);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gold-caps-sm {
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.italic {
    font-style: italic;
}

/* ==========================================================================
   Natural Refresh
   ========================================================================== */
.checklist-title {
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checklist li {
    background-color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.info-box {
    background-color: #efede7;
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    text-align: center;
}

/* ==========================================================================
   Patient Stories
   ========================================================================== */
.stories-carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.carousel-nav-btn {
    background-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #b58c2a !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    flex-shrink: 0;
    pointer-events: auto !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn i {
    color: #b58c2a !important;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.carousel-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.7) !important;
    transform: scale(1.1);
}

.prev-btn {
    margin-right: 1rem;
}

.next-btn {
    margin-left: 1rem;
}

.stories-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    flex: 1;
}

.stories-grid::-webkit-scrollbar {
    display: none;
}

.story-card {
    flex: 0 0 calc(50% - 1rem);
    scroll-snap-align: start;
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
    background-color: var(--color-white);
    text-align: center;
}

.before-after-img {
    position: relative;
    display: block;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    line-height: 0;
}

.before-after-img>img:first-child {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

.watermark {
    position: absolute;
    bottom: 12px;
    right: 12px;
    max-height: 22px;
    width: auto;
    opacity: 0.75;
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
    display: block;
}



.story-caption {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    margin-bottom: 2rem;
}

.treatment-by {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.doctor-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.doctor-reg {
    font-size: 0.85rem;
    color: var(--color-text-gray);
}

.disclaimer-box {
    background-color: var(--color-bg-beige);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--color-text-gray);
    text-align: center;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================================================
   Why Lifestyle Smiles
   ========================================================================== */
.subtitle-light {
    font-size: 1.1rem;
    opacity: 0.9;
}

.experience-list-container {
    padding-top: 1rem;
}

.experience-list-container h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.experience-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experience-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.approach-card {
    background-color: var(--color-card-dark);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.approach-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.approach-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.approach-inner {
    background-color: var(--color-card-darker);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
}

.approach-inner p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Meet Dr Julie Taing
   ========================================================================== */
.doctor-image-wrapper {
    position: relative;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d1d1;
    cursor: pointer;
}

.dot.active {
    background-color: var(--color-gold);
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.value-list li {
    background-color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.doctor-quote {
    background-color: var(--color-bg-beige);
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 0.95rem;
}

/* ==========================================================================
   Suitability Form Section
   ========================================================================== */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.steps-container {
    padding-right: 2rem;
}

.step-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    transition: border-color 0.3s ease;
}

.step-card.active-step {
    border-color: var(--color-gold);
    border-width: 2px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-bg-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.step-num {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--color-text-gray);
}

.form-container {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-dark-green);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background: transparent;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus {
    outline: none;
    border-bottom-color: var(--color-gold);
}

input::placeholder {
    color: #aaa;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    color: var(--color-text-dark) !important;
    cursor: pointer;
    text-transform: uppercase;
}

.phone-input {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.country-code {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.secure-text {
    font-size: 0.75rem;
    color: var(--color-text-gray);
}

/* ==========================================================================
   Multi-Stage Form Styles
   ========================================================================== */
.form-stage {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    /* Hide native icon */
}

.input-with-icon i {
    pointer-events: auto;
    cursor: pointer;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
}

.form-group label.checkbox-block {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-gray);
    letter-spacing: normal;
    margin-bottom: 0.75rem;
    min-height: 75px;
    /* Consistent height for single/double lines */
}

.checkbox-block:hover {
    border-color: var(--color-gold);
}

.checkbox-block input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--color-dark-green);
}

.custom-select {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
}

.custom-select select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    appearance: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-dark);
    cursor: pointer;
}

.custom-select select:focus {
    outline: none;
}

.custom-select::after {
    content: '\f078';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-dark);
    pointer-events: none;
}

.disabled-btn {
    background-color: #ccc;
    color: #fff;
    cursor: not-allowed;
    border: none;
}

.disabled-btn:hover {
    background-color: #ccc;
}

/* Upload Carousel */
.upload-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.upload-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.upload-carousel-track::-webkit-scrollbar {
    display: none;
}

.upload-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 1rem;
    scroll-snap-align: start;
}

.upload-box {
    border: 2px dashed #d1cfc7;
    background-color: #fbfaf8;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    border-color: var(--color-gold);
    background-color: var(--color-gold-light);
}

.upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    z-index: 2;
}

.upload-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

.upload-nav-btn:hover {
    color: var(--color-gold);
}

.prev-upload {
    left: -10px;
}

.next-upload {
    right: -10px;
}

/* ==========================================================================
   Meet Our Dentists Carousel
   ========================================================================== */
.doctor-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.doctor-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.doctor-carousel-track::-webkit-scrollbar {
    display: none;
}

.doctor-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    width: 100%;
}

.doc-prev-btn,
.doc-next-btn {
    position: absolute;
    top: 225px;
    transform: translateY(-50%);
    z-index: 999999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    color: #b58c2a !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    pointer-events: auto !important;
    transition: all 0.3s ease;
}

.doc-prev-btn {
    left: 15px;
}

.doc-next-btn {
    right: 15px;
}

.doc-prev-btn i,
.doc-next-btn i {
    color: #b58c2a !important;
    font-size: 1.4rem;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.doc-prev-btn:hover,
.doc-next-btn:hover {
    background-color: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-50%) scale(1.1);
}

.doc-prev-btn:hover i,
.doc-next-btn:hover i {
    color: #b58c2a !important;
}

@media (min-width: 1240px) {
    .doc-prev-btn {
        left: -75px;
    }

    .doc-next-btn {
        right: -75px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-dark-green);
    color: var(--color-white);
    padding-top: var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-heading {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-location p,
.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.get-directions {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-white);
    border-bottom: 1px solid var(--color-white);
    padding-bottom: 2px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.form-btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.form-btn-group .btn {
    min-width: 150px;
}

/* ==========================================================================
   Responsive Basics
   ========================================================================== */
@media (max-width: 992px) {
    :root {
        --space-md: 1.5rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
    }

    .section {
        padding: 2.5rem 0;
        /* Reduced from 3rem */
    }

    .mt-lg {
        margin-top: 2rem !important;
    }

    .mb-lg {
        margin-bottom: 2rem !important;
    }

    .mt-xl {
        margin-top: 3rem !important;
    }

    .pb-xl {
        padding-bottom: 3rem !important;
    }

    .container {
        padding: 0 1rem;
    }

    .split-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
        /* Prevents rows from stretching */
    }

    .form-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .steps-container {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .form-container {
        padding: 1.5rem 1rem;
        width: 100%;
        margin: 0 auto;
        min-width: 0;
    }

    .form-stage {
        width: 100%;
        min-width: 0;
    }

    .upload-box {
        padding: 1rem;
        min-height: 150px;
    }

    .upload-slide {
        padding: 0 0.5rem;
    }

    .upload-nav-btn {
        display: none;
    }

    .checkbox-block {
        width: 100%;
    }

    .form-btn-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .form-btn-group .btn {
        width: 100% !important;
        min-width: unset;
    }

    .doctor-carousel-track {
        align-items: flex-start;
        /* Prevent slides from stretching to tallest slide height */
    }

    .doctor-image-wrapper img {
        height: 350px !important;
        /* Reduced from 450px */
    }

    .doctor-bio .mt-lg {
        margin-top: 1rem !important;
        /* Reduced from 1.25rem */
        text-align: center;
    }

    .doc-dots.mt-lg {
        margin-top: 0.5rem !important;
        /* Reduced from 1rem */
    }

    .stories-carousel-wrapper {
        position: relative;
        display: block;
    }

    .stories-carousel-wrapper .carousel-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background-color: rgba(255, 255, 255, 0.9);
    }

    .stories-carousel-wrapper .prev-btn {
        left: 5px;
        margin: 0;
    }

    .stories-carousel-wrapper .next-btn {
        right: 5px;
        margin: 0;
    }

    .stories-grid {
        padding: 0;
    }

    .story-card {
        flex: 0 0 100%;
        padding: 1.5rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    body {
        padding-top: 70px;
        /* Adjusted to match mobile header height */
    }

    /* Header Mobile Adjustments */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-dark-green);
        padding: 1rem 2rem 2rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hamburger-btn {
        display: block;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .header-left {
        gap: 0.5rem;
    }

    .logo-img {
        max-width: 150px;
        /* Slightly adjusted for tighter fit */
    }

    .phone-link {
        display: none;
        /* Removed from mobile view as requested */
    }

    .header-actions .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Mobile hero container — full bleed, no padding */
    .hero-image-container {
        padding: 0;
        margin: 0 0 2rem 0;
        max-width: none;
        width: 100%;
    }

    .hero-placeholder {
        aspect-ratio: 1 / 1;
        height: auto;
        max-height: 70vh;
        border-radius: 0;
    }

    /* Mobile: sticky video behavior */
    .hero-image-container.sticky-video {
        position: fixed;
        top: var(--sticky-top, 70px);
        left: 0;
        width: 100%;
        z-index: 999;
        margin: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .hero-image-container.sticky-video .hero-placeholder {
        aspect-ratio: 1 / 1;
        max-height: 50vh; /* Capped so a square doesn't block half the screen */
    }

    /* When sticky, add a placeholder gap to the hero section so content doesn't jump */
    .hero.is-sticky {
        padding-top: calc(var(--sticky-top, 70px) + 100vw);
    }
    
    @media (min-height: 800px) {
         .hero.is-sticky {
            padding-top: calc(var(--sticky-top, 70px) + 50vh);
        }
    }


    /* After close on mobile — full-bleed inline */
    .hero-image-container.is-closed {
        padding: 0;
        margin: 0 0 2rem 0;
        max-width: none;
    }

    .hero:has(.is-closed) {
        padding-top: 0;
    }
}

/* ==========================================================================
   Mobile Full-Screen Form (Stage 2+)
   ========================================================================== */
@media (max-width: 992px) {

    /* When body has this class, lock page scroll and hide everything except the form */
    body.form-fullscreen {
        overflow: hidden;
    }

    body.form-fullscreen .site-header,
    body.form-fullscreen #refresh,
    body.form-fullscreen #stories,
    body.form-fullscreen #why,
    body.form-fullscreen #meet-doctor,
    body.form-fullscreen #suitability,
    body.form-fullscreen .site-footer {
        display: none !important;
    }

    /* The overlay wrapper that sits on top of everything */
    body.form-fullscreen #mobile-form-overlay {
        display: flex !important;
    }

    #mobile-form-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 2000;
        flex-direction: column;
        background: var(--color-bg-beige, #f9f6f1);
    }

    /* Sticky top bar inside the overlay */
    #mobile-form-topbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        background: var(--color-dark-green, #1a2e22);
        color: #fff;
        flex-shrink: 0;
    }

    #mobile-form-topbar .back-icon-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.1rem;
        cursor: pointer;
        padding: 0.25rem 0.5rem 0.25rem 0;
        line-height: 1;
    }

    #mobile-form-topbar span {
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

    /* Scrollable form area */
    #mobile-form-scroll {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1.5rem 1rem 3rem;
    }

    /* The actual form card inside the overlay */
    #mobile-form-scroll .form-container {
        background: #fff;
        border-radius: var(--radius-lg, 12px);
        padding: 1.5rem 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    }
}

/* ==========================================================================
   Mobile-Specific Alignment Fixes (768px and below)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content h1,
    .split-left h2 {
        text-align: center !important;
    }
}