/* Aftiva patient pages. Same look as the Aftiva patient app: quiet, warm, one step at a time. */
:root {
  --ivory: #F8F4EF; --pearl: #FFFDFA; --cash: #EFE8DF; --oat: #E2D5C6; --sand: #C9B8A6;
  --taupe: #7D6B5B; --ink: #2A2522; --stone: #6B625C; --hair: #E6DED3; --ctl: #A89A8B;
  --powt: #E5ECF2; --powd: #3F5163; --ox: #8A4A47; --oxt: #F4EAE8;
  --gar: #B3261E; --gart: #F5E4E0; --gard: #6E2219;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #1C1917; --pearl: #24201D; --cash: #2C2723; --oat: #4A4038; --sand: #8C7B6B;
    --taupe: #C9B8A6; --ink: #F3EEE8; --stone: #B5ABA3; --hair: #3A332E; --ctl: #6B5F55;
    --powt: #26303A; --powd: #C9D6E2; --ox: #D9A29E; --oxt: #3A2624; --gart: #3A2421; --gard: #F2C9C2;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 15px/1.5 var(--sans); min-height: 100vh; }
button { font: inherit; color: inherit; }
.wrap { max-width: 520px; margin: 0 auto; padding: 22px 16px 36px; }

/* Header: the clinic, powered by Aftiva */
.webbar { display: flex; flex-direction: column; gap: 4px; padding: 4px 6px 16px; }
.webbrand { font: 500 24px/1.1 var(--display); letter-spacing: .02em; }
.webby { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.webby b { color: var(--ox); font-weight: 500; letter-spacing: .2em; }

/* The card everything sits in */
.panel { background: var(--pearl); border: 1px solid var(--hair); border-radius: 24px; padding: 22px 20px 22px;
  display: flex; flex-direction: column; gap: 16px; }
.foot { text-align: center; color: var(--stone); font-size: 12px; margin-top: 18px; }
.foot a { color: inherit; text-underline-offset: 3px; }

/* Step header */
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { border: 0; background: var(--cash); width: 44px; height: 44px; border-radius: 22px; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
.back[hidden] { visibility: hidden; display: grid; }
.steps { display: grid; gap: 6px; }
.steps i { display: block; height: 3px; border-radius: 2px; background: var(--hair); }
.steps i.on { background: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; line-height: 1.12; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
.label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--taupe); }
.muted { color: var(--stone); font-size: 13px; }

/* Choices */
.opt { width: 100%; text-align: left; border: 1px solid var(--hair); background: var(--pearl); border-radius: 16px; padding: 14px 16px;
  cursor: pointer; display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 56px; }
.opt[aria-pressed="true"] { border: 1.5px solid var(--ink); background: var(--cash); }
.opt .t { font-weight: 500; font-size: 14px; }
.opt .s { font-size: 12px; color: var(--stone); }
.opt:disabled { cursor: default; }
.price { font-family: var(--display); font-size: 19px; white-space: nowrap; }
.list { display: flex; flex-direction: column; gap: 8px; }
.cat { border: 0; background: none; width: 100%; text-align: left; padding: 14px 2px; border-bottom: 1px solid var(--hair); cursor: pointer;
  display: flex; justify-content: space-between; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--taupe); }
.cat-open { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--ctl); background: var(--pearl); border-radius: 999px; min-height: 42px; padding: 0 15px; cursor: pointer; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--oat); border-color: var(--oat); font-weight: 500; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 2px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 auto; border: 1px solid var(--hair); background: var(--pearl); border-radius: 16px; padding: 9px 14px; cursor: pointer; text-align: center; min-width: 64px; }
.day .d1 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.day .d2 { font: 500 20px/1.15 var(--display); }
.day[aria-pressed="true"] { border: 1.5px solid var(--ink); background: var(--cash); }

/* Buttons */
.btn { display: block; width: 100%; border: 0; border-radius: 999px; min-height: 50px; padding: 0 22px; background: var(--oat); color: var(--ink);
  font-weight: 500; cursor: pointer; font-size: 14.5px; letter-spacing: .02em; text-align: center; text-decoration: none; line-height: 50px; }
.btn.ghost { background: transparent; border: 1px solid var(--ctl); font-weight: 400; min-height: 44px; line-height: 44px; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--sand);
  text-underline-offset: 3px; cursor: pointer; font-size: 13.5px; }

/* Cards and notes */
.card { background: var(--ivory); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.card.line { background: var(--pearl); border: 1px solid var(--hair); }
.memblock { display: flex; flex-direction: column; gap: 6px; background: var(--oxt); border-radius: 18px; padding: 12px 14px; }
.memblock .label { color: var(--ox); }
.note { border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
.note.err { background: var(--gart); color: var(--gard); }
.note.info { background: var(--cash); }
.hr { height: 1px; background: var(--hair); margin: 4px 0; }
.terms { font-size: 12px; color: var(--stone); }

/* Forms */
label.f { display: block; font-size: 12.5px; color: var(--stone); margin: 0 0 4px; }
input[type=text], input[type=tel], input[type=email], textarea {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid var(--ctl); background: var(--pearl);
  padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); }
textarea { padding: 10px 14px; min-height: 72px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }
button:focus-visible { outline: 2px solid var(--taupe); outline-offset: 2px; }
.fields { display: flex; flex-direction: column; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--taupe); flex: 0 0 auto; }
.q { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.q:last-child { border-bottom: 0; }
.q p { margin: 0 0 10px; font-size: 14px; white-space: pre-line; }
.q.missing p { color: var(--gar); }
.check span { white-space: pre-line; }
.yn { display: flex; gap: 8px; }
.yn .chip { min-width: 84px; }

/* Done screens */
.booked-arch { width: 72px; height: 72px; color: var(--ox); margin: 10px auto 2px; display: block; }
.center { text-align: center; }
.spin { width: 22px; height: 22px; border: 2px solid var(--oat); border-top-color: var(--taupe); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }

/* Opening cover: the Aftiva mark on maroon, then the clinic's booking page. */
.splash { position: fixed; inset: 0; z-index: 20; background: #8A4A47; color: #EFE8DF; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; animation: splash-out .4s ease 1.1s forwards; }
.splash svg { width: min(26vw, 120px); height: min(26vw, 120px); animation: splash-in .8s ease both; }
.splash .swm { font: 500 clamp(26px, 5vw, 38px)/1 var(--display); letter-spacing: .36em; padding-left: .36em; animation: splash-in .8s ease .2s both; }
.splash .sby { position: absolute; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; animation: splash-in .8s ease .4s both; }
@keyframes splash-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .splash, .splash * { animation-duration: .01s !important; } .splash { animation-delay: 1s !important; } }
/* Consent forms: the clinic's own wording to read, between the questions */
.q.info { background: var(--ivory, #f7f3ee); border-bottom: 0; border-radius: 12px; padding: 14px 16px; margin: 8px 0; }
.q.info p { color: var(--ink); font-size: 13.5px; line-height: 1.6; margin: 0; }
.q.info .info-t { font-weight: 500; margin-bottom: 6px; }
.q.info a { color: inherit; text-underline-offset: 3px; }
.care-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.note.warn { background: var(--cash); color: var(--ink); }
.small { font-size: 12.5px; }
