/* ===========================
   FOAM FLOW LEADS — MINIMAL CLEAN
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #ffffff;
    --text: #111111;
    --text-muted: #666666;
    --primary: #0062fe;
    --highlight: #FFE566;
    --highlight-dark: #f5d800;
    --border: #e8e8e8;
    --card-bg: #ffffff;
    --accent-bg: #f5f8ff;
    --progress-bg: #f0f0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    /* Optimize scrolling performance on mobile */
    -webkit-overflow-scrolling: touch;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===========================
   HEADER
   =========================== */
.simple-header {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.18em;
    color: var(--text);
    display: inline-block;
}

/* ===========================
   HERO
   =========================== */
.hero-text {
    text-align: center;
    padding: 1.5rem 24px 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.booking-hero {
    padding: 2rem 24px 1.5rem;
}

.booking-step-tag {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid #bbf7d0;
    margin-bottom: 16px;
}

.hero-headline {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.headline-highlight {
    background-color: var(--highlight);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline;
    line-height: 1.3;
}

.hero-subtext {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto;
}

.hero-subtext strong {
    color: var(--text);
    font-weight: 700;
}

/* ===========================
   HERO CTA (index only)
   =========================== */
.hero-cta-wrap {
    text-align: center;
    padding: 2rem 1.5rem 0;
}

.btn-hero-cta {
    display: inline-block;
    background: var(--highlight);
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 800;
    padding: 1.1rem 2.5rem;
    border-radius: 6px;
    border: 2.5px solid var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    box-shadow: 4px 4px 0px var(--text);
    font-family: 'Inter', sans-serif;
}

.btn-hero-cta:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--text);
}

.btn-hero-cta:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text);
}

.hero-cta-sub {
    margin-top: 0.85rem;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===========================
   FORM SECTION (index only)
   =========================== */
.form-section {
    padding: 3rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-wrapper {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 550px;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
    border: 1.5px solid var(--border);
    overflow: hidden;
}

/* ===========================
   PROGRESS BAR
   =========================== */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar-bg {
    background-color: var(--progress-bg);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--highlight-dark);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

/* ===========================
   FORM STEPS
   =========================== */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeUp 0.35s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.step-subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ===========================
   RADIO CARDS
   =========================== */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 1.5rem;
}

.radio-card {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    background-color: var(--card-bg);
    will-change: border-color, background-color;
}

.radio-card:hover {
    border-color: var(--highlight-dark);
    background-color: #fffef0;
}

.radio-card input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 14px;
    accent-color: var(--text);
    flex-shrink: 0;
}

.radio-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    border: none;
    display: inline-block;
    text-align: center;
    font-family: 'Inter', sans-serif;
    will-change: transform;
}

.btn-primary {
    background-color: var(--highlight);
    color: var(--text);
    border: 2px solid var(--text);
    box-shadow: 3px 3px 0 var(--text);
}

.btn-primary:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--text);
}

.btn-primary:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--text);
}

.btn-secondary {
    background-color: white;
    color: var(--text-muted);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: #aaa;
}

.btn-block {
    width: 100%;
}

.btn-primary:disabled,
.btn-primary.btn-disabled,
.btn-booking-gold:disabled,
.btn-booking-gold.btn-disabled {
    background-color: var(--progress-bg) !important;
    color: #aaa !important;
    cursor: not-allowed !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
    transform: none !important;
}

.form-buttons {
    display: flex;
    gap: 10px;
}

.form-buttons .btn {
    flex: 1;
}

/* ===========================
   INPUTS
   =========================== */
.form-group {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.text-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.18s ease;
    color: var(--text);
    background: white;
}

.text-input:focus {
    outline: none;
    border-color: var(--text);
}

.text-input::placeholder {
    color: #bbb;
}

/* ===========================
   BOOKING RESULT (index qualify screen)
   =========================== */
.booking-result {
    text-align: center;
    padding: 8px 0;
}

.booking-result-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 14px;
    border: 1px solid #bbf7d0;
}

.booking-result-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.25;
}

.booking-result-sub {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.booking-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 24px;
    text-align: left;
}

.booking-bullet-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.5;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 8px;
    border: 1.5px solid var(--border);
}

.proof-image-section {
    margin: 30px 0;
    text-align: center;
}

.proof-image-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

.proof-image-container {
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.proof-image-container img {
    width: 100%;
    height: auto;
    display: block;
}


/* ===========================
   BOOKING GOLD BUTTON
   =========================== */
.btn-booking-gold {
    background: var(--highlight);
    color: var(--text);
    font-size: 1.05rem;
    padding: 1rem 1.75rem;
    border: 2.5px solid var(--text);
    box-shadow: 4px 4px 0 var(--text);
    width: 100%;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
    display: block;
    text-align: center;
    font-family: 'Inter', sans-serif;
    will-change: transform;
}

.btn-booking-gold:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--text);
}

.btn-booking-gold:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 var(--text);
}

.booking-trust-line {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 14px;
    margin-bottom: 6px;
    text-align: center;
}

/* ===========================
   VALUE SECTION
   =========================== */
.value-section {
    padding: 56px 24px 64px;
    background: #fafafa;
    border-top: 1px solid var(--border);
}

.value-inner {
    max-width: 620px;
    margin: 0 auto;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.value-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.value-card {
    background: white;
    border: 1.5px solid var(--border);
    border-top: 3px solid var(--highlight-dark);
    border-radius: 10px;
    padding: 20px 18px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    will-change: box-shadow, transform;
}

.value-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.value-card-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 10px;
}

.value-card-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.value-card-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===========================
   CONFETTI
   =========================== */
.confetti-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ===========================
   FOOTER
   =========================== */
.simple-footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

/* ===========================
   MOBILE STICKY - index disabled
   =========================== */
.mobile-sticky-footer {
    display: none !important;
}

/* ===========================
   BOOKING PAGE LAYOUT
   =========================== */
.booking-container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 2rem 1.5rem 4rem;
}

.booking-split-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 2.5rem;
    max-width: 960px;
    width: 100%;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    border: 1.5px solid var(--border);
    align-items: start;
}

.booking-form-side {
    border-right: 1px solid var(--border);
    padding-right: 2.5rem;
}

.booking-calendar-side {
    min-width: 0;
}

.selected-info {
    background: #fffef0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--highlight-dark);
    font-size: 0.9rem;
    border: 1.5px solid var(--highlight-dark);
}

/* ===========================
   CALENDAR
   =========================== */
.calendar-header {
    margin-bottom: 1rem;
}

.calendar-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
}

.calendar-widget {
    width: 100%;
    overflow: hidden;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-size: 0.75rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    /* Optimize rendering */
    contain: layout style paint;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #ccc;
    cursor: not-allowed;
    border: 1px solid transparent;
    min-width: 0;
    will-change: background-color, border-color;
}

.calendar-day.available {
    color: var(--text);
    cursor: pointer;
    border-color: var(--border);
    transition: all 0.15s ease;
}

.calendar-day.available:hover {
    background-color: var(--highlight);
    border-color: var(--highlight-dark);
}

.calendar-day.selected {
    background-color: var(--text);
    color: white;
    border-color: var(--text);
}

/* ===========================
   TIME SLOTS
   =========================== */
.time-slots-container {
    margin-top: 1.5rem;
}

.time-slots-container .field-label {
    margin-bottom: 0.75rem;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    /* Optimize rendering */
    contain: layout style paint;
}

.time-btn {
    padding: 0.7rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    will-change: background-color, border-color;
}

.time-btn:hover {
    background-color: var(--highlight);
    border-color: var(--highlight-dark);
}

.time-btn.active {
    background-color: var(--text);
    color: white;
    border-color: var(--text);
}

.time-btn.time-btn-booked {
    opacity: 0.5;
    cursor: not-allowed;
}

.empty-msg {
    grid-column: 1 / -1;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text);
}

.calendar-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    display: none;
}

/* ===========================
   MOBILE BOOKING STICKY BUTTON
   =========================== */
.mobile-booking-sticky {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 0.85rem 1.25rem;
    padding-bottom: max(1.25rem, calc(0.85rem + env(safe-area-inset-bottom, 0px)));
    box-shadow: 0 -2px 16px rgba(0,0,0,0.1);
    border-top: 1.5px solid var(--border);
    z-index: 100;
    /* Optimize for fixed positioning */
    will-change: transform;
    transform: translateZ(0);
}

/* ===========================
   TABLET
   =========================== */
@media (max-width: 900px) {
    .booking-split-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 0;
    }

    .booking-form-side {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}

/* ===========================
   MOBILE
   =========================== */
@media (max-width: 768px) {

    body {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
    }

    .simple-header {
        padding: 1.25rem 1rem 1rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    /* Hero */
    .hero-text {
        padding: 1.5rem 20px 1rem;
    }

    .booking-hero {
        padding: 1.5rem 20px 1rem;
    }

    .hero-headline {
        font-size: 28px;
        line-height: 1.15;
    }

    .hero-subtext {
        font-size: 15px;
    }

    /* Index form */
    .hero-cta-wrap {
        padding: 1.5rem 1.25rem 0;
    }

    .btn-hero-cta {
        width: 100%;
        font-size: 1.05rem;
        padding: 1rem 1.5rem;
    }

    .form-section {
        padding: 2rem 0.75rem 1.5rem;
    }

    .form-wrapper {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .step-title {
        font-size: 1.15rem;
        line-height: 1.35;
        margin-bottom: 0.6rem;
    }

    .step-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .progress-container { margin-bottom: 1.5rem; }
    .progress-text { font-size: 0.8rem; }

    .radio-card {
        padding: 0.85rem 1rem;
        border-radius: 8px;
        min-height: 50px;
    }

    .radio-label { font-size: 0.9rem; }
    .radio-group { gap: 8px; margin-bottom: 1.25rem; }

    .form-step .btn-block { display: block; }
    .form-buttons { display: flex; }
    #stepBooking .btn-booking-gold { display: block !important; }

    .booking-result-title { font-size: 1.2rem; }
    .booking-result-sub { font-size: 13px; }

    /* Value section */
    .value-section { padding: 36px 16px 48px; }
    .value-cards { grid-template-columns: 1fr; gap: 10px; }
    .value-card { padding: 18px 16px; }
    .value-card:hover { transform: none; }
    .value-card-icon { font-size: 20px; margin-bottom: 8px; }
    .section-label { font-size: 10px; margin-bottom: 18px; }
    .simple-footer { padding: 1.25rem; font-size: 0.8rem; }

    /* ===========================
       BOOKING PAGE MOBILE
       =========================== */
    .booking-container {
        padding: 1rem 0.75rem calc(100px + env(safe-area-inset-bottom, 0px));
    }

    .booking-split-wrapper {
        padding: 1.25rem;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        grid-template-columns: 1fr;
        gap: 0;
    }

    .booking-form-side {
        border-right: none;
        padding-right: 0;
        /* On mobile show form BELOW calendar */
        order: 2;
        border-top: 1px solid var(--border);
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .booking-calendar-side {
        order: 1;
    }

    .calendar-section-title {
        display: block;
    }

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .time-btn {
        padding: 0.85rem 0.5rem;
        font-size: 0.9rem;
        min-height: 48px;
        border-radius: 8px;
    }

    /* Hide the confirm button inside the form on mobile
       and show the sticky one instead */
    .booking-form-side .btn-booking-gold {
        display: none;
    }

    .mobile-booking-sticky {
        display: flex;
        gap: 10px;
    }

    .back-link {
        margin-top: 0.75rem;
        font-size: 0.85rem;
    }
}

/* ===========================
   EXTRA SMALL
   =========================== */
@media (max-width: 374px) {
    .form-wrapper { padding: 1.25rem 1rem; }
    .step-title { font-size: 1.05rem; }
    .radio-card { padding: 0.8rem 0.9rem; }
    .radio-label { font-size: 0.875rem; }
    .logo-text { font-size: 1.1rem; }
    .hero-headline { font-size: 24px; }
    .booking-step-tag { font-size: 12px; }
}
