:root {
    --booking-ink: var(--navy);
    --booking-muted: var(--muted);
    --booking-teal: #347ed7;
    --booking-teal-dark: var(--navy-soft);
    --booking-mint: var(--ice);
    --booking-cream: #f9fbfd;
    --booking-line: var(--line);
    --booking-coral: var(--lilac);
    --booking-gold: #8b6ab4;
}

* { box-sizing: border-box; }

.app-main--booking { padding: 0 0 5rem; }
.client-booking {
    min-height: calc(100vh - 94px);
    background:
        radial-gradient(circle at 8% 2%, rgba(155, 232, 239, .42), transparent 27rem),
        radial-gradient(circle at 92% 18%, rgba(200, 165, 243, .2), transparent 25rem),
        linear-gradient(180deg, #f5fdff 0, #f9fbff 36rem, #f7f8fc 100%);
}

.booking-hero {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
    padding: 66px 0 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: end;
}

.booking-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 17px;
    color: var(--booking-teal-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.booking-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.booking-hero h1 { margin: 0; max-width: 710px; color: var(--navy); font-size: clamp(2.65rem, 5vw, 4.85rem); font-weight: 800; line-height: .94; letter-spacing: -.055em; }
.booking-hero h1 em { color: var(--booking-teal); font-weight: 400; }
.booking-hero > div > p { max-width: 620px; margin: 24px 0 0; color: var(--booking-muted); font-size: 1.08rem; line-height: 1.75; }

.booking-support-card {
    padding: 21px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 12px 36px rgba(24, 44, 96, .08);
}

.booking-support-card > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--booking-teal); font-size: 1.1rem; font-weight: 800; }
.booking-support-card strong { display: block; margin: 1px 0 4px; font-size: .89rem; }
.booking-support-card p { margin: 0; color: var(--booking-muted); font-size: .79rem; line-height: 1.55; }

.booking-workspace {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto 74px;
    display: grid;
    grid-template-columns: 186px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.booking-steps { position: sticky; top: 24px; padding: 26px 0 0; }
.booking-steps button { width: 100%; padding: 0; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: 20px 18px; column-gap: 12px; text-align: left; color: #7b8497; border: 0; background: transparent; }
.booking-steps button span { grid-row: 1 / 3; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #f8fafc; font-size: .78rem; font-weight: 800; }
.booking-steps button b { font-size: .84rem; line-height: 1.2; }
.booking-steps button small { font-size: .7rem; }
.booking-steps button.is-active, .booking-steps button.is-complete { color: var(--booking-ink); }
.booking-steps button.is-active span { color: white; border-color: var(--booking-teal); background: linear-gradient(135deg, var(--navy-soft), var(--booking-teal)); box-shadow: 0 0 0 5px rgba(74, 159, 236, .12); }
.booking-steps button.is-complete span { color: transparent; border-color: #a8caea; background: var(--booking-mint); }
.booking-steps button.is-complete span::after { content: "✓"; color: var(--booking-teal); position: absolute; }
.booking-steps > i { display: block; width: 1px; height: 30px; margin: 6px 0 6px 18px; background: var(--line); }

.booking-panel { position: relative; min-height: 560px; overflow: hidden; border: 1px solid rgba(16, 27, 80, .1); border-radius: var(--radius-md); background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.booking-panel__loading { min-height: 500px; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--booking-muted); }
.booking-panel__loading span { width: 34px; height: 34px; border: 3px solid var(--booking-mint); border-top-color: var(--booking-teal); border-radius: 50%; animation: booking-spin .8s linear infinite; }
@keyframes booking-spin { to { transform: rotate(360deg); } }

.booking-stage { padding: 48px 54px 38px; }
.booking-stage > header { max-width: 680px; margin-bottom: 32px; }
.booking-stage > header > span { color: var(--booking-teal); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.booking-stage h2 { margin: 9px 0 8px; color: var(--booking-ink); font-size: clamp(1.9rem, 3vw, 2.55rem); font-weight: 750; letter-spacing: -.04em; }
.booking-stage header p { margin: 0; color: var(--booking-muted); font-size: .94rem; line-height: 1.65; }

.therapy-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.therapy-choice, .format-choice, .therapist-choice, .any-therapist-card { font: inherit; color: inherit; }
.therapy-choice { min-height: 124px; padding: 20px; display: grid; grid-template-columns: 48px 1fr 24px; gap: 15px; align-items: center; text-align: left; border: 1px solid var(--booking-line); border-radius: 15px; background: white; transition: .18s ease; }
.therapy-choice:hover, .therapy-choice:focus-visible { border-color: #70aee6; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(74, 159, 236, .12); }
.therapy-choice__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--booking-teal); background: var(--booking-mint); font-size: 1.3rem; font-weight: 800; }
.therapy-choice h3 { margin: 0 0 5px; font-size: .96rem; }
.therapy-choice p { margin: 0; color: var(--booking-muted); font-size: .75rem; line-height: 1.45; }
.therapy-choice > i { color: #a3b2ad; font-style: normal; font-size: 1.15rem; }

.format-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.format-choice { min-height: 190px; padding: 25px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid var(--booking-line); border-radius: 17px; background: white; transition: .18s ease; }
.format-choice:hover, .format-choice:focus-visible { border-color: #70aee6; box-shadow: 0 13px 28px rgba(74, 159, 236, .11); transform: translateY(-2px); }
.format-choice--wide { grid-column: 1 / -1; min-height: auto; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 17px; background: linear-gradient(105deg, #eef8fb, #f7f4ff); border-color: #b9d7ef; }
.format-choice__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--booking-teal); background: var(--booking-mint); font-size: 1.45rem; }
.format-choice h3 { margin: 18px 0 7px; font-size: 1.35rem; font-weight: 750; letter-spacing: -.025em; }
.format-choice--wide h3 { margin: 0 0 5px; }
.format-choice p { margin: 0; color: var(--booking-muted); font-size: .8rem; line-height: 1.55; }
.format-choice > i { margin-top: auto; padding-top: 18px; color: var(--booking-teal); font-size: .7rem; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.format-choice--wide > i { margin: 0; padding: 8px 12px; border-radius: 999px; color: white; background: var(--booking-teal); }

.any-therapist-card { width: 100%; padding: 22px; display: grid; grid-template-columns: 118px 1fr auto; gap: 20px; align-items: center; text-align: left; border: 1px solid #9fc2e8; border-radius: 17px; background: linear-gradient(108deg, #eef8fb, #f7f4ff); transition: .18s ease; }
.any-therapist-card:hover { transform: translateY(-2px); box-shadow: 0 15px 32px rgba(74, 159, 236, .12); }
.any-therapist-card__faces { display: flex; padding-left: 8px; }
.any-therapist-card__faces img, .any-therapist-card__faces i { width: 46px; height: 46px; margin-left: -8px; object-fit: cover; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; color: white; background: #6c8fc8; font-style: normal; font-size: .72rem; }
.any-therapist-card div > span { color: var(--booking-teal); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.any-therapist-card h3 { margin: 4px 0 4px; font-size: 1.3rem; font-weight: 750; letter-spacing: -.025em; }
.any-therapist-card p { margin: 0; color: var(--booking-muted); font-size: .76rem; }
.any-therapist-card > b { color: var(--booking-teal-dark); font-size: .72rem; }
.any-therapist-card > b i { margin-left: 5px; font-style: normal; }
.service-divider { height: 44px; display: flex; align-items: center; color: #7b8497; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.service-divider::before, .service-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.service-divider span { padding: 0 13px; }
.therapist-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.therapist-choice { padding: 15px; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; text-align: left; border: 1px solid var(--booking-line); border-radius: 14px; background: white; }
.therapist-choice:hover { border-color: #70aee6; box-shadow: 0 10px 24px rgba(74, 159, 236, .09); }
.therapist-choice img, .therapist-choice__avatar { width: 48px; height: 48px; object-fit: cover; display: grid; place-items: center; border-radius: 50%; color: white; background: #6c8fc8; font-size: .7rem; font-weight: 800; }
.therapist-choice h3 { margin: 0 0 3px; font-size: .84rem; }
.therapist-choice p { margin: 0; color: var(--booking-muted); font-size: .69rem; }
.therapist-choice__price { display: block; margin-top: 5px; color: var(--navy-soft); font-size: .68rem; font-weight: 800; }
.therapist-choice b { color: var(--booking-teal); font-size: .72rem; }

.calendar-heading { max-width: none !important; display: flex; justify-content: space-between; gap: 24px; }
.calendar-heading > div:first-child { max-width: 650px; }
.calendar-legend { display: flex; gap: 14px; align-self: end; padding-bottom: 5px; white-space: nowrap; color: var(--muted); font-size: .69rem; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--booking-teal); }
.calendar-legend span:last-child i { background: #f0e9dc; border: 1px solid #c6b598; }
.booking-summary-strip { margin: -10px 0 24px; padding: 12px 15px; border-radius: 10px; color: #526187; background: #eef8fb; font-size: .75rem; }
.booking-summary-strip strong { color: var(--booking-ink); }
.client-calendar-toolbar { margin-bottom: 13px; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; }
.client-calendar-toolbar button { width: 34px; height: 34px; border: 1px solid var(--booking-line); border-radius: 50%; color: var(--booking-ink); background: white; }
.client-calendar-toolbar div { text-align: center; }
.client-calendar-toolbar strong { display: block; font-size: 1.04rem; font-weight: 750; }
.client-calendar-toolbar span { color: var(--booking-muted); font-size: .63rem; }
.client-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--booking-line); border-radius: 16px; overflow: hidden; }
.calendar-day { min-width: 0; min-height: 270px; padding: 12px 8px; border-right: 1px solid var(--line); background: #fcfdff; }
.calendar-day:last-child { border-right: 0; }
.calendar-day.is-today { background: #eef8fb; }
.calendar-day__head { margin-bottom: 12px; text-align: center; }
.calendar-day__head span { display: block; color: var(--muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.calendar-day__head strong { display: grid; place-items: center; width: 29px; height: 29px; margin: 3px auto 0; border-radius: 50%; font-size: 1rem; font-weight: 750; }
.calendar-day.is-today .calendar-day__head strong { color: white; background: var(--booking-teal); }
.calendar-slot { width: 100%; margin-bottom: 6px; padding: 8px 3px; border: 1px solid #b9d7ef; border-radius: 8px; color: var(--booking-teal-dark); background: #eef8fb; font-size: .68rem; font-weight: 800; transition: .15s ease; }
.calendar-slot:hover { color: white; background: var(--booking-teal); transform: translateY(-1px); }
.calendar-slot small { display: block; margin-top: 2px; font-size: .51rem; font-weight: 600; opacity: .72; }
.calendar-slot.is-unavailable { color: #7b7266; border-style: dashed; border-color: #d3c5ae; background: #faf7f1; }
.calendar-slot.is-unavailable:hover { color: #5d5143; background: #f0e7d8; }
.calendar-day__empty { padding: 22px 4px; color: #9aa6a2; text-align: center; font-size: .66rem; line-height: 1.4; }
.show-waiting-times { margin: 17px auto 0; padding: 9px 14px; display: flex; align-items: center; gap: 7px; border: 0; color: #6f6456; background: transparent; font-size: .74rem; font-weight: 700; }
.show-waiting-times span { font-size: 1rem; }

.booking-panel__footer { min-height: 72px; padding: 18px 54px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); background: #fbfcff; }
.booking-panel__footer p { margin: 0; color: #82908c; font-size: .7rem; }
.booking-panel__footer p span { color: var(--booking-teal); }
.booking-back { padding: 8px 12px 8px 0; border: 0; color: var(--booking-ink); background: transparent; font-size: .78rem; font-weight: 800; }

.booking-modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 20, 58, .48); backdrop-filter: blur(4px); }
.booking-modal { position: fixed; z-index: 1001; top: 50%; left: 50%; width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 35px; transform: translate(-50%, -46%); visibility: hidden; opacity: 0; border-radius: 23px; background: white; box-shadow: 0 30px 100px rgba(16, 27, 80, .3); transition: .18s ease; }
.booking-modal.is-open { visibility: visible; opacity: 1; transform: translate(-50%, -50%); }
.client-account-modal { position: fixed; z-index: 1001; top: 50%; left: 50%; width: min(660px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 34px; transform: translate(-50%, -46%); visibility: hidden; opacity: 0; border-radius: 23px; background: white; box-shadow: 0 30px 100px rgba(16, 27, 80, .3); transition: .18s ease; }
.client-account-modal.is-open { visibility: visible; opacity: 1; transform: translate(-50%, -50%); }
.client-account-modal h2 { margin: 0; color: var(--booking-ink); font-size: 2rem; font-weight: 750; letter-spacing: -.04em; }
.client-account-modal__intro { margin: 10px 0 21px; color: var(--booking-muted); font-size: .78rem; line-height: 1.55; }
.client-account-tabs { margin-bottom: 18px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 12px; background: #eef3f8; }
.client-account-tabs button { padding: 10px; border: 0; border-radius: 9px; color: #68748a; background: transparent; font-size: .78rem; font-weight: 800; }
.client-account-tabs button.is-active { color: var(--booking-ink); background: white; box-shadow: 0 4px 14px rgba(16, 27, 80, .09); }
.client-account-form { display: grid; grid-template-columns: 1fr; gap: 13px; }
.client-account-form--register { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.client-account-form label { display: block; }
.client-account-form label > span { display: block; margin-bottom: 6px; color: var(--booking-ink); font-size: .7rem; font-weight: 800; }
.client-account-form input, .client-account-form select { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid var(--booking-line); border-radius: 9px; color: var(--booking-ink); background: white; font: inherit; font-size: .79rem; }
.client-account-form input:focus, .client-account-form select:focus { outline: 3px solid rgba(52, 126, 215, .14); border-color: var(--booking-teal); }
.client-account-form label small { display: block; margin-top: 6px; color: var(--booking-muted); font-size: .65rem; line-height: 1.45; }
.client-account-form__wide, .client-account-form__privacy, .client-account-form__submit { grid-column: 1 / -1; }
.client-account-form__privacy { margin: 0; padding: 10px 12px; border-radius: 9px; color: #526187; background: #eef8fb; font-size: .66rem; line-height: 1.5; }
.client-account-feedback { margin: 13px 0 0; padding: 10px 12px; border-radius: 9px; color: #8a2f35; background: #fff0f1; font-size: .72rem; line-height: 1.5; }
.booking-modal__close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #6c7d78; background: #f1f5f3; font-size: 1.2rem; }
.booking-modal__mark { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--booking-teal); }
.booking-modal__eyebrow { margin: 20px 0 5px; color: var(--booking-teal); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.booking-modal h2 { margin: 0; font-size: 2rem; font-weight: 750; letter-spacing: -.04em; }
.booking-modal__details { margin: 22px 0 16px; padding: 16px; border-radius: 13px; background: #f2f7fc; }
.booking-modal__details div { padding: 6px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); font-size: .78rem; }
.booking-modal__details div:last-child { border-bottom: 0; }
.booking-modal__details span { color: var(--booking-muted); }
.booking-modal__details strong { text-align: right; }
.booking-modal__details .booking-modal__price { margin: 7px -4px -4px; padding: 12px 4px 4px; border-top: 1px solid #bfd5ed; border-bottom: 0; }
.booking-modal__price span, .booking-modal__price strong { color: var(--navy); font-size: .9rem; font-weight: 800; }
.booking-language-field { display: block; margin-bottom: 15px; }
.booking-language-field > span { display: block; margin-bottom: 6px; color: var(--booking-ink); font-size: .73rem; font-weight: 800; }
.booking-language-field select { width: 100%; padding: 10px 12px; border: 1px solid var(--booking-line); border-radius: 9px; color: var(--booking-ink); background: white; }
.booking-modal__notice { color: var(--booking-muted); font-size: .7rem; line-height: 1.5; }
.booking-modal__confirm { width: 100%; padding: 13px; border: 0; border-radius: 10px; color: white; background: var(--booking-teal); font-size: .79rem; font-weight: 800; }
.booking-modal__confirm:hover { background: var(--booking-teal-dark); }
.booking-modal__confirm.is-waiting { background: #9b7441; }
.booking-modal__confirm:disabled { cursor: wait; opacity: .65; }
.booking-modal__cancel { width: 100%; margin-top: 8px; padding: 9px; border: 0; color: var(--booking-muted); background: transparent; font-size: .74rem; }
.booking-toast { position: fixed; z-index: 1100; right: 24px; bottom: 24px; max-width: 380px; padding: 14px 17px; border-radius: 12px; color: white; background: var(--booking-ink); box-shadow: 0 15px 45px rgba(0,0,0,.2); font-size: .78rem; line-height: 1.5; }

@media (max-width: 900px) {
    .booking-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 45px; }
    .booking-support-card { max-width: 500px; }
    .booking-workspace { grid-template-columns: 1fr; }
    .booking-steps { position: static; display: flex; padding: 0 10px; }
    .booking-steps button { display: flex; justify-content: center; }
    .booking-steps button span { flex: 0 0 36px; }
    .booking-steps button b, .booking-steps button small { display: none; }
    .booking-steps > i { width: 100%; height: 1px; margin: 18px 4px; }
    .client-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .calendar-day { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
    .booking-hero, .booking-workspace { width: min(100% - 28px, 1160px); }
    .booking-hero { padding: 34px 0 30px; }
    .booking-hero h1 { font-size: 2.75rem; }
    .booking-hero > div > p { font-size: .94rem; }
    .booking-panel { border-radius: 18px; }
    .booking-stage { padding: 34px 20px 28px; }
    .therapy-choice-grid, .format-choice-grid, .therapist-choice-grid { grid-template-columns: 1fr; }
    .format-choice--wide { grid-column: auto; grid-template-columns: 48px 1fr; }
    .format-choice--wide > i { grid-column: 2; width: max-content; }
    .any-therapist-card { grid-template-columns: 82px 1fr; }
    .any-therapist-card > b { grid-column: 2; }
    .any-therapist-card__faces img, .any-therapist-card__faces i { width: 37px; height: 37px; }
    .calendar-heading { display: block; }
    .calendar-legend { margin-top: 12px; }
    .client-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .booking-panel__footer { padding: 16px 20px; }
    .booking-panel__footer p { display: none; }
    .client-account-modal { padding: 28px 20px; }
    .client-account-form--register { grid-template-columns: 1fr; }
    .client-account-form__wide, .client-account-form__privacy, .client-account-form__submit { grid-column: auto; }
}
