/* Studio on Brunswick: quiet cream, editorial serif headings, plum and lime. */
:root {
  --bg: #f4f1ec;
  --fg: #241028;
  --primary: #3b1848;
  --accent: #d6e94a;
  --border: #d7d1d9;
  --muted: #706671;
  --error-bg: #fbeceb;
  --error-fg: #7a2722;
  --radius: 6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'Almarai', sans-serif; font-size: 16px; line-height: 1.6; }
main { max-width: 1080px; margin: 0 auto; padding: 40px 40px 48px; }
h1, h2 { font-family: 'Ovo', Georgia, serif; font-weight: 400; line-height: 1.12; }
h1 { max-width: 740px; font-size: clamp(2.25rem, 4.5vw, 3.5rem); margin: 14px 0 18px; letter-spacing: -0.025em; }
h2 { font-size: 1.8rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 22px 0 4px; }
p { margin: 0 0 14px; }
.intro { border-bottom: 1px solid var(--border); padding-bottom: 28px; margin-bottom: 30px; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.11em; text-transform: uppercase; font-weight: 700; margin: 0; }
.intro-copy { max-width: 620px; font-size: 1.0625rem; }
.call-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 20px 0 0; list-style: none; font-size: 0.875rem; }
.call-facts li { display: flex; align-items: center; gap: 8px; }
.call-facts li::before { content: ''; width: 7px; height: 7px; background: var(--primary); border-radius: 50%; }
.call-facts li:first-child { background: var(--accent); padding: 2px 10px; margin-left: -10px; border-radius: 2px; }
.muted, .hint, .section-note { color: var(--muted); }
.section-note { font-size: 0.9375rem; margin-bottom: 20px; }
.notice { padding: 18px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--primary); overflow-wrap: anywhere; }
.notice.error { background: var(--error-bg); color: var(--error-fg); border-left-color: var(--error-fg); }
button { font: inherit; cursor: pointer; border-radius: var(--radius); touch-action: manipulation; min-height: 44px; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
h1:focus, h2:focus { outline: none; }
.primary { padding: 14px 20px; background: var(--primary); color: #fff; border: 1px solid var(--primary); font-weight: 700; line-height: 1.5; }
.primary:hover:not(:disabled) { background: var(--fg); }
.primary:disabled { background: #e7e1e8; color: #655a69; border-color: #e7e1e8; }
.secondary { padding: 12px 20px; background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.secondary:hover { background: #eee8ef; }
.link { padding: 12px 4px; background: none; border: 0; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.field { margin-bottom: 14px; }
label { display: block; font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; }
.hint { font-size: 0.875rem; margin: 0 0 8px; }
input, textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid #9c919f; border-radius: 3px; background: #fff; color: var(--fg); }
textarea { resize: vertical; min-height: 76px; }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--error-fg); border-width: 2px; }
.field-error { color: var(--error-fg); font-size: 0.875rem; margin: 6px 0 0; }
.trap, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.book-grid { display: grid; gap: 32px 48px; align-items: start; }
.col-times { order: -1; min-width: 0; }
.col-details { min-width: 0; }
.col-times.narrow { max-width: 500px; }
.selection-reminder { border-left: 3px solid var(--primary); padding: 8px 12px; font-size: 0.875rem; margin-bottom: 22px; }
.booking-action { border-top: 1px solid var(--border); padding-top: 16px; }
.selection-summary { font-size: 0.9375rem; font-weight: 700; margin-bottom: 10px; }
.booking-action .primary { width: 100%; }
.booking-action .hint { text-align: center; margin: 10px 0 0; }
/* No viewport-height minimum or fixed elements: the embedded document can shrink. */
.picker { margin: 0; min-width: 0; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--primary); padding: 20px; }
.picker:disabled { opacity: 0.65; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-title { margin: 0; font-size: 1.45rem; }
.cal-arrow { width: 44px; height: 44px; flex-shrink: 0; background: transparent; border: 1px solid var(--border); color: var(--primary); font-size: 1.5rem; line-height: 1; }
.cal-arrow:hover:not(:disabled) { border-color: var(--primary); background: #f4f1ec; }
.cal-arrow:disabled { opacity: 0.3; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 16px; text-align: center; }
.cal-dow { font-size: 0.75rem; color: var(--muted); padding: 4px 0 8px; }
.cal-day { display: flex; align-items: center; justify-content: center; height: 44px; color: var(--muted); font-size: 0.9375rem; }
button.cal-day { width: 100%; padding: 0; border: 1px solid #9c919f; background: #eee8f0; color: var(--primary); font-weight: 700; border-radius: 3px; }
button.cal-day:hover { border-color: var(--primary); }
button.cal-day.selected { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: inset 0 -3px var(--accent); }
.calendar-key { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted); margin: 14px 0 0; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.calendar-key span { width: 12px; height: 12px; border: 1px solid #9c919f; background: #eee8f0; }
.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.time { padding: 10px 4px; background: #fff; color: var(--primary); border: 1px solid var(--primary); font-size: 0.9375rem; }
.time:hover { background: #eee8f0; }
.time.selected { background: var(--accent); color: var(--fg); border: 2px solid var(--primary); font-weight: 700; padding: 9px 3px; }
.outcome { max-width: 700px; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--primary); padding: 36px; }
.outcome h2 { font-size: 2.3rem; margin: 12px 0 24px; }
.completion-mark { display: grid; place-items: center; width: 52px; height: 52px; background: var(--accent); color: var(--primary); border-radius: 50%; font-size: 1.6rem; margin-bottom: 24px; }
.call-date { font-size: 1.125rem; font-weight: 700; margin: 0 0 24px; }
.call-date span { display: block; margin-top: 6px; font-size: 0.875rem; color: var(--muted); font-weight: 400; }
.next-step { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 22px; }
.outcome > p:last-child { margin-bottom: 0; }
.loading { min-height: 250px; display: flex; gap: 12px; align-items: flex-start; padding: 28px 20px; background: #fff; border: 1px solid var(--border); color: var(--muted); }
.col-times .loading { min-height: 480px; }
.spinner { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
  .book-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); }
  .col-times { order: 0; grid-column: 1; grid-row: 1; }
  .col-details { grid-column: 2; grid-row: 1; }
  /* The calendar sits alongside, so the details column stays about as tall as it. */
  .col-details .selection-reminder { display: none; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .field-row .field { display: flex; flex-direction: column; }
  .field-row .hint { order: 3; margin: 4px 0 0; }
}
@media (max-width: 599px) {
  main { padding: 26px 16px 32px; }
  .intro { padding-bottom: 24px; margin-bottom: 26px; }
  .eyebrow { font-size: 0.6875rem; letter-spacing: 0.08em; }
  h1 { font-size: 2.3rem; }
  .call-facts { gap: 8px 14px; }
  .call-facts li:first-child { margin-left: 0; }
  .intro-copy { font-size: 1rem; }
  .picker { padding: 14px 6px 18px; }
  .cal-grid { gap: 2px; }
  .outcome { padding: 24px 20px; }
  .outcome h2 { font-size: 2rem; }
  .actions { align-items: stretch; flex-direction: column; }
}
/* At narrow widths retain 44px date targets, allowing the calendar its full width. */
@media (max-width: 374px) {
  html { scrollbar-width: thin; }
  main { padding-left: 0; padding-right: 0; }
  .intro, .col-details, .col-times > h2, .col-times > .section-note, .narrow > .actions { margin-left: 6px; margin-right: 6px; }
  .picker { padding-left: 0; padding-right: 0; border-left: 0; border-right: 0; }
  .cal-grid { gap: 0; }
  .cal-nav, .picker h3, .picker .hint, .calendar-key, .times { margin-left: 6px; margin-right: 6px; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
