/* Victoria Wellness booking: matches the website (Jost, ink #202124, taupe #A8917C, soft #F1EEE7). Vicky / Claudette can restyle freely. */
:root { --ink: #202124; --ink2: #5F6368; --primary: #2D2D2F; --taupe: #A8917C; --soft: #F1EEE7; --line: #DADCE0; --bg: #FFFFFF; --ok: #1E7C48; --err: #B3261E; --r: 12px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 'Jost', system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: inherit; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 8px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; max-width: 640px; margin: 0 auto; }
.brand { text-decoration: none; letter-spacing: .02em; }
.brand b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 24px; line-height: 1; }
.brand span { font-size: 11px; letter-spacing: .28em; color: var(--ink2); text-transform: uppercase; }
.help { font-size: 14px; color: var(--ink2); text-decoration: none; }
h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 32px; line-height: 1.15; margin: 14px 0 6px; }
h2 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink2); font-weight: 500; margin: 28px 0 12px; }
.lede { color: var(--ink2); margin: 0 0 8px; }
.steps { display: flex; gap: 6px; margin: 8px 0 18px; }
.steps i { height: 3px; flex: 1; background: var(--line); border-radius: 2px; }
.steps i.on { background: var(--primary); }

/* treatment list */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.tabs button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.svc { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 16px; margin: 10px 0; font: inherit; color: inherit; cursor: pointer; }
.svc:hover { border-color: var(--taupe); }
.svc .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.svc .name { font-weight: 500; font-size: 17px; }
.svc .price { white-space: nowrap; font-weight: 500; }
.svc .price s { color: var(--ink2); font-weight: 400; margin-right: 6px; }
.svc p { margin: 6px 0 0; color: var(--ink2); font-size: 14px; }
.svc .meta { font-size: 13px; color: var(--ink2); margin-top: 8px; }
.tag { display: inline-block; background: var(--soft); color: var(--primary); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; }

/* chosen summary */
.chosen { background: var(--soft); border-radius: var(--r); padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.chosen b { font-weight: 500; } .chosen small { display: block; color: var(--ink2); }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; text-decoration: underline; color: var(--ink2); cursor: pointer; }

/* days + times */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.day { flex: none; width: 64px; scroll-snap-align: start; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 0; text-align: center; font: inherit; cursor: pointer; color: var(--ink); }
.day small { display: block; font-size: 12px; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }
.day strong { display: block; font-size: 20px; font-weight: 500; }
.day[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; } .day[aria-pressed="true"] small { color: #ddd; }
.day:disabled { opacity: .35; cursor: default; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.time { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 0; font: inherit; font-size: 16px; cursor: pointer; color: var(--ink); }
.time[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { color: var(--ink2); background: var(--soft); border-radius: 10px; padding: 14px; font-size: 15px; }

/* form */
label.f { display: block; margin: 12px 0; font-size: 14px; color: var(--ink2); }
label.f input, label.f select, label.f textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
label.f textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--taupe); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; }

/* payment choices: big, plain, one tap */
.pay { display: grid; gap: 10px; }
.payopt { position: relative; display: block; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px 14px 48px; cursor: pointer; background: #fff; }
.payopt input { position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; accent-color: var(--primary); margin: 0; }
.payopt .t { font-weight: 500; font-size: 17px; }
.payopt .s { color: var(--ink2); font-size: 15px; margin-top: 2px; }
.payopt .badge { position: absolute; right: 12px; top: -10px; background: var(--taupe); color: #fff; font-size: 12px; border-radius: 999px; padding: 2px 10px; }
.payopt:has(input:checked) { border-color: var(--primary); background: var(--soft); }
.code { margin-top: 12px; }
.code-row { display: flex; gap: 8px; } .code-row input { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #E6F2EA; color: var(--ok); border-radius: 999px; padding: 6px 12px; font-size: 14px; margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink2); margin: 18px 0 4px; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--primary); flex: none; }

/* sticky action bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.bar .in { max-width: 640px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.bar .sum { flex: 1; font-size: 14px; color: var(--ink2); line-height: 1.3; } .bar .sum b { display: block; color: var(--ink); font-size: 16px; font-weight: 500; }
.btn { border: 0; background: var(--primary); color: #fff; border-radius: 10px; padding: 15px 22px; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; min-width: 150px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.err { color: var(--err); font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.note { font-size: 13px; color: var(--ink2); }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; margin: 14px 0; }
.offer { background: var(--soft); border-radius: var(--r); padding: 16px; margin-top: 10px; }
.offer .big { font-size: 28px; font-weight: 500; } .offer s { color: var(--ink2); margin-left: 8px; }
.hidden { display: none !important; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s 0.7s linear infinite; vertical-align: -3px; }
@keyframes s { to { transform: rotate(360deg); } }

/* Treatment colours (VWC palette: website taupe/gold/pink/green/charcoal + Victoria's mauve and gold) */
[data-cat="Consultation"] { --acc: #2F7D52; --tint: #E4F1E9; }
[data-cat="EMFACE"] { --acc: #8D5E72; --tint: #F3EAEE; }
[data-cat="EMSCULPT NEO"] { --acc: #1C1C1E; --tint: #ECECEE; }
[data-cat="EXION"] { --acc: #A8917C; --tint: #F1EEE7; }
[data-cat="EMFUSION"] { --acc: #E08AA0; --tint: #FBEEF2; }
[data-cat="Lymphastim"] { --acc: #7D8A92; --tint: #EEF1F3; }
[data-cat="Packages"] { --acc: #D6BA8C; --tint: #F6F0E4; }
.svc[data-cat] { border-left: 4px solid var(--acc); }
.tabs button[data-cat][aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }
.tabs button[data-cat="Packages"][aria-pressed="true"] { background: #1C1C1E; border-color: #1C1C1E; color: #D6BA8C; }
.group { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--acc, var(--ink2)); margin: 22px 0 4px; font-weight: 500; }
.svc[data-cat="Packages"] { background: #1C1C1E; color: #fff; border: 0; border-left: 4px solid #D6BA8C; }
.svc[data-cat="Packages"] p, .svc[data-cat="Packages"] .meta { color: #C9C3BA; }
.svc[data-cat="Packages"] .price { color: #D6BA8C; font-size: 18px; }
.chosen[data-cat] { background: var(--tint); border-left: 4px solid var(--acc); }
.addons { display: grid; gap: 8px; margin-top: 10px; }
.addon { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; }
.addon input { width: 20px; height: 20px; accent-color: var(--primary); flex: none; margin: 0; }
.addon .t { flex: 1; } .addon small { display: block; color: var(--ink2); font-size: 13px; }
.addon:has(input:checked) { border-color: var(--primary); background: var(--soft); }

/* Match the website's Instagram offer page (22 Oct): Jost headings/buttons, Roboto text, charcoal #2B2B2D, soft greys, 5px buttons, trust row + card icons */
:root { --ink: #2B2B2D; --ink2: #565659; --muted: #86868A; --primary: #2B2B2D; --line: #E6E6E7; --soft: #F4F4F5; --r: 8px; }
body { font-family: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif; background: #FCFCFC; }
h2, .group { font-family: 'Jost', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: .16em; color: var(--ink); }
.btn { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-radius: 5px; padding: 16px 22px; }
.tabs button, .svc .name, .payopt .t, .day strong, .time, .chosen b, .brand b { font-family: 'Jost', sans-serif; }
label.f { color: var(--ink2); font-weight: 500; } label.f input, label.f select, label.f textarea { border-radius: 6px; border-color: var(--line); background: #fff; }
.svc, .payopt, .card, .addon { border-color: var(--line); background: #fff; }
.help { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; color: var(--ink); }
.trust { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 13px; color: var(--ink2); margin: 14px 0 6px; font-weight: 500; }
.cards { display: flex; gap: 6px; justify-content: center; margin: 6px 0 2px; } .cards svg { width: 40px; height: 25px; }

/* real 10-minute hold countdown (like the offer page's timer, but it actually holds the time) */
.holdbar { position: sticky; top: 0; z-index: 20; background: #F1F1F2; border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--ink2); padding: 9px 16px; font-weight: 500; }
.holdbar b { color: var(--ink); font-variant-numeric: tabular-nums; }
.holdbar.low b { color: var(--err); }

/* screen-to-screen slide (owner 22 Oct: picking a time should feel locked in) */
.slide-in { animation: slideIn .32s cubic-bezier(.2,.7,.2,1); }
.slide-back { animation: slideBack .28s cubic-bezier(.2,.7,.2,1); }
@keyframes slideIn { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideBack { from { transform: translateX(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide-in, .slide-back { animation: none; } }
.chosen { transition: background .3s; }

/* reserved timer inside the summary card (replaces the top bar) */
.held { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--ink2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.held b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.held.low { border-color: #E9B8B4; } .held.low b { color: var(--err); }
.holdbar { position: static; background: #FFF4E5; border: 0; }

.backbtn { background: none; border: 0; padding: 4px 0 10px; font: 500 15px 'Jost', sans-serif; color: var(--ink); cursor: pointer; letter-spacing: .02em; }
.backbtn:hover { text-decoration: underline; }

/* required fields: red border + message (cleared as they type) */
label.f.invalid input, label.f.invalid textarea, label.f.invalid select { border-color: var(--err); background: #FFF7F6; }
label.f.invalid { color: var(--err); }
.fieldmsg { display: block; margin-top: 6px; font-size: 13px; color: var(--err); }
.check.invalid { color: var(--err); } .check.invalid input { outline: 2px solid var(--err); outline-offset: 2px; }

/* valid tick + email suggestion */
label.f { position: relative; }
label.f.valid::after { content: '✓'; position: absolute; right: 14px; top: 39px; color: var(--ok); font-weight: 700; }
.suggest { display: block; margin-top: 6px; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--ink2); cursor: pointer; text-align: left; }
.suggest b { color: var(--ink); text-decoration: underline; }

.btn.wide { flex: 1; }

.policy { text-align: center; margin: 14px 0 0; }
#noteOpen { margin: 4px 0 8px; }

.stars { color: #C9A227; letter-spacing: 1px; } .trust .stars { color: #C9A227; }
.rating { margin: 0 0 22px; font-size: 14px; color: var(--ink2); font-weight: 500; }

/* Treatment colours copied from the website's package cards (.pkg__save--emface etc., 22 Oct): flowing 3-colour gradients */
[data-cat="Consultation"] { --c1: #6FC79E; --c2: #2F7D52; --c3: #8FD0A0; --acc: #2F7D52; --tint: #E7F1EB; }
[data-cat="EMFACE"] { --c1: #2E5BBA; --c2: #1E3A7B; --c3: #3C6FD1; --acc: #1E3A7B; --tint: #E9EEF7; }
[data-cat="EMSCULPT NEO"] { --c1: #6FC79E; --c2: #5FB0B8; --c3: #9AD888; --acc: #5FB0B8; --tint: #EAF6F3; }
[data-cat="EXION"] { --c1: #F0A6C0; --c2: #E08AA0; --c3: #C9A0E0; --acc: #E08AA0; --tint: #FCEEF3; }
[data-cat="EMFUSION"] { --c1: #EBC66E; --c2: #E0A860; --c3: #EEB48E; --acc: #E0A860; --tint: #FBF3E6; }
[data-cat="Lymphastim"] { --c1: #C9A0E0; --c2: #B08FE0; --c3: #8FA8E8; --acc: #B08FE0; --tint: #F4EEFB; }
[data-cat="Packages"] { --c1: #C9A0E0; --c2: #E08AA0; --c3: #E7B98A; --acc: #D6BA8C; --tint: #F6F0E4; }   /* the site's default package gradient */
.svc[data-id="victoria-face"] { --c1: #2E5BBA; --c2: #1E3A7B; --c3: #3C6FD1; }
.svc[data-id="victoria-body"] { --c1: #6FC79E; --c2: #5FB0B8; --c3: #9AD888; }

@keyframes vwflow { from { background-position: 0 50%; } to { background-position: 300% 50%; } }
.svc[data-cat], .chosen[data-cat] { position: relative; overflow: hidden; border-left: 1px solid var(--line); }
.svc[data-cat]::before, .chosen[data-cat]::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--c1), var(--c2), var(--c3), var(--c1)); background-size: 100% 300%; }
.svc[data-cat]:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--c2) 30%, transparent); transform: translateY(-2px); transition: transform .2s, box-shadow .2s; }
.chosen[data-cat] { background: var(--tint); border-color: transparent; }
.tabs button[data-cat][aria-pressed="true"] { background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c1)); background-size: 300% 100%;
  animation: vwflow 8s linear infinite; border-color: transparent; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.tabs button[data-cat="Packages"][aria-pressed="true"] { background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c1)); background-size: 300% 100%; color: #fff; }
.svc[data-cat="Packages"] { background: #1C1C1E; border: 0; }
.svc[data-cat="Packages"]::before { width: 6px; }
.svc[data-cat="Packages"] .price { color: #fff; }
.group { color: var(--c2, var(--ink)); }
@media (prefers-reduced-motion: reduce) { .tabs button[aria-pressed="true"] { animation: none; } }

/* Wordmark copied from the website header (.wordmark): Jost Light, stacked and centred */
.brand { display: inline-flex; flex-direction: column; align-items: center; color: var(--ink); letter-spacing: 0; }
.brand b { font-family: 'Jost', 'Century Gothic', system-ui, sans-serif; font-weight: 300; font-size: 22px; letter-spacing: .02em; line-height: 1; }
.brand span { font-family: 'Jost', 'Century Gothic', system-ui, sans-serif; font-weight: 300; font-size: 9px; line-height: 1; letter-spacing: .36em; text-indent: .36em; text-transform: none; color: #5F6368; margin-top: 2px; }
@media (min-width: 900px) { .brand b { font-size: 25px; } }
.rating { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rating .partner { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.rating .partner img { height: 17px; width: auto; opacity: .75; }
.rating > span:first-child { white-space: nowrap; }
@media (max-width: 420px) { .rating { font-size: 13px; } .rating .partner { font-size: 9.5px; letter-spacing: .06em; gap: 5px; } .rating .partner img { height: 15px; } }
@media (max-width: 420px) { .rating { font-size: 12.5px; gap: 6px; } .rating .partner { letter-spacing: .03em; } }
/* Very narrow screens: badge drops under the rating (right aligned) instead of running off the edge */
.rating { flex-wrap: wrap; row-gap: 8px; }
.rating .partner { margin-left: auto; }
/* Typed text: Jost Regular (the label's Roboto Medium looked heavy) */
label.f input, label.f select, label.f textarea { font-family: 'Jost', 'Century Gothic', system-ui, sans-serif; font-weight: 400; font-size: 17px; letter-spacing: .01em; color: var(--ink); }
label.f input::placeholder, label.f textarea::placeholder { color: #A0A3A8; font-weight: 300; }

/* Slim footer on the booking pages (owner 22 Oct): contact + policy links, no full menu so clients stay in the booking */
.sfoot { max-width: 560px; margin: 12px auto 0; padding: 14px 16px 18px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--ink2); text-align: center; }
.sfoot p { margin: 0 0 8px; } .sfoot b { color: var(--ink); font-weight: 500; } .sfoot a { color: var(--ink2); }
.sfoot .copy { font-size: 11.5px; opacity: .8; }

body.hasbar .sfoot { padding-bottom: 104px; }   /* room for the Continue / Pay bar only when it is showing */

/* Tip cards (owner 23 Oct, like Fresha's checkout): the client picks; shared by the pay page and the in-clinic tip screen in admin */
.tipq { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 22px; line-height: 1.25; margin: 6px 0 4px; }
.tipsub { color: var(--ink2); margin: 0 0 16px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcard { border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); font: inherit; padding: 16px 8px; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.tcard b { font-size: 17px; font-weight: 500; } .tcard small { font-size: 13.5px; color: var(--ink2); }
.tcard.on { border: 2px solid var(--primary); padding: 15px 7px; }
.tcustom { margin-top: 10px; } .tcustom input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 18px; }
.ttotal { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; font-size: 16px; } .ttotal b { font-size: 20px; font-weight: 600; }
.sfoot .addr { white-space: nowrap; font-size: min(12.5px, 3.2vw); }   /* owner 25 Oct: address on one line on phones */
