/* Booking page: builds on the site stylesheet (/css/style.css). */

.book { padding: 48px 0 72px; }
.book-wrap { max-width: 860px; }
.book-intro { margin-bottom: 28px; }
.book-intro h1 { margin: 0 0 .35em; font-size: clamp(1.875rem, 4.4vw, 2.5rem); color: var(--navy); }
.book-intro p { color: var(--muted); }
.book-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--charcoal); font-size: .9375rem; font-weight: 600; }
.book-facts li::before { content: "\2713"; margin-right: 8px; color: var(--navy); }

.book-card { padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.book-off { margin-bottom: 20px; }
.book-step + .book-step { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.book-step h2 { margin: 0 0 14px; font-size: 1.25rem; color: var(--navy); }

.chips-set { margin: 0 0 18px; padding: 0; border: 0; }
.chips-set legend { margin-bottom: 8px; padding: 0; font-weight: 600; }
.chips-set.missing legend { color: #b3261e; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .day, .slot {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover, .day:hover, .slot:hover { border-color: var(--navy); }
.chip[aria-pressed="true"], .day[aria-pressed="true"], .slot[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }

.book-tz { margin: -6px 0 14px; color: var(--muted); font-size: .9375rem; }
/* Days and times look different on purpose: days are small calendar cards, times are rounded pills. */
.pick-label { margin: 18px 0 10px; font-size: .9375rem; font-weight: 700; color: var(--charcoal); }
.pick-label:first-of-type { margin-top: 4px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.day { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; min-width: 74px; padding: 8px 10px 10px; border-width: 2px; line-height: 1.2; }
.day-wd { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day-md { margin-top: 4px; font-size: 1.0625rem; font-weight: 700; white-space: nowrap; }
.day[aria-pressed="true"] .day-wd { color: var(--on-dark); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.slot { padding: 9px 4px; border-radius: 999px; background: var(--tint); border-color: transparent; font-weight: 600; white-space: nowrap; }
.slot:hover { background: var(--white); }
.book-msg { color: var(--muted); }

.picked { margin: -4px 0 18px; font-weight: 700; color: var(--charcoal); }
.fields { display: grid; gap: 14px; margin: 6px 0 18px; }
.fields label { display: grid; gap: 6px; font-weight: 600; }
.fields input {
  padding: 11px 12px;
  border: 1px solid #c4ccd6;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 400;
  color: var(--charcoal);
}
.fields input:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius); background: #fdecea; color: #8c1d18; }
.book-fine { margin: 14px 0 0; color: var(--muted); font-size: .875rem; }
/* Gray until the form is complete; "busy" while the booking is being sent */
#submit:disabled { background: #c4ccd6; border-color: #c4ccd6; color: var(--white); cursor: not-allowed; }
#submit.busy:disabled { background: var(--navy); border-color: var(--navy); opacity: .75; cursor: progress; }
.call-note { margin: -4px 0 14px; color: var(--muted); }
.missing-note { margin: 10px 0 0; color: var(--muted); font-size: .875rem; }
.picked-none { font-weight: 400; color: var(--muted); }

.book-done h2 { margin-top: 0; color: var(--navy); }
.book-done #done-when { font-size: 1.125rem; font-weight: 700; color: var(--charcoal); }

@media (min-width: 600px) {
  .book-card { padding: 36px 40px; }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #phone-row { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .book { padding: 72px 0 104px; }
  .slots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
