/* jbl booking + status pages — page-specific layout on top of main.css
   components. Loaded via jbl_page_start 'styles' on booking/status only. */

/* ---------- booking layout ---------- */
.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  margin-top: 1.5rem;
}
@media (max-width: 859px) {
  .book-grid { grid-template-columns: 1fr; }
}
.book-h2 { font-size: 1.2rem; margin-bottom: .8em; }

/* small uppercase kicker shared by summary/rules/reference labels */
.book-sum-h, .book-rules-h, .status-ref-label {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0 0 .5em;
}

/* ---------- live summary ---------- */
.book-sum { margin-top: 1.25rem; padding: 1.1rem 1.25rem; }
.book-sum p { margin: .25rem 0 0; }
.book-sum-dates { font-weight: 600; }
.book-sum-calc { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.book-sum-savings { color: var(--ok); font-weight: 600; font-size: .95rem; }
.book-sum-deposit, .book-sum-empty { color: var(--muted); font-size: .92rem; }

/* ---------- form column ---------- */
.book-submit { width: 100%; margin-top: .5rem; }
.book-note { color: var(--muted); font-size: .92rem; margin: .8rem 0 0; }
.field-terms { display: flex; align-items: flex-start; gap: .65rem; }
.field-terms input { flex-shrink: 0; margin-top: .1rem; }
.field-terms label { font-weight: 400; margin: 0; }

/* ---------- rules recap (quiet aside) ---------- */
.book-rules {
  margin-top: clamp(2rem, 5vw, 3rem);
  color: var(--muted);
  font-size: .92rem;
  max-width: 62ch;
}
.book-rules ul { margin: 0; padding-left: 1.15rem; }
.book-rules li { margin-bottom: .35em; }

/* ---------- status page ---------- */
.status-wrap { max-width: 720px; }
.status-banner { margin-bottom: 2rem; }
.status-banner h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: .6em; }
.status-ref {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  letter-spacing: .01em;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}
.status-steps { margin: 0 0 1.25rem; padding-left: 1.3rem; }
.status-steps li { margin-bottom: .35em; }
.status-link-label { margin-bottom: .35em; }
.status-url { margin: 0; }
.status-url code {
  display: block;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--line) 35%, var(--surface));
  font-size: .88rem;
  word-break: break-all;
  user-select: all;
}
.status-sec-h { font-size: 1.2rem; margin-top: 1.6em; }
.status-state { margin-block: 1rem 1.5rem; }
.status-state-name { font-weight: 700; margin: 0 0 .25rem; }
.status-state-desc { margin: 0; color: var(--muted); }
.status-dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .4rem 1.25rem;
  margin: 1rem 0 1.5rem;
}
.status-dl dt { color: var(--muted); }
.status-dl dd { margin: 0; font-weight: 600; }
.status-anon, .status-cancel-window { color: var(--muted); font-size: .92rem; }
.status-cancel { margin-top: 1.5rem; margin-bottom: .35em; }

/* first-name / surname side by side; stacks on narrow phones */
.field-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 460px) {
  .field-duo { grid-template-columns: 1fr; }
}
.field-hint {
  margin: .35rem 0 0;
  font-size: .82rem;
  /* --muted, not a stray --text-dim: that token is defined nowhere, so the #777
     fallback always applied and left this hint at 4.26:1 — under WCAG AA. */
  color: var(--muted);
}

/* ---------- rate ladder (summary card, before dates are chosen) ----------
   Plain rows, tabular figures, no badges: the booking page states the price,
   the pricing page sells it. */
.book-rates { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.book-rates-h {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .6rem;
}
.book-rates-list { margin: 0; }
.book-rate {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .34rem 0;
}
.book-rate + .book-rate { border-top: 1px solid var(--line); }
.book-rate dt { color: var(--muted); }
.book-rate dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.book-rate:last-child dt,
.book-rate:last-child dd { color: var(--ink); font-weight: 600; }
.book-rates-note { color: var(--muted); font-size: .88rem; margin: .8rem 0 .4rem; }
.book-rates-link { margin: 0; font-size: .9rem; }

/* The Enter-key submit target. Off-screen rather than display:none, because a button that
   is not rendered is not a submit candidate at all and Enter would fall through to the
   preview again. Never focusable: tabindex="-1" and aria-hidden keep it out of the tab
   order and the accessibility tree. */
.book-enter-submit {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
}
