.booking-shell { width: var(--page-width); margin-inline: auto; }
.booking-shell [hidden] { display: none; }
.booking-header { margin-bottom: clamp(1.35rem, 4vw, 2.6rem); }
.booking-header .subpage-title { font-size: clamp(2rem, 5.3vw, 4.65rem); }
.booking-header > p { max-width: 62ch; margin-top: .85rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.55; }
.booking-facts { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; }
.booking-facts li { color: var(--gold); font-size: .93rem; font-weight: 700; }
.booking-facts li + li::before { content: "·"; margin-right: 1rem; color: var(--muted); }

.booking-layout { max-width: 64rem; }
.booking-card {
  display: grid;
  min-width: 0;
  gap: .9rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--edge);
  border-radius: 1rem;
  background: var(--panel);
  color: var(--paper);
}

.booking-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3.5vw, 2.5rem);
  border-color: #fff50049;
  background: radial-gradient(ellipse at 0 0, #29271a, var(--panel) 68%);
}
.booking-month-panel, .booking-time-panel { display: grid; align-content: start; min-width: 0; gap: .8rem; }
.booking-time-panel { border-left: 1px solid var(--edge); padding-left: clamp(1rem, 3.5vw, 2.5rem); }
.booking-card h2 { color: var(--paper); font: 700 clamp(1.2rem, 2.5vw, 1.65rem)/1.2 var(--display); font-size: clamp(1.2rem, 2.5vw, 1.65rem) !important; text-shadow: none; }
.booking-card label { color: var(--paper); font-size: .94rem; font-weight: 700; }
.booking-month-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; text-align: center; font-weight: 700; }
.booking-weekdays, .booking-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(.2rem, .7vw, .45rem); text-align: center; }
.booking-weekdays { color: var(--muted); font-size: .82rem; font-weight: 700; }
.booking-days button {
  min-width: 0;
  min-height: 2.6rem;
  border: 1px solid #fff50038;
  border-radius: .55rem;
  background: #fff50014;
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color .18s, border-color .18s, color .18s;
}
.booking-days button:disabled { border-color: transparent; background: transparent; color: var(--muted); opacity: .55; }
.booking-days button[aria-current="date"] { text-decoration: underline; text-underline-offset: .2em; }
.booking-days button:not(:disabled):hover { border-color: var(--gold); background: #fff50022; }
.booking-days button[aria-pressed="true"], .booking-days button[aria-pressed="true"]:hover,
.booking-slots button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #151408; }
.booking-legend { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .88rem; }
.booking-legend::before { content: ""; width: .7rem; height: .7rem; border-radius: .2rem; background: var(--gold); }
.booking-fields :is(input, select) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  padding: .56rem .7rem;
  border: 1px solid #ffffff42;
  border-radius: .55rem;
  background: #171715;
  color: var(--paper);
  color-scheme: dark;
}

.booking-month-nav button, .booking-slots button, .booking-retry {
  display: grid;
  place-items: center;
  min-width: 2.9rem;
  min-height: 2.9rem;
  padding: .46rem .45rem;
  border: 1px solid #ffffff42;
  border-radius: .55rem;
  background: #26251d;
  color: var(--paper);
  font-weight: 700;
}

.booking-month-nav button:disabled, .booking-card [data-booking-continue]:disabled { opacity: .5; cursor: default; }
:is(.booking-month-nav button:not(:disabled), .booking-slots button, .booking-retry):hover { border-color: var(--gold); }
.booking-card :is(button, input, select, a):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.booking-status { color: var(--muted); line-height: 1.4; }
.booking-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.booking-slots:empty { display: none; }
.booking-slots button { min-width: 0; color: var(--gold); font-variant-numeric: tabular-nums; }
.booking-time-panel .subpage-button { justify-self: start; margin-top: .2rem; }
.booking-retry { justify-self: start; font-size: .88rem; padding-inline: .75rem; }
.booking-form { max-width: 46rem; }
.booking-appointment { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding: .8rem; border: 1px solid var(--edge); border-radius: .65rem; background: #171715; }
.booking-selection { color: var(--gold); font-weight: 700; }
.booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.booking-fields label { line-height: 1.3; }
.booking-fields label span { color: var(--muted); font-weight: 400; }
.booking-fields :is(input, select) { margin-top: .35rem; }
.booking-field-wide { grid-column: 1 / -1; }
.booking-check { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .6rem; line-height: 1.45; }
.booking-check input { width: 1.15rem; height: 1.15rem; margin-top: .12rem; accent-color: var(--gold); }
.booking-check a, .booking-help a { color: var(--gold); text-decoration: underline; text-underline-offset: .18em; }
.booking-card button[type="submit"] { justify-self: start; }
.booking-help { color: var(--muted); font-size: .94rem; line-height: 1.4; }
.booking-shell > .booking-help { margin-top: 1.1rem; }
.booking-error { color: #ffc0b2; }
.booking-confirmation { max-width: 40rem; }
.booking-confirmation__time { color: var(--gold); font-weight: 700; font-size: 1.12rem; }
.booking-confirmation a { justify-self: start; }

@media (max-width: 760px) {
  .booking-picker { grid-template-columns: minmax(0, 1fr); }
  .booking-time-panel { border-left: 0; border-top: 1px solid var(--edge); padding: 1rem 0 0; }
}
@media (max-width: 500px) {
  .booking-facts li + li::before { content: none; }
  .booking-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking-fields { grid-template-columns: minmax(0, 1fr); }
  .booking-time-panel .subpage-button { justify-self: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .booking-days button { transition: none; } }
