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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background-color: var(--page-background);
    color: var(--text-primary);
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}



:root {
    --brand: #6558e8;
    --brand-hover: #5145cc;
    --brand-soft: #eeecff;
    --brand-border: #d9d5ff;

    --page-background: #f6f7fb;
    --surface: #ffffff;
    --surface-muted: #f9fafb;

    --text-primary: #171923;
    --text-secondary: #667085;
    --text-light: #98a2b3;

    --border: #e4e7ec;
    --border-strong: #d0d5dd;

    --success: #15803d;

    --shadow-sm:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 1px 3px rgba(16, 24, 40, 0.08);

    --shadow-md:
        0 8px 24px rgba(16, 24, 40, 0.08);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;

    --content-width: 920px;
}


/* =========================================================
   HEADER / NAVIGATION
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background-color: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.navbar {
    width: min(100% - 40px, 1120px);
    min-height: 68px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.platform-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--text-primary);
    text-decoration: none;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background-color: var(--brand);
    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 800;
}

.brand-mark-image {
    object-fit: cover;
    padding: 0;
    background: transparent;
    box-shadow: 0 5px 14px rgba(39, 32, 152, 0.18);
}

.brand-name {
    font-size: 1.08rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;

    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.nav-links a:hover {
    color: var(--brand);
}


/* =========================================================
   MAIN BOOKING PAGE
========================================================= */

.booking-page {
    width: min(100% - 40px, var(--content-width));
    margin: 0 auto;
    padding: 56px 0 88px;
}


/* =========================================================
   BUSINESS HERO
========================================================= */

.business-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 22px;

    margin-bottom: 34px;
    padding: 30px;

    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.business-avatar {
    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;
    background-color: var(--brand-soft);
    color: var(--brand);

    font-size: 1.8rem;
    font-weight: 800;
}

.business-identity {
    min-width: 0;
}

.eyebrow {
    margin-bottom: 4px;

    color: var(--brand);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.business-hero h1 {
    margin-bottom: 5px;

    color: var(--text-primary);
    font-size: clamp(1.8rem, 4vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.business-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-dot {
    color: var(--text-light);
}

.business-description {
    max-width: 650px;
    margin-top: 12px;

    color: var(--text-secondary);
    font-size: 0.98rem;
}


/* =========================================================
   APPOINTMENT FORM
========================================================= */

.appointment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================================
   FORM SECTIONS
========================================================= */

.form-section {
    padding: 30px;

    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    margin-bottom: 24px;
}

.section-heading h2 {
    margin-bottom: 3px;

    color: var(--text-primary);
    font-size: 1.12rem;
    line-height: 1.35;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-number {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background-color: var(--brand-soft);
    color: var(--brand);

    font-size: 0.88rem;
    font-weight: 800;
}


/* =========================================================
   FORM GRID / GROUPS
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label,
.time-selection legend {
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 650;
}

.field-hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
}


/* =========================================================
   INPUTS
========================================================= */

input,
select,
textarea {
    width: 100%;

    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    color: var(--text-primary);

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

input,
select {
    min-height: 46px;
    padding: 10px 12px;
}

textarea {
    min-height: 112px;
    padding: 12px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    background-color: var(--surface-muted);
    color: var(--text-light);
}


.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card {
    position: relative;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;

    padding: 17px 18px;

    border: 1px solid var(--border);
    border-radius: 13px;
    background-color: var(--surface);

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        background-color 0.18s ease;
}

.service-card:hover {
    border-color: var(--brand-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.service-card:has(input:checked) {
    border-color: var(--brand);
    background-color: var(--brand-soft);
    box-shadow: 0 0 0 1px var(--brand);
}

.service-card input[type="radio"],
.service-card input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;

    accent-color: var(--brand);
}

.service-info {
    min-width: 0;
}

.service-info h3 {
    margin-bottom: 3px;

    color: var(--text-primary);
    font-size: 0.97rem;
    line-height: 1.4;
}

.service-info p {
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.service-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;

    white-space: nowrap;
}

.service-price {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 750;
}

.service-duration {
    color: var(--text-secondary);
    font-size: 0.78rem;
}


/* =========================================================
   EMPTY / LOADING STATES
========================================================= */

.empty-state {
    padding: 22px;

    border: 1px dashed var(--border-strong);
    border-radius: 12px;
    background-color: var(--surface-muted);

    color: var(--text-secondary);
    text-align: center;
    font-size: 0.88rem;
}

.empty-state-wide {
    grid-column: 1 / -1;
}


/* =========================================================
   DATE / TIME
========================================================= */

.time-selection {
    margin-top: 22px;
    border: 0;
}

.time-selection legend {
    margin-bottom: 11px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.time-slot {
    cursor: pointer;
}

.time-slot input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.time-slot span {
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 9px 8px;

    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background-color: var(--surface);
    color: var(--text-primary);

    font-size: 0.86rem;
    font-weight: 600;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.time-slot span:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.time-slot input:focus-visible + span {
    outline: 3px solid var(--brand-soft);
    outline-offset: 2px;
}

.time-slot input:checked + span {
    border-color: var(--brand);
    background-color: var(--brand);
    color: #ffffff;
}


/* =========================================================
   BOOKING SUMMARY
========================================================= */

.booking-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;

    padding: 30px;

    border: 1px solid var(--brand-border);
    border-radius: var(--radius-md);
    background:
        linear-gradient(
            135deg,
            var(--surface) 0%,
            var(--brand-soft) 100%
        );
}

.summary-content {
    min-width: 0;
}

.summary-label {
    margin-bottom: 5px;

    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.summary-content h2 {
    margin-bottom: 14px;

    color: var(--text-primary);
    font-size: 1.08rem;
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.summary-details div {
    min-width: 0;
}

.summary-details dt {
    margin-bottom: 2px;

    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-details dd {
    overflow-wrap: anywhere;

    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.book-button {
    min-width: 190px;
    min-height: 48px;
    padding: 12px 20px;

    border: 0;
    border-radius: 11px;
    background-color: var(--brand);
    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 750;

    cursor: pointer;

    box-shadow: 0 7px 18px rgba(79, 70, 229, 0.18);

    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.book-button:hover {
    background-color: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(79, 70, 229, 0.22);
}

.book-button:active {
    transform: translateY(0);
}

.book-button:focus-visible {
    outline: 3px solid var(--brand-border);
    outline-offset: 3px;
}

.book-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 26px 20px;

    border-top: 1px solid var(--border);
    background-color: var(--surface);

    color: var(--text-secondary);
    text-align: center;
    font-size: 0.8rem;
}

.footer-brand {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 750;
}

.footer-brand:hover {
    color: var(--brand);
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 760px) {

    .booking-page {
        width: min(100% - 28px, var(--content-width));
        padding-top: 34px;
    }

    .business-hero {
        padding: 24px;
    }

    .form-section,
    .booking-summary {
        padding: 24px;
    }

    .time-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .booking-summary {
        grid-template-columns: 1fr;
    }

    .book-button {
        width: 100%;
    }
}


/* =========================================================
   RESPONSIVE - PHONE
========================================================= */

@media (max-width: 580px) {

    .navbar {
        width: min(100% - 28px, 1120px);
        min-height: 62px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a:first-child {
        display: none;
    }

    .brand-name {
        font-size: 1rem;
    }

    .business-hero {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .business-avatar {
        width: 62px;
        height: 62px;
        border-radius: 16px;
        font-size: 1.4rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}


/* =========================================================
   EXTRA SMALL PHONES
========================================================= */

@media (max-width: 390px) {

    .booking-page {
        width: min(100% - 20px, var(--content-width));
    }

    .business-hero,
    .form-section,
    .booking-summary {
        padding: 20px;
    }

    .service-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .service-meta {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
    }

    .time-grid {
        grid-template-columns: 1fr;
    }
}
/* Multi-service booking */
.service-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--brand);
}

.service-staff-assignments {
    display: grid;
    gap: 12px;
}

.staff-assignment-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) minmax(180px, 260px);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.assignment-order {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
}

.assignment-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assignment-main span,
.staff-assignment-card label > span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.staff-assignment-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.staff-assignment-card select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-primary);
    font: inherit;
}

@media (max-width: 760px) {
    .staff-assignment-card {
        grid-template-columns: 38px minmax(0, 1fr);
    }
    .staff-assignment-card label {
        grid-column: 2;
    }
}

/* V2.3 business map */
.business-map-section {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.3fr);
    gap: 24px;
    align-items: stretch;
    margin: 18px 0 28px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}
.business-map-section[hidden] { display: none; }
.business-map-copy { display: flex; flex-direction: column; justify-content: center; }
.business-map-copy h2 { margin: 4px 0 8px; }
.business-map-copy p:last-child { margin: 0; color: var(--text-secondary); line-height: 1.6; }
.business-map-frame { min-height: 260px; overflow: hidden; border-radius: 16px; background: #eef2f7; }
.business-map-frame iframe { display: block; width: 100%; height: 100%; min-height: 260px; border: 0; }
.map-unavailable { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--text-secondary); }
@media (max-width: 760px) { .business-map-section { grid-template-columns: 1fr; } }

/* V3.1.8 service categories */
.service-category {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-category + .service-category {
    margin-top: 10px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.service-category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 0 2px;
}

.service-category-heading h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.35;
}

.service-category-heading p {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.45;
}

.service-category-heading > span {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 650;
}

.service-category-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* V3.1.8 themed booking success experience */
.booking-success-dialog {
    position: fixed;
    inset: 0;
    width: min(560px, calc(100% - 30px));
    max-width: 560px;
    max-height: calc(100dvh - 30px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    overflow: auto;
}

.booking-success-dialog::backdrop {
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(5px);
}

.booking-success-card {
    padding: 34px;
    border: 1px solid var(--brand-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, var(--brand-soft), transparent 42%),
        var(--surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
    text-align: center;
    font-family: inherit;
}

.booking-success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 1.65rem;
    font-weight: 850;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 28%, transparent);
}

.booking-success-eyebrow {
    margin: 0 0 6px;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.booking-success-card h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.55rem, 5vw, 2rem);
    line-height: 1.2;
}

.booking-success-copy {
    max-width: 430px;
    margin: 10px auto 22px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.booking-success-details {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    text-align: left;
}

.booking-success-details > div {
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand-soft) 42%, var(--surface));
}

.booking-success-details span,
.booking-success-details strong {
    display: block;
}

.booking-success-details span {
    margin-bottom: 3px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.booking-success-details strong {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.45;
}

.booking-success-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 780;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.booking-success-button:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.booking-success-button:focus-visible {
    outline: 3px solid var(--brand-border);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .booking-success-card { padding: 28px 20px 22px; }
    .service-category-heading { align-items: flex-start; }
}

/* V3.1.10+ customer booking controls */
.booking-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.booking-choice-card,
.schedule-mode-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 15px 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.booking-choice-card:hover,
.schedule-mode-card:hover {
    border-color: var(--brand-border);
}

.booking-choice-card.selected,
.schedule-mode-card.selected {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 1px var(--brand);
}

.booking-choice-card input,
.schedule-mode-card input {
    width: 17px;
    min-height: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: var(--brand);
}

.booking-choice-copy,
.schedule-mode-card > span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.booking-choice-copy strong,
.schedule-mode-card strong {
    color: var(--text-primary);
    font-size: .9rem;
}

.booking-choice-copy small,
.schedule-mode-card small {
    color: var(--text-secondary);
    font-size: .79rem;
    line-height: 1.45;
}

#serviceSelectionArea[hidden],
.schedule-mode-picker[hidden],
.service-category-items[hidden] {
    display: none !important;
}

.service-category {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.service-category + .service-category {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid var(--border);
}

.service-category-toggle {
    width: 100%;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.service-category-toggle:hover {
    background: var(--surface-muted);
}

.service-category-heading-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.service-category-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.service-category-title-row strong {
    font-size: .98rem;
    color: var(--text-primary);
}

.service-category-heading-copy small {
    color: var(--text-secondary);
    font-size: .8rem;
    line-height: 1.4;
}

.service-count {
    color: var(--text-secondary);
    font-size: .73rem;
    font-weight: 650;
}

.service-chevron {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1;
    transform: rotate(0deg);
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.service-category.expanded .service-chevron {
    transform: rotate(180deg);
    color: var(--brand);
    background: var(--brand-soft);
}

.service-category-items {
    padding: 0 12px 12px;
}

.schedule-mode-picker {
    margin-bottom: 18px;
}

.field-label {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: .88rem;
    font-weight: 650;
}

.schedule-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.flexible-staff-card {
    border-color: var(--brand-border);
    background: linear-gradient(135deg, var(--surface), var(--brand-soft));
}

.time-grid.separate-time-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.separate-time-card {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-muted);
}

.separate-time-heading {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.separate-time-heading > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.separate-time-heading strong {
    color: var(--text-primary);
    font-size: .9rem;
}

.separate-time-heading span {
    color: var(--text-secondary);
    font-size: .78rem;
}

.separate-selected-time {
    padding: 5px 8px;
    border-radius: 8px;
    background: var(--surface);
    white-space: nowrap;
    font-weight: 700;
}

.separate-date-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    margin: 0 0 12px;
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
}

.separate-date-label {
    color: var(--text-secondary);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.separate-date-fixed {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 10px;
}

.separate-date-fixed strong {
    color: var(--text-primary);
    font-size: .88rem;
}

.separate-date-fixed small {
    color: var(--text-secondary);
    font-size: .74rem;
}

.separate-date-input {
    display: grid;
    grid-template-columns: auto minmax(160px, 230px);
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.separate-date-input span {
    color: var(--text-secondary);
    font-size: .78rem;
    font-weight: 650;
}

.separate-date-input input {
    min-height: 40px;
}

.separate-service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.time-slot.disabled {
    cursor: not-allowed;
}

.time-slot.disabled span {
    opacity: .42;
    background: var(--surface-muted);
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 760px) {
    .booking-choice,
    .schedule-mode-options {
        grid-template-columns: 1fr;
    }

    .separate-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .separate-time-heading {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .separate-selected-time {
        grid-column: 2;
        justify-self: start;
    }

    .separate-date-input {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .separate-date-input input {
        width: 100%;
    }

    .separate-service-grid {
        grid-template-columns: 1fr;
    }
}
