/* Public booking page, look A "Quiet & Warm" from ai/notes/mockups/phase-2-look.html.
   System fonts only: no web fonts, no remote assets (Hard Constraint #3). */
:root {
  --bg: #f7f3ec; --paper: #fffdf9; --line: #e7dfd2; --line2: #d6cbb9; --ink: #2b2620; --soft: #6b6155;
  --acc: #2f5a46; --acc-dk: #24473a; --acc-soft: #e3ece6;
  --red: #9e3628; --red-soft: #f7e3df;
  --serif: "Iowan Old Style", Charter, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--sans); background: var(--bg); color: var(--ink); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
p { margin: 0 0 12px; }

.page { max-width: 460px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding: 6px 20px 28px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Header */
.bk-head { text-align: center; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.bk-head h1 { font: 600 20px/1.25 var(--serif); margin: 0; }
/* The heading takes focus on each step so screen readers announce it; it is not a control. */
.bk-head h1:focus, .bk-head h1:focus-visible { outline: none; }
.bk-head p { color: var(--soft); font-size: 13px; margin: 2px 0 0; }
.stepdots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.stepdots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line2); }
.stepdots i.on { background: var(--acc); }

/* Text */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q { display: block; font: 600 17px/1.3 var(--serif); margin: 18px 0 10px; padding: 0; }
.q.small { font-size: 15px; }
.fine { font-size: 13px; color: var(--soft); }
.muted { color: var(--soft); }
.big { font-size: 16px; }
.center { text-align: center; }
.note { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 18px; }
.error { color: var(--red); background: var(--red-soft); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin: 10px 0; }
#name-error, #phone-error { background: none; padding: 4px 0 0; margin: 0; }

/* Step 1: type options (radio inputs styled as cards) */
.opt { display: block; position: relative; margin-bottom: 10px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .box { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
.opt .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); flex: none; margin-top: 2px; background: #fff; }
.opt b { font-weight: 600; display: block; }
.opt small { color: var(--soft); font-size: 13px; }
.opt input:checked + .box { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; }
.opt input:checked + .box .radio { border: 5px solid var(--acc); }
.opt input:focus-visible + .box { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Step 2: day chips and time chips */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin-bottom: 4px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip { display: block; position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip .box { display: block; text-align: center; background: var(--paper); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 2px; }
.days .box { font-size: 12px; color: var(--soft); padding: 7px 0; border-color: var(--line); }
.days .box b { display: block; font: 400 19px/1.2 var(--serif); color: var(--ink); }
.slots .box { font-weight: 600; color: var(--acc); }
.slots .box small { display: block; font-weight: 400; font-size: 11.5px; color: var(--soft); }
.chip input:checked + .box { background: var(--acc); border-color: var(--acc); color: #fff; }
.chip input:checked + .box b, .chip input:checked + .box small { color: #fff; }
.chip input:focus-visible + .box { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Step 3: details */
.summary { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 16px 0 6px; line-height: 1.55; }
.summary b { display: block; font: 600 15.5px var(--serif); }
.summary span { display: block; }
.lbl { display: block; font-size: 13.5px; font-weight: 600; margin: 16px 0 5px; }
.inp { display: block; width: 100%; border: 1px solid var(--line2); background: #fff; border-radius: 10px; padding: 11px 12px; font-size: 16px; }
.inp[aria-invalid="true"] { border-color: var(--red); }
.hint { font-size: 12.5px; color: var(--soft); margin: 4px 0 0; }
#details-form > .fine { margin-top: 18px; }

/* Buttons */
.pbtn { display: block; width: 100%; margin: 20px 0 8px; background: var(--acc); color: #fff; border: 0; border-radius: 999px; padding: 13px; font-weight: 600; font-size: 15px; cursor: pointer; }
.pbtn:hover { background: var(--acc-dk); }
.pbtn:disabled { opacity: .65; cursor: progress; }
.pbtn.ghost { background: transparent; color: var(--acc); border: 1px solid var(--acc); }
.link { display: block; margin: 4px auto 0; background: none; border: 0; color: var(--acc); font-size: 14px; padding: 8px 12px; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* Step 4: done */
.check { width: 62px; height: 62px; border-radius: 50%; background: var(--acc-soft); color: var(--acc); display: grid; place-items: center; font-size: 30px; margin: 48px auto 16px; }
.done-title { font: 400 26px/1.15 var(--serif); margin: 0 0 12px; }
.done-title:focus { outline: none; }

/* Desktop: the same column as a card */
@media (min-width: 600px) {
  body { padding: 32px 16px; }
  .page { min-height: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }
  body { background: #ece7de; }
}
