/* Booking page: a date and time request on the left, details on the right, in one card. */
.home { min-height: 100vh; display: flex; flex-direction: column; }
.home > footer { margin-top: auto; }
.book { padding-block: clamp(30px, 5vw, 56px) clamp(48px, 7vw, 88px); }
.book-head { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.5vw, 24px); }
.book-photo { flex: none; width: clamp(72px, 10vw, 104px); height: auto; aspect-ratio: 1; object-fit: cover; padding: 4px; background: #fdfcfa; border: 1px solid #a7b4d1; border-radius: 14px; }
.book h1 { margin: 0; text-wrap: balance; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.045em; }

.book-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 980px; margin: clamp(24px, 4vw, 40px) auto 0;
  background: #fdfcfa; border: 1px solid #adb9d3; border-radius: 14px; box-shadow: 0 1px 2px #17182112, 0 24px 48px -28px #2a3a7a66; overflow: hidden;
}
.book-pane { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 3vw, 30px); }
.book-pane + .book-pane { border-left: 1px solid #d3d9ea; background: #f6f7fc; }
.book-pane h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; letter-spacing: -.02em; }
.book-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #293e8c; color: #fff; font-size: 13px; font-style: normal; font-weight: 700; }

/* Calendar */
.book-month { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.book-month h3 { margin: 0; font-size: 17px; font-weight: 650; }
.book-month-nav { display: flex; gap: 6px; }
.book-month-nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #adb9d3; border-radius: 50%; background: #fff; color: #28397d; cursor: pointer; }
.book-month-nav button:disabled { opacity: .35; cursor: default; }
.book-month-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.book-weekdays, .book-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.book-weekdays { font-size: 12px; font-weight: 650; color: var(--muted); }
.book-days button {
  aspect-ratio: 1; min-height: 40px; width: 100%; border: 1px solid transparent; border-radius: 50%; background: #e7ebf8;
  font: inherit; font-size: 15px; font-weight: 650; color: #28397d; cursor: pointer;
}
.book-days button:hover:not(:disabled) { border-color: #293e8c; }
.book-days button:disabled { background: none; color: #a3a9bb; font-weight: 500; cursor: default; }
.book-days button[aria-current="date"] { box-shadow: inset 0 0 0 1.5px #8fa0d6; }
.book-days button[aria-pressed="true"] { background: #293e8c; color: #fff; }

/* Times */
.book-zone { margin: 4px 0 0; font-size: 13px; font-weight: 650; color: var(--muted); }
.book-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.book-times:empty::before { content: "Pick a date first."; grid-column: 1 / -1; font-size: 15px; color: var(--muted); }
.book-times button {
  min-height: 44px; padding: 0 4px; border: 1px solid #adb9d3; border-radius: 8px; background: #fff;
  font: inherit; font-size: 14px; font-weight: 650; color: #28397d; white-space: nowrap; cursor: pointer;
}
.book-times button:hover { border-color: #293e8c; }
.book-times button[aria-pressed="true"] { background: #293e8c; border-color: #293e8c; color: #fff; }

/* Details */
.book-trap { position: absolute; left: -9999px; }
.book-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.book-pane label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
.book-pane input, .book-pane textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #adb9d3; border-radius: 8px; background: #fff;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
}
.book-pane textarea { resize: vertical; }
.book-pane input:focus-visible, .book-pane textarea:focus-visible { outline: 2px solid #253f9d; outline-offset: 2px; }
.book-summary { margin: auto 0 0; padding: 10px 12px; border: 1px solid #c9d1e6; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 650; color: var(--muted); }
.book-summary.set { border-color: #8fd9a8; background: #dcf5e3; color: #0f6b34; }
.book-submit { width: 100%; min-height: 50px; color: #fff; font-family: inherit; font-size: 16px; cursor: pointer; }
.book-submit:hover { background: #1d2f75; }
.book-submit:disabled { opacity: .6; cursor: default; }
.book-status { margin: 0; min-height: 1.5em; font-size: 14px; color: var(--muted); }
.book-status.error { color: #a3261b; }
.book-status.ok { color: #0f6b34; font-weight: 650; }

@media (max-width: 760px) {
  .book-card { grid-template-columns: minmax(0, 1fr); }
  .book-pane + .book-pane { border-left: 0; border-top: 1px solid #d3d9ea; }
  .book-head { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .book-row { grid-template-columns: minmax(0, 1fr); }
  .book-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Quick answers under the qualifying question */
.quick-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-answers button {
  min-height: 44px; padding: 6px 8px; border: 1px solid #adb9d3; border-radius: 8px; background: #fff;
  font: inherit; font-size: 14px; font-weight: 650; line-height: 1.2; color: #28397d; text-align: center; cursor: pointer;
}
.quick-answers button:hover { border-color: #293e8c; }
.quick-answers button[aria-pressed="true"] { background: #293e8c; border-color: #293e8c; color: #fff; }

.book-card[hidden], .book-head[hidden], .thanks-card[hidden] { display: none; }
