/* ═══════════════════════════════════════════════════════════════════════════
   grooming-wizard.css
   Scoped copy of booking-grooming-buildout.html's style block for inline use
   in book.html's grooming modal. Everything is nested under .grm-wizard so it
   cannot leak into the host page. Uses CSS native nesting (Chrome 112+,
   Safari 16.5+, Firefox 117+ — all 2023+).

   Keyframes (@keyframes) must live at top-level — they cannot be nested.
   Everything else sits inside .grm-wizard { ... }.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Global keyframes — extracted from buildout */
@keyframes grm-spin { to { transform: rotate(360deg); } }
@keyframes grm-slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Page-level styles ONLY when the wizard IS the whole page (booking-grooming-buildout.html
   standalone). book.html never gets this class — book.html uses the wizard as a modal and
   its own body styles apply. */
body.grm-wizard-page {
    margin: 0;
    padding: 0;
    background: #0f172a;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
}
body.grm-wizard-page > .grm-wizard {
    min-height: 100vh;
    min-height: 100dvh;
}

.grm-wizard {
    /* CSS custom properties scoped to the wizard */
    --service-color: #E91E63;
    --service-light: #FCE4EC;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-200: #e5e7eb;
    --white: #ffffff;
    --green: #22c55e;
    --orange: #f97316;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* body styles applied to the wizard root (was `body { ... }` in buildout) */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--navy);
    color: var(--white);
    overflow-x: hidden;
    position: relative;

    /* Flex column — header + progress stay at top, bottom-nav stays at bottom,
       booking-content scrolls in the middle. User doesn't scroll to reach Next. */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;

    /* Universal reset scoped to descendants */
    & *, & *::before, & *::after { margin: 0; padding: 0; box-sizing: border-box; }

    .app-container {
        /* Flex column that fills the wizard — ensures booking-content scrolls internally
           and bottom-nav stays pinned at the bottom without scrolling off-screen.
           max-width matches buildout's original 500px container so every step's content
           sits at a consistent width centered in the modal. */
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
        background: var(--navy);
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        flex: 1;
    }

    /* Header */
    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        background: var(--navy-light);
        border-bottom: 1px solid var(--gray-600);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--white);
        cursor: pointer;
    }

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

    .header-title {
        font-size: 18px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
    }

    .price-badge {
        background: rgba(233, 30, 99, 0.3);
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 600;
        color: white;
        min-width: 40px;
        text-align: center;
    }

    .header-badge {
        background: var(--service-color);
        color: white;
        font-size: 11px;
        padding: 4px 10px;
        border-radius: 20px;
        font-weight: 600;
    }

    /* Progress Bar */
    .progress-bar {
        display: flex;
        padding: 16px 12px;
        background: var(--navy-light);
        border-bottom: 1px solid var(--gray-600);
        overflow-x: auto;
        gap: 4px;
    }

    .progress-step {
        flex: 1;
        min-width: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
    }

    .step-circle {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        background: var(--gray-600);
        color: var(--gray-400);
        margin-bottom: 4px;
        transition: all 0.3s;
    }

    .progress-step.active .step-circle { background: var(--service-color); color: white; }
    .progress-step.completed .step-circle { background: var(--green); color: white; }

    .step-label {
        font-size: 10px;
        color: var(--gray-500);
        text-transform: uppercase;
        font-weight: 500;
    }

    .progress-step.active .step-label { color: var(--service-color); }

    /* Content — grows to fill available space, scrolls internally when taller */
    .booking-content {
        padding: 20px;
        padding-bottom: 20px;
        overflow-y: auto;
        flex: 1 1 auto;
        min-height: 0;
        /* ANTI-FLASH (2026-07-06): on DESKTOP the classic scrollbar consumes ~17px of
           layout width. At a content height that sits right on the overflow threshold
           (e.g. TNPLH's 4-line-item grooming Confirm / 3–4 service list) the bar toggles
           on→off→on forever: bar appears → content box narrows → rows re-wrap/reflow →
           height re-crosses the threshold → bar removed → widens → repeat. That is the
           "flashing back and forth" — NOT a JS render loop (there is none here). Reserving
           the gutter keeps the width constant whether or not the bar is shown, so the
           feedback loop can't start. overflow-anchor:none stops a reflow from jumping the
           scroll position (the vertical component of the flash). Mobile uses 0-width
           overlay scrollbars, so it never oscillated — this is a no-op there. */
        scrollbar-gutter: stable;
        overflow-anchor: none;
    }

    .step-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
    .step-subtitle { color: var(--gray-400); font-size: 14px; margin-bottom: 20px; }

    /* Pet Cards */
    .pet-card {
        display: flex;
        align-items: center;
        padding: 14px;
        background: var(--navy-light);
        border: 2px solid var(--gray-600);
        border-radius: var(--radius-md);
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .pet-card.selected { border-color: var(--service-color); background: rgba(233, 30, 99, 0.1); }
    .pet-avatar {
        width: 50px; height: 50px; border-radius: 50%;
        background: var(--gray-600);
        display: flex; align-items: center; justify-content: center;
        font-size: 24px; overflow: hidden;
    }
    .pet-avatar img { width: 100%; height: 100%; object-fit: cover; }
    .pet-info { flex: 1; margin-left: 12px; }
    .pet-name { font-weight: 600; font-size: 16px; }
    .pet-breed { color: var(--gray-400); font-size: 13px; }
    .pet-checkbox {
        width: 26px; height: 26px; border-radius: 6px;
        border: 2px solid var(--gray-600);
        display: flex; align-items: center; justify-content: center;
    }
    .pet-card.selected .pet-checkbox { background: var(--service-color); border-color: var(--service-color); }

    /* Service Cards */
    .service-card {
        display: flex;
        align-items: center;
        padding: 16px;
        background: var(--navy-light);
        border: 2px solid var(--gray-600);
        border-radius: var(--radius-md);
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.2s;
        gap: 12px;
    }

    /* Bath / Full matrix pair — side-by-side on tablet+, stacked on phones. */
    .smart-service-row {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }
    .smart-service-row > .service-card {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
        margin-bottom: 0;
    }
    @media (max-width: 640px) {
        .smart-service-row > .service-card { flex: 1 1 100%; }
    }

    .service-card.selected { border-color: var(--service-color); background: rgba(233, 30, 99, 0.1); }
    .service-info { flex: 1; }
    .service-name { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
    .service-desc { color: var(--gray-400); font-size: 13px; line-height: 1.4; }
    .service-duration {
        color: var(--gray-500); font-size: 12px; margin-top: 6px;
        display: flex; align-items: center; gap: 4px;
    }
    .service-price-area { text-align: right; }
    .service-price { font-size: 20px; font-weight: 700; color: var(--service-color); }
    .service-price-unit { font-size: 11px; color: var(--gray-500); }
    .service-radio {
        width: 24px; height: 24px; border-radius: 50%;
        border: 2px solid var(--gray-600);
        display: flex; align-items: center; justify-content: center;
    }
    .service-card.selected .service-radio { background: var(--service-color); border-color: var(--service-color); }
    .service-radio-inner { width: 10px; height: 10px; border-radius: 50%; background: white; display: none; }
    .service-card.selected .service-radio-inner { display: block; }

    /* Preferences Button */
    .preferences-button {
        display: flex;
        align-items: center;
        padding: 20px;
        background: rgba(233, 30, 99, 0.15);
        border: 2px solid var(--service-color);
        border-radius: var(--radius-lg);
        cursor: pointer;
        transition: all 0.2s;
        gap: 16px;
    }
    .preferences-button:hover { background: rgba(233, 30, 99, 0.25); }
    .preferences-icon {
        width: 48px; height: 48px; border-radius: 12px;
        background: var(--service-color);
        display: flex; align-items: center; justify-content: center;
        color: white;
    }
    .preferences-text { flex: 1; }
    .preferences-title { font-weight: 600; font-size: 16px; color: var(--service-color); }
    .preferences-subtitle { font-size: 13px; color: rgba(233, 30, 99, 0.7); margin-top: 4px; }

    /* Preferences Preview */
    .preferences-preview {
        background: var(--navy-light);
        border: 1px solid var(--service-color);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-top: 16px;
    }
    .preferences-preview-title { font-weight: 600; color: var(--service-color); margin-bottom: 12px; font-size: 14px; }
    .preferences-preview-item { color: var(--gray-400); font-size: 13px; margin-bottom: 6px; }
    .preferences-preview-item strong { color: var(--white); }

    /* Calendar */
    .calendar-container {
        background: var(--navy-light);
        border-radius: var(--radius-md);
        border: 1px solid var(--gray-600);
        overflow: hidden;
        margin-bottom: 16px;
    }
    .calendar-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px; border-bottom: 1px solid var(--gray-600);
    }
    .calendar-nav {
        width: 36px; height: 36px; border-radius: 50%; border: none;
        background: var(--gray-600); color: white; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
    }
    .calendar-month { font-weight: 600; font-size: 16px; }
    /* Explicit block layout — booking-full.css sets .calendar-grid as a 7-col grid
       globally (for book.html's boarding calendar). Inside the wizard it's a plain
       padding wrapper, so we must reset display/grid-template here. */
    .calendar-grid {
        padding: 12px;
        display: block;
        grid-template-columns: none;
        gap: 0;
    }
    .calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
    .calendar-weekday { text-align: center; font-size: 11px; color: var(--gray-500); font-weight: 600; padding: 8px 0; }
    .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
    .calendar-day {
        /* Explicit reset — booking-full.css applies min-height:95px + padding:8px +
           border:2px + flex-direction:column globally. Wizard wants small round cells. */
        aspect-ratio: 1;
        min-height: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 14px; cursor: pointer; border: none;
        background: transparent; color: var(--white);
        transition: all 0.2s;
        position: relative;
    }
    .calendar-day:hover:not(.disabled):not(.selected) { background: var(--gray-600); }
    /* !important needed — booking-full.css uses !important on .calendar-day.selected for
       book.html's boarding calendar (green). Higher-specificity !important wins here. */
    .calendar-day.selected {
        background: var(--service-color) !important;
        border-color: var(--service-color) !important;
        border-width: 0 !important;
        color: white !important;
        font-weight: 600;
    }
    .calendar-day.disabled { color: var(--gray-600); cursor: not-allowed; }
    .calendar-day.today { border: 2px solid var(--service-color); }

    /* Holiday Styling */
    .calendar-day.holiday {
        background: linear-gradient(135deg, #065f46 0%, #047857 100%);
        color: white; position: relative;
    }
    .calendar-day.holiday::before {
        content: ''; position: absolute; top: 0; left: 50%;
        transform: translateX(-50%);
        width: 70%; height: 3px; background: #10b981; border-radius: 0 0 2px 2px;
    }
    .calendar-day.holiday.selected {
        background: linear-gradient(135deg, #047857 0%, #059669 100%);
        box-shadow: 0 0 0 2px var(--service-color);
    }
    .calendar-day.holiday:hover:not(.disabled):not(.selected) {
        background: linear-gradient(135deg, #047857 0%, #059669 100%);
    }

    /* Blocked Date Styling */
    .calendar-day.blocked {
        background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
        color: #fca5a5; cursor: not-allowed;
    }
    .calendar-day.blocked::before {
        content: ''; position: absolute; top: 0; left: 50%;
        transform: translateX(-50%);
        width: 70%; height: 3px; background: #ef4444; border-radius: 0 0 2px 2px;
    }
    .calendar-day.service-unavailable {
        opacity: 0.3; cursor: not-allowed; pointer-events: none; position: relative;
    }
    .calendar-day.service-unavailable::before {
        content:''; position:absolute; inset:0;
        background:repeating-linear-gradient(45deg,transparent,transparent 3px,rgba(255,255,255,0.08) 3px,rgba(255,255,255,0.08) 6px);
        border-radius:inherit; pointer-events:none;
        width:100%; height:100%; top:0; left:0; transform:none;
    }
    .calendar-day.service-blocked {
        background: rgba(251, 191, 36, 0.3) !important; cursor: not-allowed; pointer-events: none;
    }

    /* Holiday name label */
    .holiday-label {
        position: absolute; bottom: -14px; left: 50%;
        transform: translateX(-50%);
        font-size: 8px; color: #10b981;
        white-space: nowrap; max-width: 50px; overflow: hidden; text-overflow: ellipsis;
    }

    /* Conflict Indicator Dot */
    .conflict-dot {
        position: absolute; bottom: 4px; left: 50%;
        transform: translateX(-50%);
        width: 5px; height: 5px; background: #ef4444; border-radius: 50%;
    }

    /* Calendar Legend */
    .calendar-legend {
        margin-top: 16px; padding: 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
    }
    .legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-400); }
    .legend-dot { width: 5px; height: 5px; border-radius: 50%; }
    .legend-dot.conflict { background: #ef4444; }

    /* Selected Date Card */
    .selected-date-card {
        display: flex; align-items: center; gap: 12px;
        padding: 14px;
        background: rgba(233, 30, 99, 0.15);
        border: 2px solid var(--service-color);
        border-radius: var(--radius-md);
        margin-top: 16px;
    }
    .selected-date-text { font-weight: 600; color: var(--service-color); }

    /* Time Slots Grid */
    .time-slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .time-slot {
        padding: 14px 8px;
        background: var(--navy-light);
        border: 2px solid var(--gray-600);
        border-radius: var(--radius-md);
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
    }
    .time-slot:hover:not(.disabled):not(.selected) { border-color: var(--gray-400); }
    .time-slot.selected { background: rgba(233, 30, 99, 0.15); border-color: var(--service-color); }
    .time-slot.disabled { opacity: 0.4; cursor: not-allowed; }
    .time-slot-time { font-weight: 600; font-size: 14px; }
    .time-slot.selected .time-slot-time { color: var(--service-color); }
    .time-slot-status { font-size: 10px; color: var(--gray-500); margin-top: 2px; }

    /* Add-on Cards */
    .addon-card {
        background: var(--navy-light);
        border: 2px solid var(--gray-600);
        border-radius: var(--radius-md);
        padding: 14px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 0.2s;
    }
    .addon-card.selected { border-color: var(--service-color); background: rgba(233, 30, 99, 0.1); }
    .addon-header { display: flex; align-items: center; }
    .addon-info { flex: 1; }
    .addon-name { font-weight: 600; font-size: 15px; }
    .addon-desc { color: var(--gray-400); font-size: 13px; margin-top: 2px; }
    .addon-price { color: var(--service-color); font-weight: 600; font-size: 14px; margin-top: 4px; }
    .addon-checkbox {
        width: 26px; height: 26px; border-radius: 6px;
        border: 2px solid var(--gray-600);
        display: flex; align-items: center; justify-content: center;
    }
    .addon-card.selected .addon-checkbox { background: var(--service-color); border-color: var(--service-color); }
    .addon-pets { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gray-600); }
    .addon-pets-label { font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
    .addon-pets-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .addon-pet-chip {
        display: flex; align-items: center; gap: 6px;
        padding: 6px 10px; border-radius: 20px;
        border: 1.5px solid var(--gray-600);
        background: transparent; cursor: pointer;
        font-size: 13px; transition: all 0.2s;
    }
    .addon-pet-chip.selected {
        border-color: var(--service-color);
        background: rgba(233, 30, 99, 0.15);
        color: var(--service-color);
    }

    /* Summary Cards */
    .summary-card {
        background: var(--navy-light);
        border: 1px solid var(--gray-600);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-bottom: 14px;
    }
    .summary-row { display: flex; align-items: center; padding: 10px 0; gap: 10px; }
    .summary-label { color: var(--gray-400); font-size: 14px; width: 80px; }
    .summary-value { flex: 1; text-align: right; font-weight: 600; font-size: 14px; }

    /* Price Card */
    .price-card {
        background: var(--navy-light);
        border: 1px solid var(--gray-600);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-bottom: 14px;
    }
    .price-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
    .price-label { color: var(--gray-400); font-size: 14px; }
    .price-value { font-weight: 600; }
    .price-discount { color: var(--green); }
    .total-row {
        display: flex; justify-content: space-between; align-items: center;
        padding-top: 12px; margin-top: 8px;
        border-top: 1px solid var(--gray-600);
    }
    .total-label { font-size: 17px; font-weight: 600; }
    .total-value { font-size: 24px; font-weight: 700; color: var(--service-color); }

    /* Deposit Card */
    .deposit-card {
        background: #FFF3E0;
        border: 2px solid #FF9800;
        border-radius: var(--radius-md);
        padding: 16px;
        margin-bottom: 16px;
    }
    .deposit-card.payable { background: #E8F5E9; border-color: #4CAF50; }
    .deposit-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .deposit-title { font-weight: 600; color: #E65100; font-size: 14px; }
    .deposit-card.payable .deposit-title { color: #2E7D32; }
    .deposit-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
    .deposit-label { color: #E65100; font-size: 14px; }
    .deposit-card.payable .deposit-label { color: #1B5E20; }
    .deposit-amount { font-weight: 700; font-size: 18px; color: #E65100; }
    .deposit-card.payable .deposit-amount { color: #2E7D32; }
    .deposit-note { font-size: 12px; color: #E65100; }

    /* Book & Pay Button */
    .book-pay-btn {
        width: 100%; padding: 16px;
        background: #2E7D32; border: none;
        border-radius: var(--radius-md);
        color: white; font-size: 16px; font-weight: 700; cursor: pointer;
        display: flex; align-items: center; justify-content: center; gap: 10px;
        margin-top: 8px;
    }
    .book-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; }
    .pay-later-link {
        text-align: center; margin-top: 12px;
        color: var(--gray-400); font-size: 13px;
        cursor: pointer; text-decoration: underline;
    }

    /* Promo Code */
    .promo-section {
        background: var(--navy-light);
        border: 1px solid var(--gray-600);
        border-radius: var(--radius-md);
        padding: 16px;
        margin-bottom: 16px;
    }
    .promo-trigger { display: flex; align-items: center; gap: 8px; color: var(--service-color); cursor: pointer; font-size: 14px; }
    .promo-input-row { display: flex; gap: 8px; margin-top: 12px; }
    .promo-input {
        flex: 1; padding: 12px;
        background: var(--navy);
        border: 1px solid var(--gray-600);
        border-radius: 8px;
        color: white; font-size: 14px;
    }
    .promo-apply-btn {
        padding: 12px 20px;
        background: var(--service-color);
        border: none; border-radius: 8px;
        color: white; font-weight: 600; cursor: pointer;
    }
    .promo-applied {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px;
        background: rgba(34, 197, 94, 0.15);
        border: 1px solid var(--green);
        border-radius: 8px;
        margin-top: 12px;
    }
    .promo-code-text { color: var(--green); font-weight: 600; }
    .promo-remove { color: var(--gray-400); cursor: pointer; font-size: 12px; }
    .promo-error { color: #ef4444; font-size: 12px; margin-top: 8px; }

    /* Notes Input */
    .notes-section { margin-top: 16px; }
    .notes-label { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
    .notes-input {
        width: 100%; padding: 14px;
        background: var(--navy-light);
        border: 1px solid var(--gray-600);
        border-radius: var(--radius-md);
        color: white; font-size: 14px;
        min-height: 80px; resize: none;
        font-family: inherit;
    }

    /* Warning Cards */
    .warning-card {
        background: #FEF3C7;
        border: 1px solid #F59E0B;
        border-radius: var(--radius-md);
        padding: 12px;
        margin-bottom: 16px;
    }
    .warning-title { color: #92400E; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
    .warning-text { color: #92400E; font-size: 13px; }

    /* Empty State */
    .no-addons-card {
        text-align: center;
        padding: 40px 20px;
        background: var(--navy-light);
        border-radius: var(--radius-md);
    }
    .no-addons-text { color: var(--gray-400); margin-top: 12px; }

    /* Bottom Navigation — flex-column layout pins it at the bottom naturally.
       No sticky/fixed needed since booking-content is the only scroll area. */
    .bottom-nav {
        position: relative;
        flex: 0 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 24px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        background: var(--navy-light);
        border-top: 1px solid var(--gray-600);
        margin: 0 auto;
        width: 100%;
        z-index: 50;
    }
    .nav-btn {
        width: 48px; height: 48px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        border: 2px solid var(--gray-600);
        background: transparent; color: var(--white);
        cursor: pointer; transition: all 0.2s;
    }
    .nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
    .nav-btn.primary { background: var(--service-color); border-color: var(--service-color); }
    .nav-btn.primary:disabled { background: var(--gray-600); border-color: var(--gray-600); opacity: 1; }
    .home-btn {
        width: 52px; height: 52px; border-radius: 50%;
        background: var(--gray-600); border: none;
        display: flex; align-items: center; justify-content: center;
        color: var(--white); cursor: pointer;
    }

    /* Modal Styles (sub-modals inside the wizard, e.g. success modal) */
    .modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2500;
        padding: 20px;
    }
    .modal-overlay.hidden { display: none; }
    .modal-content {
        background: var(--navy-light);
        border-radius: var(--radius-lg);
        padding: 24px;
        max-width: 400px;
        width: 100%;
        text-align: center;
    }
    .modal-icon {
        width: 64px; height: 64px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        margin: 0 auto 16px;
    }
    .modal-icon.success { background: rgba(34, 197, 94, 0.2); color: var(--green); }
    .modal-icon.warning { background: rgba(249, 115, 22, 0.2); color: var(--orange); }
    .modal-icon.error { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
    .modal-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
    .modal-message { color: var(--gray-400); font-size: 14px; margin-bottom: 20px; }
    .modal-btn {
        padding: 14px 24px; border-radius: var(--radius-md);
        border: none; font-size: 16px; font-weight: 600;
        cursor: pointer; width: 100%; margin-top: 8px;
    }
    .modal-btn.primary { background: var(--service-color); color: white; }
    .modal-btn.secondary { background: var(--gray-600); color: white; }

    /* Success Modal Styles */
    .success-modal-content {
        background: var(--navy-light);
        border-radius: 20px;
        padding: 32px 24px;
        max-width: 360px; width: 90%;
        text-align: center;
        box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }
    .success-icon {
        width: 80px; height: 80px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        margin: 0 auto 20px;
        background: #f59e0b; color: white;
    }
    .success-icon.approved { background: #22c55e; }
    .success-icon.paid { background: #22c55e; }
    .success-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: white; }
    .success-subtitle { color: var(--gray-400); font-size: 15px; margin-bottom: 24px; }
    .success-details-card {
        background: rgba(0,0,0,0.2);
        border: 2px solid var(--service-color);
        border-radius: 12px;
        padding: 16px 20px;
        text-align: left;
        margin-bottom: 20px;
    }
    .success-detail-row {
        display: flex; align-items: center; gap: 12px;
        padding: 8px 0;
        color: white; font-size: 15px;
    }
    .success-detail-icon { width: 18px; height: 18px; color: var(--gray-400); flex-shrink: 0; }
    .success-status-badge {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 10px 20px; border-radius: 25px;
        font-size: 14px; font-weight: 600;
        margin-bottom: 24px;
        background: rgba(249, 115, 22, 0.15);
        color: #f59e0b;
        border: 1px solid rgba(249, 115, 22, 0.3);
    }
    .success-status-badge.approved {
        background: rgba(34, 197, 94, 0.15); color: #22c55e;
        border-color: rgba(34, 197, 94, 0.3);
    }
    .success-status-badge.paid {
        background: rgba(34, 197, 94, 0.15); color: #22c55e;
        border-color: rgba(34, 197, 94, 0.3);
    }
    .success-status-badge.deposit {
        background: rgba(249, 115, 22, 0.15); color: #f59e0b;
        border-color: rgba(249, 115, 22, 0.3);
    }
    .success-buttons { display: flex; gap: 12px; }
    .success-btn {
        flex: 1; padding: 14px 16px;
        border-radius: 12px; border: none;
        font-size: 15px; font-weight: 600; cursor: pointer;
        display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .success-btn.calendar { background: #f59e0b; color: white; }
    .success-btn.done { background: var(--service-color); color: white; }

    /* Preferences Modal (Full Screen within wizard) */
    .preferences-modal {
        position: fixed; inset: 0;
        background: var(--navy);
        z-index: 2400;
        display: flex; flex-direction: column;
    }
    .preferences-modal.hidden { display: none; }
    .preferences-modal-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 20px;
        background: var(--navy-light);
        border-bottom: 1px solid var(--gray-600);
    }
    .preferences-modal-title { font-size: 18px; font-weight: 700; }
    .preferences-modal-close {
        width: 36px; height: 36px; border-radius: 50%;
        background: var(--gray-600); border: none;
        color: white; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
    }
    .preferences-modal-body { flex: 1; overflow-y: auto; padding: 20px; }
    .preferences-modal-footer {
        padding: 16px 20px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        background: var(--navy-light);
        border-top: 1px solid var(--gray-600);
    }
    .save-preferences-btn {
        width: 100%; padding: 16px;
        background: var(--service-color);
        border: none; border-radius: var(--radius-md);
        color: white; font-size: 16px; font-weight: 700; cursor: pointer;
    }

    /* Preference Sections */
    .pref-card {
        background: rgba(233, 30, 99, 0.1);
        border: 2px solid var(--service-color);
        border-radius: var(--radius-lg);
        padding: 20px;
    }
    .pref-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
    .pref-card-icon {
        width: 40px; height: 40px; border-radius: 10px;
        background: var(--service-color);
        display: flex; align-items: center; justify-content: center;
        color: white;
    }
    .pref-card-title { font-weight: 700; color: var(--service-color); }
    .pref-card-subtitle { font-size: 12px; color: rgba(233, 30, 99, 0.7); }
    .pref-section { margin-bottom: 20px; }
    .pref-label {
        font-weight: 600; font-size: 13px;
        color: var(--service-color);
        margin-bottom: 10px;
        display: flex; align-items: center; gap: 6px;
    }
    .pref-options { display: flex; flex-wrap: wrap; gap: 8px; }
    .pref-option {
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid rgba(233, 30, 99, 0.3);
        border-radius: 20px;
        color: #880E4F;
        font-size: 13px; font-weight: 500;
        cursor: pointer; transition: all 0.15s ease;
        position: relative;
    }
    .pref-option:hover {
        border-color: var(--service-color);
        background: rgba(233, 30, 99, 0.06);
    }
    .pref-option.selected {
        background: var(--service-color);
        border-color: var(--service-color);
        color: white;
        font-weight: 700;
        padding-left: 34px;
        box-shadow: 0 4px 14px rgba(233, 30, 99, 0.35), 0 0 0 3px rgba(233, 30, 99, 0.15);
        transform: translateY(-1px);
    }
    .pref-option.selected::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 50%;
        width: 16px; height: 16px;
        transform: translateY(-50%);
        background: #fff;
        border-radius: 50%;
        display: block;
    }
    .pref-option.selected::after {
        content: "";
        position: absolute;
        left: 14px;
        top: 50%;
        width: 8px; height: 5px;
        transform: translateY(-70%) rotate(-45deg);
        border-left: 2px solid var(--service-color);
        border-bottom: 2px solid var(--service-color);
        display: block;
    }
    .pref-warning {
        background: #FFF3E0;
        padding: 10px; border-radius: 8px; margin-top: 8px;
    }
    .pref-warning-text { font-size: 12px; color: #E65100; }
    .pref-notes-input {
        width: 100%; padding: 14px;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(233, 30, 99, 0.3);
        border-radius: var(--radius-md);
        color: #333; font-size: 14px;
        min-height: 80px; resize: none;
        font-family: inherit;
    }
    .pref-notes-input::placeholder { color: #999; }

    .photo-upload-btn {
        display: flex; align-items: center; justify-content: center; gap: 10px;
        padding: 20px;
        border: 2px dashed var(--service-color);
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, 0.7);
        color: var(--service-color);
        font-weight: 500; cursor: pointer;
    }
    .photo-preview { text-align: center; }
    .photo-preview img {
        width: 120px; height: 120px;
        border-radius: 12px; object-fit: cover;
        border: 2px solid var(--service-color);
    }
    .photo-remove-btn {
        position: relative;
        top: -50px; left: 50px;
        width: 24px; height: 24px;
        border-radius: 50%;
        background: #C62828; border: none;
        color: white; cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .photo-hint { color: #880E4F; font-size: 12px; margin-top: -40px; }

    .info-icon { width: 16px; height: 16px; color: var(--service-color); cursor: pointer; }

    /* Loading */
    .loading-container {
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        padding: 60px 20px;
    }
    .loading-spinner {
        width: 48px; height: 48px;
        border: 3px solid var(--gray-600);
        border-top-color: var(--service-color);
        border-radius: 50%;
        animation: grm-spin 1s linear infinite;
    }
    .loading-text { margin-top: 16px; color: var(--gray-400); }

    /* Stripe Payment Modal */
    .stripe-modal-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.9);
        display: flex; align-items: center; justify-content: center;
        z-index: 2600;
        padding: 20px;
    }
    .stripe-modal {
        background: white;
        border-radius: var(--radius-lg);
        width: 100%; max-width: 400px;
        overflow: hidden;
    }
    .stripe-modal-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e5e7eb;
    }
    .stripe-modal-header h3 { font-size: 18px; font-weight: 700; color: #111; }
    .stripe-close-btn { background: none; border: none; font-size: 24px; cursor: pointer; color: #666; }
    .stripe-modal-body { padding: 20px; }
    .stripe-amount {
        display: flex; justify-content: space-between; align-items: center;
        padding: 16px;
        background: #f9fafb; border-radius: 8px;
        margin-bottom: 20px;
    }
    .stripe-amount span { color: #666; }
    .stripe-amount strong { font-size: 24px; color: #111; }
    #payment-element { min-height: 200px; }
    #square-card-container { margin-bottom:16px; min-height:90px; }
    .stripe-error { color: #ef4444; font-size: 14px; margin-top: 12px; }
    .stripe-modal-footer { padding: 16px 20px; border-top: 1px solid #e5e7eb; }
    .stripe-pay-btn {
        width: 100%; padding: 16px;
        background: var(--service-color); border: none;
        border-radius: 8px;
        color: white; font-size: 16px; font-weight: 700; cursor: pointer;
    }
    .stripe-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; }

    /* Waiver Modal - Full screen slide up */
    .waiver-modal-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 2400;
        display: flex; align-items: flex-end; justify-content: center;
    }
    .waiver-modal-overlay.hidden { display: none; }
    .waiver-modal {
        background: var(--navy);
        width: 100%; max-width: 500px;
        max-height: 95vh;
        border-radius: 24px 24px 0 0;
        display: flex; flex-direction: column;
        animation: grm-slideUp 0.3s ease;
    }
    .waiver-header {
        display: flex; align-items: center; justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--gray-600);
    }
    .waiver-close-btn {
        width: 40px; height: 40px; border-radius: 50%;
        background: transparent; border: none;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; color: white;
    }
    .waiver-header-title { font-size: 18px; font-weight: 700; color: white; }
    .waiver-body { flex: 1; overflow-y: auto; padding: 20px; }
    .waiver-info-banner {
        display: flex; align-items: center; gap: 12px;
        padding: 14px;
        background: #451a03; border-radius: 12px;
        margin-bottom: 16px;
    }
    .waiver-info-banner i { color: #F59E0B; }
    .waiver-info-text {
        flex: 1; font-size: 14px; font-weight: 500;
        color: #fcd34d; line-height: 1.4;
    }
    .waiver-pets-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
    .waiver-pet-item {
        display: flex; align-items: center; gap: 10px;
        padding: 12px;
        background: #1a1a2e;
        border: 2px solid #F59E0B;
        border-radius: 12px;
    }
    .waiver-pet-item i { color: #F59E0B; }
    .waiver-pet-name { flex: 1; font-size: 16px; font-weight: 600; color: white; }
    .needs-waiver-badge {
        display: flex; align-items: center; gap: 4px;
        padding: 4px 10px;
        background: #FEF3C7; border-radius: 12px;
    }
    .needs-waiver-badge i { color: #F59E0B; width: 14px; height: 14px; }
    .needs-waiver-text { font-size: 12px; font-weight: 600; color: #F59E0B; }
    .waiver-content-box {
        background: #1a1a2e;
        border: 1px solid var(--gray-600);
        border-radius: 14px;
        padding: 16px; margin-bottom: 20px;
    }
    .waiver-content-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
    .waiver-content-title { flex: 1; font-size: 16px; font-weight: 700; color: white; }
    .waiver-text-scroll { max-height: 180px; overflow-y: auto; }
    /* waiver-darkmode-override-v1: force readable colors on admin-pasted waiver HTML.
       Pasted Word/Google Docs content often carries inline color:#000 which
       renders black text on the dark blue waiver panel — unreadable. These
       !important rules win over inline color/background regardless of source. */
    .waiver-text, .waiver-text *:not(a) { color: var(--gray-200) !important; background-color: transparent !important; }
    .waiver-text strong, .waiver-text b, .waiver-text h1, .waiver-text h2, .waiver-text h3, .waiver-text h4, .waiver-text h5, .waiver-text h6 { color: #fff !important; }
    .waiver-text a { color: #10B981 !important; }
    .waiver-text { font-size: 13px; line-height: 1.5; color: var(--gray-400); }
    .waiver-text h2, .waiver-text h3 { color: var(--gray-200); margin: 12px 0 6px; font-size: 14px; }
    .waiver-text h2 { font-size: 15px; margin-top: 0; }
    .waiver-text p { margin: 6px 0; }
    .waiver-text ul, .waiver-text ol { margin: 6px 0; padding-left: 20px; }
    .waiver-text li { margin: 3px 0; }
    .signature-section {
        background: var(--navy-light);
        border: 1px solid var(--gray-600);
        border-radius: 14px;
        padding: 16px; margin-bottom: 20px;
    }
    .signature-section-title { font-size: 16px; font-weight: 700; color: white; margin-bottom: 16px; }
    .input-group { margin-bottom: 16px; }
    .input-label { font-size: 13px; font-weight: 500; color: var(--gray-400); margin-bottom: 6px; display: block; }
    .waiver-input {
        width: 100%;
        background: var(--navy);
        border: 1px solid var(--gray-600);
        border-radius: 10px;
        padding: 14px;
        font-size: 15px; color: white; outline: none;
    }
    .waiver-input:focus { border-color: var(--service-color); }
    .signature-pad-container { margin-bottom: 16px; }
    .signature-pad-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
    .signature-pad-label { font-size: 13px; font-weight: 500; color: var(--gray-400); }
    .signature-clear-btn {
        display: flex; align-items: center; gap: 4px;
        background: #FEE2E2; border: 1px solid #EF4444;
        border-radius: 6px; padding: 5px 10px;
        cursor: pointer;
        color: #EF4444; font-size: 12px; font-weight: 600;
    }
    .signature-canvas {
        width: 100%; height: 150px;
        background: white;
        border: 2px solid #D1D5DB;
        border-radius: 12px;
        cursor: crosshair; touch-action: none;
    }
    .signature-placeholder {
        position: absolute; top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        display: flex; align-items: center; gap: 8px;
        color: #9CA3AF; font-size: 14px;
        pointer-events: none;
    }
    .agreement-row {
        display: flex; align-items: center; gap: 12px;
        margin-top: 16px; cursor: pointer;
    }
    .agreement-checkbox {
        width: 24px; height: 24px; min-width: 24px;
        border: 2px solid var(--gray-500);
        border-radius: 6px;
        display: flex; align-items: center; justify-content: center;
        transition: all 0.2s;
    }
    .agreement-checkbox.checked { background: #10B981; border-color: #10B981; }
    .agreement-text { font-size: 14px; font-weight: 500; color: white; }
    .waiver-submit-btn {
        width: 100%;
        display: flex; align-items: center; justify-content: center; gap: 8px;
        padding: 16px;
        background: #9CA3AF; border: none;
        border-radius: 14px;
        color: white; font-size: 16px; font-weight: 700;
        cursor: pointer; margin-bottom: 12px;
        transition: background 0.2s;
    }
    .waiver-submit-btn.enabled { background: #10B981; }
    .waiver-cancel-btn {
        width: 100%; padding: 12px;
        background: transparent; border: none;
        color: var(--gray-400); font-size: 15px; font-weight: 500;
        cursor: pointer; text-align: center;
    }

    /* ═══════════════════════════════════════════════════════════════════════════════
       LIGHT THEME — activated by [data-theme="light"] on the .grm-wizard wrapper.
       Used by book.html's modal. buildout.html standalone doesn't set this attribute,
       so it continues to use the dark theme above. Mobile + desktop responsive via
       a sidebar layout at ≥1024px.
       ═══════════════════════════════════════════════════════════════════════════════ */
    &[data-theme="light"] {
        /* Light palette — clean grays & white, pink accent preserved */
        --grm-bg: #f8fafc;
        --grm-bg-card: #ffffff;
        --grm-bg-subtle: #f1f5f9;
        --grm-border: #e2e8f0;
        --grm-border-strong: #cbd5e1;
        --grm-text: #0f172a;
        --grm-text-muted: #64748b;
        --grm-text-subtle: #94a3b8;
        --grm-accent: #E91E63;
        --grm-accent-soft: #FCE4EC;
        --grm-success: #10B981;
        --grm-success-soft: #D1FAE5;

        background: var(--grm-bg);
        color: var(--grm-text);

        .app-container { background: transparent; }

        /* Header */
        .header {
            background: var(--grm-bg-card);
            border-bottom: 1px solid var(--grm-border);
            color: var(--grm-text);
            padding-top: 16px;
        }
        .header-btn { color: var(--grm-text-muted); }
        .header-btn:hover { color: var(--grm-text); }
        .header-title { color: var(--grm-text); }
        .price-badge {
            background: var(--grm-accent-soft);
            color: var(--grm-accent);
            font-weight: 700;
        }
        .header-badge { background: var(--grm-accent); color: white; }

        /* Progress bar — top horizontal (mobile) */
        .progress-bar {
            background: var(--grm-bg-card);
            border-bottom: 1px solid var(--grm-border);
        }
        .step-circle { background: var(--grm-border); color: var(--grm-text-subtle); }
        .progress-step.active .step-circle { background: var(--grm-accent); color: white; }
        .progress-step.completed .step-circle { background: var(--grm-success); color: white; }
        .step-label { color: var(--grm-text-subtle); }
        .progress-step.active .step-label { color: var(--grm-accent); font-weight: 600; }

        /* Step content text */
        .step-title { color: var(--grm-text); }
        .step-subtitle { color: var(--grm-text-muted); }

        /* Pet / Service / Addon cards */
        .pet-card, .service-card, .addon-card {
            background: var(--grm-bg-card);
            border: 1.5px solid var(--grm-border);
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
            color: var(--grm-text);
        }
        .pet-card:hover, .service-card:hover, .addon-card:hover {
            border-color: var(--grm-border-strong);
        }
        .pet-card.selected, .service-card.selected, .addon-card.selected {
            border-color: var(--grm-accent);
            background: var(--grm-accent-soft);
            box-shadow: 0 2px 8px rgba(233, 30, 99, 0.12);
        }
        .pet-avatar { background: var(--grm-bg-subtle); }
        .pet-name, .service-name, .addon-name { color: var(--grm-text); }
        .pet-breed, .service-desc, .addon-desc { color: var(--grm-text-muted); }
        .service-duration { color: var(--grm-text-subtle); }
        .service-price { color: var(--grm-accent); }
        .service-price-unit { color: var(--grm-text-muted); }
        .addon-price { color: var(--grm-accent); }
        .pet-checkbox, .addon-checkbox {
            background: var(--grm-bg-card);
            border-color: var(--grm-border-strong);
        }
        .pet-card.selected .pet-checkbox,
        .addon-card.selected .addon-checkbox {
            background: var(--grm-accent);
            border-color: var(--grm-accent);
        }
        .service-radio {
            background: var(--grm-bg-card);
            border-color: var(--grm-border-strong);
        }
        .service-card.selected .service-radio {
            background: var(--grm-accent);
            border-color: var(--grm-accent);
        }
        .addon-pets { border-top-color: var(--grm-border); }
        .addon-pets-label { color: var(--grm-text-muted); }
        .addon-pet-chip {
            border-color: var(--grm-border-strong);
            color: var(--grm-text-muted);
        }
        .addon-pet-chip.selected {
            border-color: var(--grm-accent);
            background: var(--grm-accent-soft);
            color: var(--grm-accent);
        }

        /* Preferences button */
        .preferences-button {
            background: var(--grm-accent-soft);
            border-color: var(--grm-accent);
        }
        .preferences-button:hover { background: #fbcfe8; }
        .preferences-title { color: var(--grm-accent); }
        .preferences-subtitle { color: rgba(233, 30, 99, 0.7); }
        .preferences-preview {
            background: var(--grm-bg-card);
            border-color: var(--grm-accent);
        }
        .preferences-preview-title { color: var(--grm-accent); }
        .preferences-preview-item { color: var(--grm-text-muted); }
        .preferences-preview-item strong { color: var(--grm-text); }

        /* Calendar */
        .calendar-container {
            background: var(--grm-bg-card);
            border: 1px solid var(--grm-border);
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .calendar-header { border-bottom-color: var(--grm-border); }
        .calendar-nav { background: var(--grm-bg-subtle); color: var(--grm-text); }
        .calendar-nav:hover { background: var(--grm-border); }
        .calendar-month { color: var(--grm-text); }
        .calendar-weekday { color: var(--grm-text-subtle); }
        .calendar-day { color: var(--grm-text); }
        .calendar-day:hover:not(.disabled):not(.selected) { background: var(--grm-bg-subtle); }
        .calendar-day.selected {
            background: var(--grm-accent) !important;
            color: white !important;
            border-color: var(--grm-accent) !important;
        }
        .calendar-day.disabled { color: var(--grm-text-subtle); }
        .calendar-day.today { border: 2px solid var(--grm-accent); }
        .calendar-legend {
            background: var(--grm-bg-subtle);
            color: var(--grm-text-muted);
        }
        .legend-item { color: var(--grm-text-muted); }
        .selected-date-card {
            background: var(--grm-accent-soft);
            border-color: var(--grm-accent);
        }
        .selected-date-text { color: var(--grm-accent); }

        /* Time slots */
        .time-slot {
            background: var(--grm-bg-card);
            border-color: var(--grm-border);
            color: var(--grm-text);
        }
        .time-slot:hover:not(.disabled):not(.selected) { border-color: var(--grm-border-strong); }
        .time-slot.selected {
            background: var(--grm-accent-soft);
            border-color: var(--grm-accent);
        }
        .time-slot.selected .time-slot-time { color: var(--grm-accent); }
        .time-slot-status { color: var(--grm-text-subtle); }

        /* Summary / Price card */
        .summary-card, .price-card {
            background: var(--grm-bg-card);
            border: 1px solid var(--grm-border);
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }
        .summary-label { color: var(--grm-text-muted); }
        .summary-value { color: var(--grm-text); }
        .price-label { color: var(--grm-text-muted); }
        .price-value { color: var(--grm-text); }
        .total-row { border-top-color: var(--grm-border); }
        .total-label { color: var(--grm-text); }
        .total-value { color: var(--grm-accent); }

        /* Promo */
        .promo-section {
            background: var(--grm-bg-card);
            border: 1px solid var(--grm-border);
        }
        .promo-trigger { color: var(--grm-accent); }
        .promo-input {
            background: var(--grm-bg-subtle);
            border-color: var(--grm-border);
            color: var(--grm-text);
        }
        .promo-apply-btn { background: var(--grm-accent); color: white; }
        .promo-applied {
            background: var(--grm-success-soft);
            border-color: var(--grm-success);
        }
        .promo-code-text { color: #047857; }
        .promo-remove { color: var(--grm-text-muted); }

        /* Notes */
        .notes-input {
            background: var(--grm-bg-card);
            border-color: var(--grm-border);
            color: var(--grm-text);
        }

        /* Warning, empty state */
        .warning-card { background: #FEF3C7; border-color: #F59E0B; }
        .no-addons-card { background: var(--grm-bg-card); color: var(--grm-text-muted); }
        .no-addons-text { color: var(--grm-text-muted); }

        /* Bottom nav */
        .bottom-nav {
            background: var(--grm-bg-card);
            border-top: 1px solid var(--grm-border);
        }
        .nav-btn {
            background: var(--grm-bg-subtle);
            border: 1px solid var(--grm-border);
            color: var(--grm-text);
        }
        .nav-btn:hover:not(:disabled) { border-color: var(--grm-accent); color: var(--grm-accent); }
        .nav-btn.primary {
            background: var(--grm-accent);
            border-color: var(--grm-accent);
            color: white;
        }
        .nav-btn.primary:hover:not(:disabled) {
            background: #d81557;
            border-color: #d81557;
        }
        .nav-btn.primary:disabled {
            background: var(--grm-border);
            border-color: var(--grm-border);
            color: var(--grm-text-subtle);
        }
        .home-btn {
            background: var(--grm-bg-subtle);
            color: var(--grm-text);
            border: 1px solid var(--grm-border);
        }
        .home-btn:hover { background: var(--grm-border); }

        /* Preferences modal — light theme */
        .preferences-modal { background: var(--grm-bg); }
        .preferences-modal-header {
            background: var(--grm-bg-card);
            border-bottom: 1px solid var(--grm-border);
        }
        .preferences-modal-title { color: var(--grm-text); }
        .preferences-modal-close {
            background: var(--grm-bg-subtle);
            color: var(--grm-text);
        }
        .preferences-modal-footer {
            background: var(--grm-bg-card);
            border-top: 1px solid var(--grm-border);
        }
        .pref-card {
            background: var(--grm-accent-soft);
            border-color: var(--grm-accent);
        }
        .pref-option {
            background: var(--grm-bg-card);
            color: var(--grm-text);
        }

        /* Loading */
        .loading-text { color: var(--grm-text-muted); }
        .loading-spinner {
            border-color: var(--grm-border);
            border-top-color: var(--grm-accent);
        }

        /* Success modal — subtle light look */
        .success-modal-content { background: var(--grm-bg-card); color: var(--grm-text); }
        .success-title { color: var(--grm-text); }
        .success-subtitle { color: var(--grm-text-muted); }
        .success-details-card { background: var(--grm-bg-subtle); border-color: var(--grm-accent); }
        .success-detail-row { color: var(--grm-text); }
        .success-detail-icon { color: var(--grm-text-muted); }

        /* ───── DESKTOP: Calendly-style 2-column sidebar layout (≥1024px) ───── */
        @media (min-width: 1024px) {
            .app-container {
                /* Ditch the 500px mobile column — fill the whole modal */
                max-width: 100%;
                height: 100%;
                display: grid;
                grid-template-columns: 280px 1fr;
                grid-template-rows: auto 1fr auto;
                grid-template-areas:
                    "sidebar header"
                    "sidebar content"
                    "sidebar nav";
            }

            .header {
                grid-area: header;
                padding: 20px 36px;
            }

            /* Progress bar becomes a vertical sidebar on the left */
            .progress-bar {
                grid-area: sidebar;
                flex-direction: column;
                align-items: stretch;
                justify-content: flex-start;
                background: var(--grm-bg-subtle);
                border-right: 1px solid var(--grm-border);
                border-bottom: none;
                padding: 28px 20px;
                gap: 6px;
                overflow-y: auto;
            }
            .progress-step {
                flex-direction: row;
                gap: 12px;
                min-width: 0;
                width: 100%;
                padding: 10px 14px;
                border-radius: 10px;
                transition: background 0.15s;
            }
            .progress-step:hover { background: rgba(233, 30, 99, 0.06); }
            .progress-step.active { background: var(--grm-bg-card); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
            .step-circle { flex-shrink: 0; margin-bottom: 0; }
            .step-label {
                text-align: left;
                text-transform: none;
                font-size: 14px;
                font-weight: 500;
                letter-spacing: 0;
            }

            .booking-content {
                grid-area: content;
                padding: 32px 36px;
                min-height: 0;
            }

            .bottom-nav {
                grid-area: nav;
                padding: 16px 36px;
                padding-bottom: max(16px, env(safe-area-inset-bottom));
            }

            /* Cards flow 2-up on desktop */
            .booking-content {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                gap: 14px;
                align-content: flex-start;
            }
            .booking-content > * { flex-basis: 100%; margin-bottom: 0; }
            .booking-content > .pet-card,
            .booking-content > .service-card,
            .booking-content > .addon-card { flex-basis: calc(50% - 7px); }
            .booking-content > .time-slot { flex-basis: calc(33.333% - 10px); }
            .booking-content > .smart-service-row,
            .booking-content > .preferences-button,
            .booking-content > .preferences-preview,
            .booking-content > .calendar-container,
            .booking-content > .selected-date-card,
            .booking-content > .time-slots-grid,
            .booking-content > .price-card,
            .booking-content > .deposit-card,
            .booking-content > .book-pay-btn,
            .booking-content > .pay-later-link,
            .booking-content > .promo-section,
            .booking-content > .notes-section,
            .booking-content > .warning-card,
            .booking-content > .no-addons-card,
            .booking-content > .summary-card { flex-basis: 100%; }

            /* Calendar gets more room */
            .calendar-grid { padding: 20px; }
            .calendar-day { font-size: 16px; }
            .time-slots-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }

            /* Bigger typography */
            .step-title { font-size: 28px; margin-bottom: 4px; }
            .step-subtitle { font-size: 15px; margin-bottom: 24px; }
        }
    }
}
