/* Booking page only. Colours, fonts, buttons and cards come from styles.css. */

.book-intro { display: block; padding: 56px; }
.book-intro .lead { max-width: 36em; }

.book-section { padding-top: 28px; }
.book-wrap { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 20px; align-items: start; }

/* ---------- Suitability note ---------- */
.book-note { padding: 28px; border-radius: var(--r-md); background: var(--tint); position: sticky; top: 100px; }
.book-note h2 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 10px; }
.book-note p { font-size: 0.95rem; margin-bottom: 16px; }

/* ---------- Form steps ---------- */
.book-form { padding: 34px; }
.book-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.book-step + .book-step { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
/* float + full width keeps the legend inside the box instead of sitting on the divider line */
.book-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 18px; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.book-step legend + * { clear: both; }
.book-step .step-no { width: 34px; height: 34px; margin: 0; background: var(--tint-2); font-size: 0.95rem; }

/* Date and time choices: real radio buttons, drawn as rounded tiles */
.date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.time-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 52px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); font-weight: 700; font-size: 0.95rem; line-height: 1.2; text-align: center;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.choice small { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.date-grid .choice span { min-height: 68px; }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--lime); border-color: var(--lime); }
.choice input:checked + span small { color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.choice input:disabled + span { background: var(--tint); border-color: transparent; color: #a3a897; cursor: not-allowed; text-decoration: line-through; }
.choice input:disabled + span small { color: #a3a897; }

.book-hint { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.book-hint .link-arrow { margin-left: 4px; font-size: 0.9rem; }

/* ---------- Text fields ---------- */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.field .optional { font-weight: 500; color: var(--muted); }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--white);
  font: inherit; font-size: 16px; color: var(--ink);   /* 16px stops phones from zooming in */
  transition: border-color .15s ease;
}
.field input::placeholder { color: #a3a897; }
.field input:hover { border-color: #c9cdbd; }
.field input:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #c4472d; }

.field-error { margin-top: 6px; font-size: 0.86rem; font-weight: 600; color: #b03a22; }

/* ---------- Submit ---------- */
.book-submit { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.book-summary { margin-bottom: 16px; font-weight: 600; color: var(--ink); }
.book-submit .btn { width: 100%; }
.book-small { margin-top: 12px; font-size: 0.86rem; color: var(--muted); text-align: center; }

.book-result { margin-top: 20px; padding: 18px 20px; border-radius: var(--r-sm); background: #fbeae5; color: #8a2c19; font-weight: 600; }
.book-submit .btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.time-grid.is-loading { opacity: .5; pointer-events: none; }

/* ---------- Success ---------- */
.book-done { padding: 40px 34px; text-align: center; }
.book-done:focus { outline: none; }
.done-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 1.8rem; font-weight: 800; }
.book-done h2 { margin-bottom: 10px; }
.done-when { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.done-ref { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }
.book-done .cta-row { justify-content: center; }

/* ---------- Tablet ---------- */
@media (max-width: 1020px) {
  .book-intro { padding: 44px 36px; }
  .book-wrap { grid-template-columns: 1fr; }
  .book-note { position: static; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .book-intro { padding: 32px 22px; }
  .book-section { padding-top: 14px; }
  .book-note { padding: 22px; }
  .book-form { padding: 22px 18px; }
  .date-grid { grid-template-columns: repeat(4, 1fr); }
  .time-grid { grid-template-columns: repeat(3, 1fr); }
  .field-grid { grid-template-columns: 1fr; }
}

/* Turnstile anti-spam check */
.ts-box { min-height: 65px; margin: 4px 0 8px; }
.ts-box:empty { min-height: 0; margin: 0; }
