/* Layers on top of site.css: palette, type and the shared header, button and field rules
   live there. Only what the intake form adds belongs in this file. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
h1, h2, h3 { font-family: Jost, Futura, 'Trebuchet MS', sans-serif; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(34px, 6.2vw, 64px); letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(27px, 3.8vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
p { margin: 0; }
p + p { margin-top: 1em; }
a { color: var(--pri); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pri-hover); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.sr { position: absolute; left: -9999px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 99px; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 99px; border: 2px solid var(--pri); background: transparent; color: var(--pri); text-decoration: none; font-weight: 600; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.btn:hover { background: var(--pri); color: var(--on-pri); }
.btn-solid { background: var(--pri); color: var(--on-pri); }
.btn-solid:hover { background: var(--pri-hover); border-color: var(--pri-hover); color: var(--on-pri); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-block: 10px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--text); font: 600 21px/1.1 Jost, Futura, 'Trebuchet MS', sans-serif; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.brand svg { width: 36px; height: 36px; flex: none; color: var(--pri); }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.head-actions a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; font-weight: 600; }
.head-actions .lang { border: 1px solid var(--edge); border-radius: 99px; color: var(--text); text-decoration: none; }
.head-actions .lang:hover { background: var(--tint); color: var(--text); }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 48px; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; }
.site-footer h2 { font-size: 18px; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.fine { grid-column: 1 / -1; color: var(--muted); font-size: 16px; }


.field { margin-top: 22px; }
.field > label, fieldset legend { display: block; font-weight: 600; padding: 0; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 16px; }
#client_postal { text-transform: uppercase; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.choices { display: grid; gap: 8px; margin-top: 8px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 16px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.choice:hover { border-color: var(--edge); }
.choice input { width: 24px; height: 24px; flex: none; accent-color: var(--pri); margin: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--pri); background: var(--tint); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choices.cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.choice .sub { display: block; color: var(--muted); font-size: 16px; font-weight: 400; }
.choice > span { font-weight: 600; }
.error { display: none; margin-top: 8px; padding: 10px 14px; background: var(--err-bg); color: var(--err); border-left: 4px solid var(--err); border-radius: 4px; font-weight: 500; }
.error.on { display: block; }
[aria-invalid="true"] { border-color: var(--err) !important; }
/* Intake */
.intake { padding-block: clamp(28px, 6vw, 64px); }
.intake .wrap { max-width: 760px; }
.intake h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--pri); border-radius: 12px; padding: clamp(20px, 3.4vw, 32px); }
.panel h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 10px; }
.panel a.tel { display: inline-block; margin-top: 8px; font: 700 clamp(24px, 4vw, 30px)/1.2 Inter, system-ui, sans-serif; }
.group { margin-top: clamp(28px, 5vw, 44px); padding-top: 24px; border-top: 1px solid var(--line); }
.group:first-of-type { border-top: 0; padding-top: 0; margin-top: 28px; }
.group > h2 { font-size: clamp(22px, 2.6vw, 28px); }
.group > .hint { margin-top: 4px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 20px; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 52px; padding: 10px 16px; background: var(--surface); border: 2px solid var(--edge); border-radius: 10px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input[type="date"], .field input[type="time"] { min-width: 0; }
fieldset legend { padding: 0; }
.consent { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); }
.consent input { width: 28px; height: 28px; flex: none; accent-color: var(--pri); margin: 2px 0 0; }
.consent label { font-weight: 400 !important; margin: 0 !important; }
.consent:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent:has([aria-invalid="true"]) { border-color: var(--err); }
.summary:empty { display: none; }
.summary { margin-top: 20px; padding: 16px 18px; border-radius: 10px; background: var(--err-bg); border: 2px solid var(--err); color: var(--text); font-weight: 600; }
.summary a.tel { display: inline-block; margin-top: 6px; font: 700 clamp(22px, 4vw, 28px)/1.2 Inter, system-ui, sans-serif; }
#form-error:empty { display: none; }
#form-error { margin-top: 24px; padding: 16px 18px; border-radius: 10px; background: var(--err-bg); border: 2px solid var(--err); }
#form-error a.tel { display: inline-block; margin-top: 8px; font: 700 clamp(22px, 4vw, 28px)/1.2 Inter, system-ui, sans-serif; }
#send { width: 100%; margin-top: 28px; }
[hidden] { display: none !important; }
.error a, .summary a { color: inherit; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---- Stepped form -------------------------------------------------------
   One step on screen at a time, the way carelancer walks a care request. The
   steps are plain sections the script hides, so a server-side error can reveal
   every one of them at once and nothing is ever hidden with an error in it. */
.wizard-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 20px; padding: 0; font-size: 15px; color: var(--muted); }
.wizard-nav li { display: flex; align-items: center; gap: 8px; }
.wizard-nav li::before { content: counter(w); counter-increment: w; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); font-weight: 600; font-size: 14px; }
.wizard-nav { counter-reset: w; }
.wizard-nav li[aria-current="step"] { color: var(--text); font-weight: 600; }
.wizard-nav li[aria-current="step"]::before { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }
.wizard-nav li.done::before { background: var(--lilac); border-color: var(--pri); color: var(--pri-hover); }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 8px; }
.bar > span { display: block; height: 100%; background: var(--pri); border-radius: 99px; transition: width .3s var(--ease); }
.count { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
/* site.css pads every <section>; a step is a section only for its heading semantics. */
.step { padding-block: 0; }
.step[hidden] { display: none !important; }
.step > .group:first-child { border-top: 0; padding-top: 0; margin-top: 24px; }
.nav-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nav-btns .btn { flex: 1 1 180px; margin-top: 0; }
#send { width: auto; margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .bar > span { transition: none; } }
