.booking-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 85% 4%, rgba(240, 68, 68, 0.1), transparent 30rem),
    radial-gradient(circle at 8% 42%, rgba(238, 174, 96, 0.055), transparent 26rem),
    var(--midnight);
}

.booking-header {
  border-bottom: 1px solid var(--line);
}

.booking-header-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-header-back:hover { color: var(--ivory); }
.booking-header-back svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.booking-main {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: clamp(112px, 12vw, 148px) 0 80px;
}

.booking-intro { max-width: 760px; margin-inline: auto; text-align: center; }
.booking-intro .eyebrow { margin: 0 0 18px; }
.booking-intro h1 {
  margin: 0;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.booking-intro > p:last-child {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.booking-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
  margin: 44px auto 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.booking-progress li {
  position: relative;
  padding: 17px 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.booking-progress li::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--signal);
  content: "";
  transition: width 220ms ease;
}

.booking-progress li[aria-current="step"] { color: var(--ivory); }
.booking-progress li[aria-current="step"]::before { width: 100%; }
.booking-progress span { margin-right: 7px; color: var(--signal-bright); }

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-top: 54px;
}

.booking-panel,
.booking-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.96), rgba(10, 10, 10, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.booking-panel { min-height: 600px; padding: clamp(24px, 5vw, 48px); }
.booking-step { scroll-margin-top: 92px; }
.booking-step[hidden] { display: none; }
.step-heading { margin-bottom: 30px; }
.step-kicker { margin: 0 0 10px; color: var(--signal-bright); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.step-heading h2 { margin: 0; color: var(--ivory); font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: -0.045em; line-height: 1; }
.step-heading > p:last-child { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
.step-heading .is-error { color: #ff9b9b; }

.duration-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.duration-picker-copy { display: grid; gap: 5px; min-width: 0; }
.duration-picker-label { color: var(--signal-bright); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.duration-picker-copy strong { color: var(--ivory); font-size: 1rem; }
.duration-picker-copy > span:last-child { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.duration-stepper { display: grid; grid-template-columns: 44px minmax(76px, auto) 44px; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.duration-stepper-button { display: grid; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ivory); font-size: 1.45rem; line-height: 1; cursor: pointer; }
.duration-stepper-button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.duration-stepper-button:disabled { color: rgba(244, 240, 231, 0.28); cursor: not-allowed; }
.duration-stepper-value { color: var(--ivory); font-size: 0.9rem; font-weight: 800; text-align: center; white-space: nowrap; }
.duration-picker-total { display: grid; gap: 3px; min-width: 66px; text-align: right; }
.duration-picker-total span { color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.duration-picker-total strong { color: var(--signal-bright); font-family: var(--font-display); font-size: 1.7rem; letter-spacing: -0.04em; }
.duration-picker-help { margin: 14px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.booking-step[data-booking-step="schedule"] { margin-top: 42px; padding-top: 36px; border-top: 1px solid var(--line); }

.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; }
.step-actions-end { justify-content: flex-end; }
.step-actions .button { min-width: min(100%, 190px); }

.calendar-shell {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.16);
}

.calendar-toolbar { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: 10px; margin-bottom: 16px; }
.calendar-toolbar h3 { margin: 0; color: var(--ivory); font-size: 1rem; text-align: center; }
.calendar-toolbar h3:focus,
.step-heading h2:focus { outline: none; }
.calendar-nav {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.calendar-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-nav svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.calendar-weekdays,
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-weekdays { margin-bottom: 7px; }
.calendar-weekdays span { color: var(--muted); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.05em; text-align: center; text-transform: uppercase; }
.calendar-day,
.calendar-day-empty { aspect-ratio: 1; min-width: 0; }
.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.calendar-day:hover:not(:disabled) { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.035); }
.calendar-day.is-today::after { position: absolute; bottom: 4px; width: 3px; height: 3px; border-radius: 50%; background: var(--signal); content: ""; }
.calendar-day.is-selected { border-color: var(--signal); background: var(--signal); color: #fff; font-weight: 800; }
.calendar-day:disabled { color: rgba(244, 240, 231, 0.22); cursor: not-allowed; }
.selected-date { min-height: 24px; margin: 18px 0; color: var(--ivory); font-weight: 700; }

.time-panel { padding-top: 4px; }
.time-panel-heading { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.time-panel-heading h3 { margin: 0; color: var(--ivory); font-size: 1rem; }
.timezone-label { color: var(--muted); font-size: 0.72rem; }
.slot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.slot-button,
.slot-skeleton { min-height: 46px; border-radius: 999px; }
.slot-button { border: 1px solid var(--line); background: var(--console); color: var(--ivory); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.slot-button:hover { border-color: rgba(244, 240, 231, 0.35); }
.slot-button.is-selected { border-color: var(--signal); background: var(--signal); color: white; }
.slot-skeleton { background: linear-gradient(90deg, var(--console) 10%, #242424 45%, var(--console) 80%); background-size: 220% 100%; animation: slot-shimmer 1.15s linear infinite; }
.availability-status { margin: 14px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

.booking-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-group { display: grid; gap: 8px; }
.field-group label { color: var(--ivory); font-size: 0.78rem; font-weight: 750; }
.field-group label span { color: var(--muted); font-weight: 500; }
.field-group input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ivory);
  font: inherit;
}
.field-group input:focus { border-color: var(--signal); outline: 3px solid rgba(240, 68, 68, 0.16); }
.field-group input:user-invalid { border-color: #d85e5e; }
.policy-check { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.policy-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--signal); flex: 0 0 auto; }
.policy-check a { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; }
.message { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 0.83rem; line-height: 1.5; }
.message-error { border: 1px solid rgba(240, 68, 68, 0.36); background: rgba(240, 68, 68, 0.1); color: #ffaaaa; }

.booking-summary { position: sticky; top: 92px; padding: 26px; }
.summary-status { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.67rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.summary-status > span { width: 7px; height: 7px; border-radius: 50%; background: #72d38c; box-shadow: 0 0 14px rgba(114, 211, 140, 0.65); }
.booking-summary h2 { margin: 18px 0 22px; color: var(--ivory); font-family: var(--font-display); font-size: 2rem; letter-spacing: -0.04em; }
.booking-summary dl { margin: 0; }
.booking-summary dl > div { display: grid; grid-template-columns: 78px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.booking-summary dt { color: var(--muted); font-size: 0.75rem; }
.booking-summary dd { margin: 0; color: var(--ivory); font-size: 0.85rem; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.booking-summary .summary-total { margin-top: 8px; padding-top: 19px; }
.summary-total dt { color: var(--ivory); font-weight: 700; }
.summary-total dd { color: var(--signal-bright); font-family: var(--font-display); font-size: 1.6rem; }
.summary-note { display: flex; gap: 12px; margin-top: 22px; padding: 15px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); }
.summary-note svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: var(--signal-bright); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.summary-note strong,
.summary-note span { display: block; }
.summary-note strong { color: var(--ivory); font-size: 0.77rem; }
.summary-note span { margin-top: 3px; color: var(--muted); font-size: 0.7rem; line-height: 1.4; }
.booking-summary address { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); font-style: normal; }
.booking-summary address span { display: block; margin-bottom: 7px; color: var(--ivory); font-size: 0.8rem; font-weight: 800; }
.booking-summary address a { color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.summary-help { display: inline-block; margin-top: 18px; color: var(--ivory); font-size: 0.78rem; text-decoration: underline; text-underline-offset: 3px; }

@keyframes slot-shimmer { to { background-position: -220% 0; } }

@media (max-width: 860px) {
  .booking-main { width: min(calc(100% - 32px), var(--content)); }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .booking-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
}

@media (max-width: 560px) {
  .booking-main { width: min(calc(100% - 24px), var(--content)); padding: 96px 0 48px; }
  .booking-header-back span { display: none; }
  .booking-intro { max-width: 25rem; }
  .booking-intro .eyebrow { margin-bottom: 12px; }
  .booking-intro h1 { font-size: clamp(2.45rem, 12vw, 3.6rem); line-height: .96; }
  .booking-intro > p:last-child { margin-top: 18px; font-size: 1rem; line-height: 1.6; }
  .booking-progress { margin-top: 32px; }
  .booking-progress li { padding-right: 4px; font-size: 0.64rem; letter-spacing: 0.035em; text-align: center; }
  .booking-progress span { display: block; margin: 0 0 5px; }
  .booking-layout { gap: 16px; margin-top: 30px; }
  .booking-panel,
  .booking-summary { border-radius: 18px; }
  .booking-panel { min-height: 0; padding: 26px 16px; }
  .booking-summary { padding: 22px 18px; }
  .booking-summary dl { display: block; }
  .step-heading { margin-bottom: 24px; text-align: center; }
  .step-heading h2 { font-size: clamp(2rem, 10vw, 2.7rem); }
  .duration-picker { grid-template-columns: minmax(0, 1fr) auto; gap: 18px 12px; padding: 18px 0; }
  .duration-picker-total { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
  .duration-picker-total strong { font-size: 1.55rem; }
  .duration-picker-help { text-align: center; }
  .booking-step[data-booking-step="schedule"] { margin-top: 34px; padding-top: 28px; }
  .calendar-shell { margin-inline: -6px; padding: 14px 8px 16px; }
  .calendar-toolbar { grid-template-columns: 48px 1fr 48px; margin-bottom: 18px; }
  .calendar-nav { width: 48px; height: 48px; }
  .calendar-weekdays,
  .calendar-grid { gap: 2px; }
  .calendar-weekdays span { font-size: 0.58rem; letter-spacing: 0; }
  .calendar-day,
  .calendar-day-empty { height: clamp(38px, 12vw, 44px); aspect-ratio: auto; }
  .calendar-day { border-radius: 12px; font-size: 0.82rem; }
  .calendar-day.is-today::after { bottom: 3px; }
  .selected-date { margin: 18px 0 22px; text-align: center; }
  .time-panel-heading { flex-direction: column; align-items: center; gap: 5px; text-align: center; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-button, .slot-skeleton { min-height: 52px; }
  .availability-status { text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .field-group input { min-height: 54px; font-size: 16px; }
  .policy-check { font-size: .9rem; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions-end { flex-direction: column; }
  .step-actions .button { width: 100%; min-height: 56px; }
  .booking-summary { text-align: center; }
  .summary-status { justify-content: center; }
  .booking-summary dl > div { grid-template-columns: 1fr; gap: 5px; }
  .booking-summary dd { text-align: center; }
  .summary-note { justify-content: center; text-align: left; }
}

@media (max-width: 350px) {
  .booking-main { width: min(calc(100% - 20px), var(--content)); }
  .booking-panel { padding-inline: 10px; }
  .duration-stepper { grid-template-columns: 40px minmax(68px, auto) 40px; }
  .duration-stepper-button { width: 40px; height: 40px; }
  .calendar-shell { margin-inline: -4px; padding-inline: 3px; }
  .calendar-day { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .slot-skeleton { animation: none; }
  .booking-progress li::before,
  .duration-stepper-button { transition: none; }
}
