/* Client survey — spec Part 8. No inline styles anywhere (CSP style-src 'self'). */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('fonts/inter-700.woff2') format('woff2'); }
:root { --brand: #4A52A8; --brand-ghost: #eef0fb; --ink: #1f1f1f; --muted: #4a4a4a; --line: #c9cce0; --bg: #fafbff; --err: #a3202b; --ok: #1d6b3a; }
* { box-sizing: border-box; }
html { font-size: 125%; }   /* 20px at the browser's default 16px, and it follows the reader's own text-size setting */
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; line-height: 1.5; }
.brand { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 14px 16px; background: #fff; border-bottom: 3px solid var(--brand); }
.brand-name { font-weight: 700; color: var(--brand); }
.brand-tag { font-size: .8rem; color: var(--muted); }
main { max-width: 40rem; margin: 0 auto; padding: 16px 16px 96px; outline: none; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: .25em 0 .6em; }
h2 { font-size: 1.1rem; margin: 1em 0 .3em; }
p { margin: 0 0 .9em; }
.lead { font-size: 1.1rem; }
.strong { font-weight: 600; }
.hint { color: var(--muted); }
.progress { color: var(--muted); font-size: .85rem; margin: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
fieldset.group { border: 0; padding: 0; margin: 0 0 1.2em; }
legend { font-weight: 600; padding: 0; margin-bottom: .4em; }
.choice { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 10px 12px; margin: 6px 0; background: #fff;
  border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice:hover { border-color: var(--brand); }
.choice:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice input { width: 26px; height: 26px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.choice.consent { border-color: var(--brand); background: var(--brand-ghost); }
.pick.open { border-left: 4px solid var(--brand); padding-left: 10px; margin: 8px 0 16px; }
.pick-body { padding: 4px 0 4px 8px; }
.timing { margin: 8px 0; }
.field { display: flex; flex-direction: column; margin: 0 0 1em; }
.field label { font-weight: 600; margin-bottom: 4px; }
input[type=text], select, textarea { font: inherit; min-height: 48px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
input[type=text]:focus, select:focus, textarea:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row .field { flex: 1 1 6rem; }
.nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 1.5em; }
.btn { font: inherit; font-weight: 600; min-height: 52px; min-width: 8rem; padding: 10px 20px; border-radius: 10px; cursor: pointer; border: 2px solid var(--brand); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.secondary { background: #fff; color: var(--brand); }
.btn.link { border: 0; background: none; color: var(--brand); text-decoration: underline; min-width: 0; padding: 8px 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.error { color: var(--err); font-weight: 600; border-left: 4px solid var(--err); padding-left: 10px; }
.save-state { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 16px; background: #fff; border-top: 1px solid var(--line);
  color: var(--ok); font-size: .85rem; min-height: 2.2em; }
.save-state.warn { color: var(--err); }
.review-group { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 0 0 12px; }
.review-group ul { margin: 0 0 .3em; padding-left: 1.2em; }
.med-list { list-style: none; padding: 0; margin: 0 0 1em; }
.med-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0; }
.med-list .actions { display: flex; gap: 16px; }
.combo { position: relative; }
.credit { font-size: 0.8rem; margin-top: 2em; }
.suggest { list-style: none; margin: 4px 0 0; padding: 0; border: 2px solid var(--brand); border-radius: 10px; background: #fff; }
.suggest[hidden] { display: none; }
.suggest li { min-height: 52px; padding: 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.suggest li:last-child { border-bottom: 0; }
.suggest li.active, .suggest li:hover { background: var(--brand-ghost); }
.suggest li.typed { font-style: italic; }
.strengths { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.strengths .btn { min-width: 6rem; }
.strengths .btn[aria-pressed=true] { background: var(--brand); color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 720px) { main { padding-top: 32px; } }
