/* inCheck client booking page, view B (owner 21.11). Sizes in rem: the
   browser text size scales the whole page. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #101219; --barbg: #0C0E14; --card: #181C25; --line: #2B303B; --field: #3A4458;
  --text: #F8FAFC; --muted: #ADBACD; --off: #7A879F; --link: #70A5FF;
  --sel: #232838; --ok: #4BDD99; --wait: #F0A63A; --error: #FF8A86;
  --edge: linear-gradient(90deg, #70A5FF, #9B7BFF, #E879C6);
  --word: linear-gradient(90deg, #A3C5FF, #B794FF, #F2A0D2);
  --r: 0.875rem; --rc: 1.25rem;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.45 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--link); }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { max-width: 30rem; margin: 0 auto; padding: max(1rem, env(safe-area-inset-top)) 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.875rem; min-height: 100dvh; }
.page.has-bar { padding-bottom: 12rem; }
.page.center { justify-content: center; text-align: center; }
.center { text-align: center; }
.eyebrow { color: var(--muted); font-size: 0.875rem; }
.msg { font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.foot { color: var(--off); font-size: 0.8125rem; text-align: center; margin-top: auto; padding-top: 1rem; }
.bar .foot { padding-top: 0.25rem; margin: 0; }
/* Gradient text: only the master's or salon's name and the "booked" title (A4-1); every other
   heading is white (owner 30.11, after step 8). One gradient over
   every line of a wrapped heading; in forced colours the system text colour. */
.g { background: var(--word); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: slice; box-decoration-break: slice; }
@media (forced-colors: active) { .g { background: none; color: CanvasText; } }
h1:focus { outline: none; }

/* Master header */
.mhead { display: flex; flex-direction: column; gap: 0.75rem; }
.who { display: flex; gap: 0.875rem; align-items: center; }
.ava { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 600; border: 1.5px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--edge) border-box; }
.who h1 { font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.sub { color: var(--muted); font-size: 0.9375rem; }
.badge { display: flex; gap: 0.625rem; align-items: center; padding: 0.875rem 1rem; border-radius: var(--r);
  background: #13241D; border: 1px solid #1F4A37; color: var(--ok); font-weight: 600; font-size: 0.9375rem; }
h2 { font-size: 1.375rem; font-weight: 600; margin-top: 0.25rem; }
h3 { font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-top: 0.25rem; }
.note { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.875rem; }
.fine { color: var(--muted); font-size: 0.8125rem; }
.fine.strong { color: var(--text); }

/* Choices */
.list { display: flex; flex-direction: column; gap: 0.625rem; }
.sel { background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.sel.on { border: 1.5px solid transparent; background: linear-gradient(var(--sel), var(--sel)) padding-box, var(--edge) border-box; }
.svc { display: flex; align-items: center; gap: 0.875rem; width: 100%; min-height: 4rem; padding: 0.75rem 1rem;
  border-radius: var(--rc); text-align: left; }
.svc b { display: block; font-weight: 600; }
.svc small, .card small, .fsum small, .sumcard small { color: var(--muted); font-size: 0.8125rem; display: block; }
.grow { flex: 1; min-width: 0; }
.price { white-space: nowrap; }
.dot { flex: none; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--off); }
.svc.on .dot { border: 0.375rem solid #9B7BFF; background: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.75rem;
  padding: 0.5rem 1rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 500; }
.chip.on { border: 1.5px solid transparent; background: linear-gradient(var(--sel), var(--sel)) padding-box, var(--edge) border-box; }

/* Steps */
.top { display: flex; align-items: center; gap: 0.75rem; }
.top h1 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; }
.round { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); display: grid; place-items: center; cursor: pointer; }
.steps { display: flex; gap: 0.375rem; }
.steps span { flex: 1; height: 0.1875rem; border-radius: 0.1rem; background: var(--line); }
.steps span.on { background: var(--edge); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--rc); padding: 1rem; }
.sumcard { display: flex; align-items: center; gap: 0.75rem; }
.link { background: none; border: 0; color: var(--link); font-weight: 500; min-height: 2.75rem; cursor: pointer; padding: 0 0.25rem; }
.month { font-size: 1rem; font-weight: 600; }
.days { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.125rem 0.125rem 0.375rem; scrollbar-width: none;
  scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 3.5rem; min-height: 4.5rem; border-radius: var(--r); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.0625rem; padding: 0.375rem 0.125rem; scroll-snap-align: center; }
.day small { color: var(--muted); font-size: 0.75rem; }
.day b { font-size: 1.125rem; font-weight: 600; }
.day i { font-style: normal; font-size: 0.6875rem; font-weight: 500; }
.s-many i { color: var(--ok); } .s-few i { color: var(--wait); } .s-none i, .s-off i { color: var(--muted); }
.s-none b, .s-off b { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.slot { min-height: 3rem; border-radius: var(--r); font-size: 1.0625rem; font-weight: 500; }

/* Bottom bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--barbg); border-top: 1px solid var(--line);
  padding: 0.875rem 1.25rem max(0.75rem, env(safe-area-inset-bottom)); }
.bar-in { max-width: 30rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.625rem; }
.sum { color: var(--muted); font-size: 0.875rem; }
.sum.strong { color: var(--text); font-weight: 600; font-size: 0.9375rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; min-height: 3.25rem;
  padding: 0.75rem 1rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.btn.main { min-height: 3.5rem; font-size: 1.0625rem; border: 1.5px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box; }
.btn:disabled { color: var(--off); cursor: default; border: 1px solid var(--line); background: var(--card); }
.stack { display: flex; flex-direction: column; gap: 0.625rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.copied { color: var(--ok); font-size: 0.875rem; text-align: center; min-height: 0; }
.copied:empty { display: none; }
.copyline { display: flex; flex-direction: column; align-items: center; }
.copyline .link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.9375rem; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

/* Form */
.fsum b { display: block; font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 0.875rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 0.875rem; color: var(--muted); padding: 0; }
.field legend { margin-bottom: 0.375rem; }
input[type=text], input[type=tel], input[type=email], textarea { width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem;
  border-radius: var(--r); background: var(--card); border: 1px solid var(--field); font-size: 1.0625rem; }
textarea { resize: none; min-height: 4.5rem; }
input::placeholder, textarea::placeholder { color: var(--off); }
.field small { color: var(--muted); font-size: 0.8125rem; }
.bad input, .bad textarea { border-color: var(--error); }
.err { color: var(--error); font-size: 0.875rem; }
.check { position: relative; display: flex; gap: 0.75rem; align-items: flex-start; color: var(--text) !important;
  font-size: 0.9375rem !important; min-height: 2.75rem; cursor: pointer; }
.cb { position: absolute; left: 0; top: 0; width: 1.5rem; height: 1.5rem; margin: 0; opacity: 0; cursor: pointer; }
.box { position: relative; flex: none; width: 1.5rem; height: 1.5rem; margin-top: 0.05rem; border-radius: 0.375rem;
  border: 1.5px solid var(--field); background: var(--card); }
.cb:checked + .box { background: #9B7BFF; border-color: #9B7BFF; }
.cb:checked + .box::after { content: ""; position: absolute; left: 50%; top: 45%; width: 0.35rem; height: 0.7rem;
  border: solid #FFFFFF; border-width: 0 0.15rem 0.15rem 0; transform: translate(-50%, -50%) rotate(45deg); }
.cb:focus-visible + .box { outline: 2px solid var(--link); outline-offset: 2px; }
.bad .box { border-color: var(--error); }
input:not(.cb):disabled, textarea:disabled, .cb:disabled + .box { opacity: 0.6; }
.alert { border: 1px solid var(--error); background: var(--card); border-radius: var(--r); padding: 0.875rem 1rem;
  display: flex; flex-direction: column; gap: 0.625rem; }
.notice { font-size: 0.9375rem; }

/* Done and "your booking" */
.hero { width: 4.5rem; height: 4.5rem; border-radius: 50%; display: grid; place-items: center; margin: 1rem auto 0; }
.hero.ok { background: #13241D; border: 1px solid #1F4A37; color: var(--ok); }
.hero.wait { background: #2A2114; border: 1px solid #5C4320; color: var(--wait); }
.page > h1.center { font-size: 1.625rem; font-weight: 600; line-height: 1.25; }
h1.when { font-size: 1.75rem; }
.rows { display: flex; flex-direction: column; gap: 0.875rem; }
.row { display: flex; gap: 0.875rem; align-items: flex-start; }
.row b { display: block; font-weight: 600; }
/* The request's deadline card ("due": ".box" is the consent checkbox). */
.due { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.9375rem; }
.due .i { color: var(--wait); }
.pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.3rem 0.75rem; border-radius: 99rem;
  font-size: 0.875rem; font-weight: 600; border: 1px solid; }
.pill.ok { color: var(--ok); border-color: #1F4A37; background: #13241D; }
.pill.wait { color: var(--wait); border-color: #5C4320; background: #2A2114; }
.pill.off { color: var(--muted); border-color: var(--line); background: var(--card); }
.i { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.row .i { color: var(--muted); margin-top: 0.125rem; }
.i.big { width: 2.25rem; height: 2.25rem; stroke-width: 2.2; }
.dlg { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--rc);
  padding: 1.25rem; width: min(26rem, calc(100% - 2rem)); display: flex; flex-direction: column; gap: 0.75rem; }
.dlg:not([open]) { display: none; }
.dlg::backdrop { background: rgba(5, 6, 10, 0.72); }
.dlg h2 { margin: 0; font-size: 1.25rem; }
.spin { width: 2rem; height: 2rem; margin: 0 auto; border-radius: 50%; border: 3px solid var(--line);
  border-top-color: #9B7BFF; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ts { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 10; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
