/* NoviClinic patient booking pages. Colours and type match the website. */
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root { --bg: #f9f6f0; --ink: #260e01; --primary: #772d08; --ivory: #f3ebdd; --nude: #eaddd2; --sage: #dee5d8; --yellow: #fae6be; --line: rgba(38, 14, 1, 0.14); --muted: rgba(38, 14, 1, 0.62); --bad: #a3260f; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.45 "Satoshi", system-ui, sans-serif; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, p { margin: 0; }
a { color: var(--primary); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 760px; margin: 0 auto; padding: 18px 16px; }
.top .logo img { display: block; }
.top .phone { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot { color: var(--muted); font-size: 13px; padding-top: 30px; padding-bottom: 30px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }
h1 { font-size: 30px; font-weight: 400; line-height: 1.15; margin-bottom: 6px; }
h2 { font-size: 20px; font-weight: 500; }
.steps { display: flex; gap: 5px; margin: 6px 0 18px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--nude); }
.steps i.on { background: var(--primary); }
.back { border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; margin-bottom: 10px; font-size: 15px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 14px; }
.btn { display: inline-block; border: 1px solid var(--line); background: #fff; padding: 12px 18px; border-radius: 12px; cursor: pointer; font-weight: 500; text-decoration: none; color: var(--ink); text-align: center; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.block { display: block; width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.danger { color: var(--bad); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 14px 0 8px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.list { margin-top: 10px; }
.svc { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; }
.svc:hover b { color: var(--primary); }
.svc b { font-weight: 500; display: block; }
.svc .price { white-space: nowrap; }
.opt { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 8px; cursor: pointer; }
.opt:hover { border-color: var(--primary); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-head button { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 36px; height: 36px; cursor: pointer; }
.cal-head button:disabled { opacity: 0.35; cursor: default; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.month .wd { font-size: 12px; color: var(--muted); padding: 4px 0; }
.month button { border: 0; background: none; padding: 10px 0; border-radius: 10px; font-size: 15px; color: rgba(38, 14, 1, 0.3); cursor: default; }
.month button.av { background: var(--ivory); color: var(--ink); cursor: pointer; }
.month button.sel { background: var(--primary); color: #fff; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-top: 10px; }
.times button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 0; cursor: pointer; font-size: 15px; }
.times button:hover { border-color: var(--primary); }
.times button.sel { background: var(--primary); border-color: var(--primary); color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label.f { display: block; font-size: 14px; color: var(--muted); margin-top: 12px; }
label.f input, label.f select, label.f textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dob { display: grid; grid-template-columns: 70px 70px minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.dob input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.total { font-size: 18px; }
.note { background: var(--ivory); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 12px; }
.note.warn { background: var(--yellow); }
.note.good { background: var(--sage); }
.error { color: var(--bad); font-size: 15px; margin-top: 10px; }
.tick { width: 58px; height: 58px; border-radius: 50%; background: var(--sage); color: #3f5a2c; display: grid; place-items: center; font-size: 28px; margin: 6px auto 14px; }
.center { text-align: center; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.code { display: inline-block; padding: 8px 14px; background: var(--ivory); border-radius: 10px; font-size: 20px; letter-spacing: 2px; font-weight: 700; }
.test-banner { background: var(--yellow); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.modal-bg { position: fixed; inset: 0; background: rgba(38, 14, 1, 0.4); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.modal { background: #fff; border-radius: 18px 18px 0 0; max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; padding: 20px; }
.modal ul { padding-left: 20px; }
.spin { width: 28px; height: 28px; border: 3px solid var(--nude); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { border-radius: 18px; } }
@media (max-width: 639px) { .split { grid-template-columns: 1fr; } h1 { font-size: 26px; } }

/* Forms (public/forms.js) */
.nf-intro { color: var(--muted); margin-bottom: 6px; }
.nf-heading { font-size: 17px; font-weight: 500; margin: 22px 0 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.nf-heading:first-child, .nf-intro + .nf-heading { border-top: 0; padding-top: 0; margin-top: 12px; }
.nf-q { margin-top: 16px; }
.nf-label { display: block; font-weight: 500; margin: 0; }
.nf-req { color: var(--bad); }
.nf-help { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.nf-input { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; }
.nf-date { max-width: 220px; }
.nf-yn, .nf-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.nf-yn label, .nf-opts label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; cursor: pointer; }
.nf-yn label { min-width: 88px; }
.nf-yn label:has(input:checked), .nf-opts label:has(input:checked) { border-color: var(--primary); background: var(--ivory); }
.nf-yn input, .nf-opts input, .nf-check input { accent-color: var(--primary); width: 18px; height: 18px; margin: 0; flex: none; }
.nf-details { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.nf-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.nf-check input { margin-top: 2px; }
.nf-hide { display: none; }
.nf-sign { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 22px; }
.nf-sign .nf-input { max-width: 420px; }
.nf-view { margin: 0; }
.nf-view dt { color: var(--muted); font-size: 13px; margin-top: 10px; }
.nf-view dt.nf-vh { color: var(--ink); font-size: 15px; font-weight: 500; margin-top: 16px; }
.nf-view dd { margin: 2px 0 0; }
.nf-view dd.nf-flag { background: var(--yellow); border-radius: 6px; padding: 4px 8px; display: inline-block; }
.nf-none { color: var(--muted); }

/* Codes at checkout, gift vouchers */
.code-row { display: flex; gap: 8px; margin-top: 4px; }
.code-row input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; letter-spacing: 1px; }
.applied { display: inline-flex; align-items: center; gap: 6px; background: var(--sage); border-radius: 99px; padding: 5px 6px 5px 12px; font-size: 14px; margin: 10px 6px 0 0; letter-spacing: 1px; }
.applied button { border: 0; background: rgba(255, 255, 255, 0.7); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.amounts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.amounts .chip { padding: 10px 18px; font-size: 16px; }
.gift-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.gift-link:hover b { color: var(--primary); }
