:root {
    --primary-color: #0d6efd;
    --accent-color: #20c997;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(32, 201, 151, 0.14);
    --shadow-glow: 0 8px 32px rgba(32, 201, 151, 0.1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background: wellness-surface.css (.wellness-bg) */

body.booking-page {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-size: 1.0625rem;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* ── Navbar ── */
.public-navbar {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(32, 201, 151, 0.12);
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(32, 201, 151, 0.06);
}

.public-navbar > .container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.public-navbar .public-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    margin-right: 0;
}

.public-brand-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: min(140px, 42vw);
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
    filter: brightness(1.1);
}

.public-brand-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent-color);
}

.public-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.public-brand-name {
    font-size: 1.1rem;
    color: #0f172a;
}

.public-brand-tagline {
    font-size: 0.75rem;
    font-weight: 400;
    color: #64748b;
}

.public-navbar .btn-outline-primary {
    border-color: color-mix(in srgb, var(--primary-color) 35%, #cbd5e1);
    color: var(--primary-color);
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    backdrop-filter: blur(8px);
    transition: all 0.25s var(--transition-smooth);
    background: rgba(255, 255, 255, 0.65);
}

.public-navbar .btn-outline-primary:hover {
    background: color-mix(in srgb, var(--primary-color) 80%, transparent);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}

/* ── Wizard container ── */
.booking-wizard {
    max-width: 680px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.booking-page .container {
    position: relative;
    z-index: 1;
}

/* ── Progress bar ── */
.progress-track {
    height: 4px;
    background: rgba(32, 201, 151, 0.14);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 99px;
    transition: width 0.6s var(--transition-smooth);
    box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color) 50%, transparent);
}

/* ── Step indicator ── */
.steps {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.25rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(32, 201, 151, 0.12);
    font-size: 0.7rem;
    color: #64748b;
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 20%, transparent), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}

.step.active {
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(32, 201, 151, 0.12);
}

.step.active::before { opacity: 1; }

.step.done {
    border-color: color-mix(in srgb, var(--accent-color) 40%, transparent);
    color: var(--accent-color);
}

.step-num {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.step.active .step-num {
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 70%, #6366f1));
    color: #fff;
    box-shadow: 0 0 16px color-mix(in srgb, var(--primary-color) 50%, transparent);
}

.step.done .step-num {
    background: var(--accent-color);
    color: #fff;
}

.step.done .step-num::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
}

.step.done .step-num span { display: none; }

.step-label {
    display: block;
    font-weight: 500;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.step-icon {
    display: none;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
    position: relative;
    z-index: 1;
}

/* ── Glass card ── */
.wizard-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-glow), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
}

.wizard-card .card-body {
    padding: 1.5rem;
}

/* ── Step content ── */
.booking-step {
    animation: stepIn 0.45s var(--transition-smooth) both;
}

.booking-step.step-exit {
    animation: stepOut 0.3s var(--transition-smooth) both;
}

@keyframes stepIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes stepOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-24px); }
}

.step-header {
    margin-bottom: 1.5rem;
}

.step-header h4 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
    line-height: 1.3;
}

.step-hint {
    color: #64748b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.45;
}

.step-hint i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.step-hint.auto-hint {
    animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ── Selection cards ── */
.type-card, .therapist-card {
    cursor: pointer;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.1rem;
    padding: 1.3rem 1.2rem;
    background: rgba(255, 255, 255, 0.85);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: auto;
}

@media (min-width: 576px) {
    .type-card, .therapist-card {
        height: 100%;
    }
}

.type-card::after, .therapist-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 8%, transparent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.type-card:hover, .therapist-card:hover {
    border-color: color-mix(in srgb, var(--primary-color) 50%, transparent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.type-card:hover::after, .therapist-card:hover::after { opacity: 1; }

.type-card.selected, .therapist-card.selected {
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 6%, white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 20%, transparent),
                0 8px 24px color-mix(in srgb, var(--primary-color) 20%, transparent);
    transform: translateY(-2px);
}

.type-card.selected::before, .therapist-card.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 26px;
    height: 26px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.35s var(--transition-smooth);
    z-index: 2;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.type-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}

.type-card-title, .therapist-card-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.type-card-body, .therapist-card-body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.type-card-meta, .therapist-card-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.3rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.therapist-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}

/* ── Therapists reveal animation ── */
#therapistsList {
    animation: slideDown 0.4s var(--transition-smooth);
}

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

.subsection-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin: 1.25rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subsection-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #e2e8f0, transparent);
}

/* ── Date picker ── */
.date-picker-wrap {
    position: relative;
    margin-bottom: 1.25rem;
}

.date-picker-wrap label {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.date-picker-wrap .form-control {
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    padding: 0.85rem 1rem;
    font-size: 1.0625rem;
    transition: all 0.25s;
    background: rgba(255, 255, 255, 0.9);
}

.date-picker-wrap .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

/* ── Time slots ── */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.6rem;
}

.slot-btn {
    border-radius: 0.75rem !important;
    padding: 0.75rem 0.5rem !important;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #334155 !important;
    transition: all 0.25s var(--transition-smooth) !important;
    min-width: unset !important;
}

.slot-btn:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.slot-btn.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 35%, transparent);
    transform: scale(1.05);
}

.slots-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
    grid-column: 1 / -1;
}

.slots-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.5;
}

/* ── Contact form ── */
.form-floating-custom {
    margin-bottom: 1rem;
}

.form-floating-custom label {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    display: block;
}

.form-floating-custom .form-control {
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    padding: 0.85rem 1rem;
    font-size: 1.0625rem;
    transition: all 0.25s;
    background: rgba(255, 255, 255, 0.9);
}

.form-floating-custom .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.form-floating-custom .form-control.is-valid-field {
    border-color: var(--accent-color);
}

.form-progress {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.form-progress-dot {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: #e2e8f0;
    transition: background 0.3s;
}

.form-progress-dot.filled {
    background: var(--accent-color);
}

/* ── Summary ── */
.summary-box {
    background: rgba(248, 250, 252, 0.9);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.summary-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
}

.summary-row:last-child { border-bottom: none; }

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.6rem;
    background: color-mix(in srgb, var(--primary-color) 10%, white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.summary-label {
    font-size: 0.8125rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.summary-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1.35;
}

/* ── Buttons ── */
.btn-back {
    border-radius: 0.75rem;
    padding: 0.7rem 1.35rem;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid #e2e8f0;
    color: #64748b;
    background: transparent;
    transition: all 0.25s;
}

.btn-back:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.btn-confirm {
    border-radius: 0.75rem;
    padding: 0.85rem 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color) 80%, #059669));
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent-color) 35%, transparent);
    transition: all 0.3s var(--transition-smooth);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--accent-color) 45%, transparent);
    color: #fff;
}

.btn-confirm:active { transform: translateY(0); }

.btn-confirm.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* ── Success screen ── */
.success-screen {
    text-align: center;
    padding: 2rem 1rem;
    animation: stepIn 0.6s var(--transition-smooth);
}

.success-icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 32px color-mix(in srgb, var(--accent-color) 40%, transparent);
    animation: successPop 0.6s var(--transition-smooth) 0.2s both;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon-wrap i {
    font-size: 2.5rem;
    color: #fff;
}

.success-screen h3 {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.ref-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--primary-color) 10%, white);
    border: 2px dashed color-mix(in srgb, var(--primary-color) 30%, transparent);
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    margin: 0.5rem 0 1.5rem;
}

/* ── Skeleton ── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
    height: 3.5rem;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Toast override ── */
.toast-container .toast {
    backdrop-filter: blur(12px);
    border-radius: 0.75rem !important;
}

/* ── Manage page ── */
.manage-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-glow);
}

.booking-page .btn-link {
    color: #64748b;
    text-decoration: none;
}

.booking-page .btn-link:hover { color: #0f172a; }

.booking-page .card h4, .booking-page .card h5 {
    color: #1e293b;
}

/* ── Primary button override ── */
.booking-page .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 80%, #6366f1));
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-color) 30%, transparent);
    transition: all 0.25s var(--transition-smooth);
}

.booking-page .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 40%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 90%, #6366f1), var(--primary-color));
}

/* ── Step counter (mobile) ── */
.step-counter {
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin: -0.5rem 0 0.75rem;
    letter-spacing: 0.05em;
}

/* ── Mobile-first responsive ── */
@media (max-width: 575.98px) {
    body.booking-page {
        min-height: 100dvh;
        min-height: 100svh;
        overflow-x: hidden;
    }

    .booking-container {
        max-width: 100%;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        min-height: calc(100dvh - 52px);
        min-height: calc(100svh - 52px);
    }

    .booking-wizard {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        min-height: calc(100dvh - 52px - 1rem);
        min-height: calc(100svh - 52px - 1rem);
        display: flex;
        flex-direction: column;
    }

    .wizard-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        align-self: stretch;
    }

    .wizard-card .card-body {
        padding: 0.75rem 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .booking-step:not(.d-none) {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        min-width: 0;
    }

    .booking-step:not(.d-none) > .step-header,
    .booking-step:not(.d-none) > .date-picker-wrap,
    .booking-step:not(.d-none) > .contact-form,
    .booking-step:not(.d-none) > .summary-box,
    .booking-step:not(.d-none) > #autoAssignBox,
    .booking-step:not(.d-none) > #paymentBox,
    .booking-step:not(.d-none) > .step-actions {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #typesList.row,
    #therapistsList.row {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        align-content: start;
    }

    #slotsList {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .public-navbar {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
        min-height: 52px;
    }

    .public-brand-logo {
        height: 28px;
        max-width: min(110px, 38vw);
    }

    .public-brand-name {
        font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .progress-track { margin-bottom: 0.35rem; }

    .progress-track,
    .step-counter {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
    }

    .step-header {
        margin-bottom: 0.65rem;
        flex-shrink: 0;
    }

    .step-header h4 {
        font-size: 1.2rem;
        margin-bottom: 0;
        line-height: 1.3;
    }

    .step-hint { display: none !important; }

    /* Readable horizontal selection cards */
    .type-card, .therapist-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
        padding: 0.9rem 1rem;
        height: auto;
    }

    #typesList.row > [class*="col-"],
    #therapistsList.row > [class*="col-"] {
        display: block;
    }

    .type-card-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        margin-bottom: 0;
        font-size: 1.05rem;
        border-radius: 0.7rem;
    }

    .type-card-title {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .type-card-meta {
        font-size: 0.875rem;
        margin-top: 0.15rem;
        line-height: 1.35;
    }

    .therapist-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
        margin-bottom: 0;
        font-size: 1.05rem;
    }

    .therapist-card-name {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .type-card.selected::before, .therapist-card.selected::before {
        top: 50%;
        right: 0.75rem;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    #typesList, #therapistsList {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0;
        align-content: start;
    }

    #typesList.row, #therapistsList.row {
        --bs-gutter-y: 0.55rem;
        --bs-gutter-x: 0.55rem;
    }

    .date-picker-wrap {
        margin-bottom: 0.75rem;
        flex-shrink: 0;
    }

    .date-picker-wrap .form-control {
        padding: 0.7rem 0.85rem;
        font-size: 1.0625rem;
    }

    #slotsList {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        align-content: start;
    }

    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .slot-btn {
        padding: 0.6rem 0.35rem !important;
        font-size: 0.95rem;
        border-radius: 0.65rem !important;
    }

    .form-floating-custom {
        margin-bottom: 0.75rem;
    }

    .form-floating-custom .form-control {
        padding: 0.7rem 0.85rem;
        font-size: 1.0625rem;
    }

    .form-floating-custom label {
        font-size: 0.875rem;
        margin-bottom: 0.3rem;
    }

    .form-progress { margin-bottom: 0.75rem; }

    .summary-row {
        padding: 0.8rem 0.95rem;
        gap: 0.75rem;
    }

    .summary-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .summary-label { font-size: 0.8rem; }

    .summary-value { font-size: 0.98rem; }

    .step-actions {
        flex-shrink: 0;
        margin-top: auto !important;
        padding-top: 0.5rem;
    }

    .btn-back {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }

    .btn-confirm {
        width: 100%;
        margin-top: 0;
        padding: 0.75rem 1rem;
        font-size: 1.05rem;
    }

    .step-actions {
        flex-direction: column-reverse;
        gap: 0.4rem;
    }

    .step-actions .btn-back {
        width: 100%;
        text-align: center;
    }

    .public-navbar .btn-outline-primary span.btn-text { display: none; }

    .skeleton { height: 3.25rem; }

    .success-screen { padding: 1.5rem 0.5rem; }
    .success-icon-wrap { width: 72px; height: 72px; margin-bottom: 1rem; }
    .success-icon-wrap i { font-size: 2rem; }
}

@media (min-width: 576px) {
    .step-counter { display: none; }
}

@media (min-width: 768px) {
    .wizard-card .card-body { padding: 2rem; }

    .step { font-size: 0.78rem; }

    .step-num {
        margin-right: 0.3rem;
        margin-bottom: 0;
        display: inline-flex;
    }
}

/* ── Legal consent (booking step 1) ── */
.legal-consent-box {
    background: color-mix(in srgb, var(--primary-color) 6%, #fff);
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
}

.legal-consent-box .form-check-label {
    font-size: 0.95rem;
    line-height: 1.45;
    color: #334155;
}

.legal-consent-box .form-check-label a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-consent-box .form-check-label a:hover {
    color: color-mix(in srgb, var(--primary-color) 80%, #000);
}

.legal-consent-box.legal-consent-error {
    border-color: #dc3545;
    background: #fff5f5;
    animation: legalShake 0.45s ease;
}

@keyframes legalShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ── Legal pages (terms / privacy) ── */
.legal-page-wrap {
    max-width: 820px;
}

.legal-back-link {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
}

.legal-back-link:hover {
    color: #0f172a;
}

.legal-page-content {
    color: #1e293b;
    font-size: 0.98rem;
    line-height: 1.65;
}

.legal-page-header h1 {
    color: #0f172a;
    font-weight: 700;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.legal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin: 1rem 0 0.5rem;
}

.legal-list {
    padding-left: 1.25rem;
}

.legal-list li {
    margin-bottom: 0.35rem;
}

.legal-section a {
    color: var(--primary-color);
    font-weight: 500;
}

.legal-section a:hover {
    color: color-mix(in srgb, var(--primary-color) 75%, #000);
}

.legal-table {
    font-size: 0.88rem;
}

.legal-table th {
    background: #f8fafc;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .legal-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Text fields are typed/stored in uppercase; placeholders stay as written. */
input[type="text"]:not([data-no-uppercase]):not(.js-no-uppercase),
input[type="search"]:not([data-no-uppercase]):not(.js-no-uppercase),
input:not([type]):not([data-no-uppercase]):not(.js-no-uppercase),
textarea:not([data-no-uppercase]):not(.js-no-uppercase) {
    text-transform: uppercase;
}

input[type="text"]::placeholder,
input[type="search"]::placeholder,
input:not([type])::placeholder,
textarea::placeholder {
    text-transform: none;
}

/* ── Global loader (public booking) ── */
.global-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.global-loader.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.global-loader-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.3);
    min-width: 180px;
}

.global-loader-gif {
    display: block;
    width: 64px;
    height: 64px;
}

.global-loader-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
}

.booking-page .hcaptcha-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
