/* Streamline Design Questionnaire. Everything is scoped to .sdq so it won't touch the theme. */
.sdq{
  --forest:#2E3B35; --timber:#B07A45; --bark:#8C4A2B; --fog:#F2F3F0; --paper:#FFFFFF;
  --ink:#232826; --muted:#666C68; --line:#D6D9D3; --chip:#E9ECE7; --chip-on:#2E3B35; --chip-on-ink:#F3EEE4;
  --river:#B07A45; --river-bg:#DCDFD9;
  --sdq-serif:Spectral,Georgia,serif; --sdq-sans:"Work Sans",Helvetica,Arial,sans-serif;
  background:var(--fog); color:var(--ink);
  font:400 16px/1.55 var(--sdq-sans); -webkit-font-smoothing:antialiased;
  text-align:left; position:relative; border-radius:8px;
}
@media (prefers-color-scheme:dark){
  .sdq[data-theme-mode="auto"]{
    --forest:#C9D3CB; --timber:#D09A63; --bark:#D58B62; --fog:#171B19; --paper:#1F2522;
    --ink:#E8EBE7; --muted:#9BA39D; --line:#36403A; --chip:#2A322E; --chip-on:#D09A63; --chip-on-ink:#171B19;
    --river:#D09A63; --river-bg:#2E3632;
  }
}
.sdq *,.sdq *::before,.sdq *::after{box-sizing:border-box}
.sdq [hidden]{display:none!important}
.sdq h1,.sdq h2,.sdq h3{font-family:var(--sdq-serif);font-weight:400;color:var(--forest);margin:0;padding:0;letter-spacing:normal;text-transform:none;line-height:1.15}
.sdq p{margin:0 0 14px;padding:0}
.sdq button,.sdq input,.sdq textarea{font-family:var(--sdq-sans);color:inherit}
.sdq :focus-visible{outline:3px solid var(--timber);outline-offset:2px}

/* Top bar with river progress */
.sdq .sdq-top{position:sticky;top:var(--sdq-offset,0px);z-index:50;background:var(--fog);padding:12px 20px 6px;border-bottom:1px solid var(--line);border-radius:8px 8px 0 0}
.sdq .sdq-top-in{max-width:720px;margin:0 auto}
.sdq .sdq-top-row{display:flex;align-items:center;gap:12px}
.sdq .sdq-top-row img{width:40px;height:40px;border-radius:50%;flex:none;margin:0;max-width:none}
.sdq .sdq-top-title{font-family:var(--sdq-serif);font-size:17px;color:var(--forest);line-height:1.2}
.sdq .sdq-top-step{font-size:13px;color:var(--muted)}
.sdq .sdq-river{display:block;width:100%;height:26px;margin-top:4px}
.sdq .sdq-river path{fill:none;stroke-linecap:round}
.sdq .sdq-river .bed{stroke:var(--river-bg);stroke-width:6}
.sdq .sdq-river .flow{stroke:var(--river);stroke-width:6;transition:stroke-dashoffset .6s ease}
@media (prefers-reduced-motion:reduce){.sdq .sdq-river .flow{transition:none}}

.sdq .sdq-main{max-width:720px;margin:0 auto;padding:28px 20px 48px}
.sdq .sdq-step{display:none}
.sdq .sdq-step.on{display:block}
.sdq .sdq-step h2{font-size:clamp(28px,6vw,38px);margin-bottom:8px}
.sdq .sdq-lede{color:var(--muted);margin:0 0 24px;max-width:60ch}

.sdq .sdq-welcome{text-align:center;padding-top:8px}
.sdq .sdq-welcome img{width:150px;height:150px;border-radius:50%;margin:0 auto 18px;display:block}
.sdq .sdq-welcome h1{font-size:clamp(34px,8vw,48px);line-height:1.1;margin-bottom:12px}
.sdq .sdq-welcome p{max-width:52ch;margin:0 auto 14px}
.sdq .sdq-welcome .sdq-small{font-size:14px;color:var(--muted)}

.sdq .sdq-q{padding:20px 0;border:0;border-top:1px solid var(--line);margin:0;min-width:0}
.sdq .sdq-q:first-of-type{border-top:0}
.sdq .sdq-q > label,.sdq .sdq-ql{display:block;font-weight:500;margin:0 0 4px;padding:0;font-size:16px;color:var(--ink);float:none;width:auto}
.sdq fieldset.sdq-q{border-top:0;box-shadow:inset 0 1px 0 var(--line)}
.sdq fieldset.sdq-q:first-of-type{box-shadow:none}
.sdq legend.sdq-ql{float:left;width:100%;margin-bottom:10px}
.sdq fieldset .sdq-hint,.sdq fieldset .sdq-chips,.sdq fieldset .sdq-other{clear:both}
.sdq .sdq-hint{display:block;font-size:14px;color:var(--muted);margin-bottom:10px}
.sdq .sdq-sub{font-size:22px;color:var(--timber);margin:28px 0 0;font-style:italic}

.sdq input[type=text],.sdq input[type=email],.sdq input[type=tel],.sdq textarea{
  width:100%;max-width:none;height:auto;margin:0;background:var(--paper);color:var(--ink);
  border:1px solid var(--line);border-radius:6px;padding:12px 14px;font-size:16px;line-height:1.4;box-shadow:none}
.sdq textarea{min-height:92px;resize:vertical}
.sdq input:focus,.sdq textarea:focus{border-color:var(--timber);outline:none;box-shadow:0 0 0 3px color-mix(in srgb,var(--timber) 25%,transparent)}
.sdq .sdq-fields{display:grid;gap:14px}
.sdq .sdq-fields label{display:block;font-size:14px;font-weight:500;margin-bottom:5px}
@media(min-width:600px){.sdq .sdq-fields.two{grid-template-columns:1fr 1fr}}

.sdq .sdq-chips{display:flex;flex-wrap:wrap;gap:8px}
.sdq .sdq-chip{position:relative;display:inline-block;margin:0}
.sdq .sdq-chip input{position:absolute;opacity:0;inset:0;margin:0;width:100%;height:100%;cursor:pointer}
.sdq .sdq-chip span{display:inline-block;padding:9px 14px;border-radius:999px;background:var(--chip);color:var(--ink);border:1px solid transparent;font-size:15px;line-height:1.3;cursor:pointer;user-select:none;transition:background .15s,color .15s}
.sdq .sdq-chip input:checked + span{background:var(--chip-on);color:var(--chip-on-ink)}
.sdq .sdq-chip input:focus-visible + span{outline:3px solid var(--timber);outline-offset:2px}
.sdq .sdq-other{margin-top:10px;display:none}
.sdq .sdq-other.on{display:block}

/* Bottom nav: sticks to the bottom of the screen while the form is in view */
.sdq .sdq-nav{position:sticky;bottom:0;z-index:50;background:var(--paper);border-top:1px solid var(--line);
  padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));border-radius:0 0 8px 8px}
.sdq .sdq-nav-in{max-width:720px;margin:0 auto;display:flex;gap:12px;align-items:center}
.sdq .sdq-saved{font-size:13px;color:var(--muted);flex:1}

.sdq .sdq-btn{border:0;border-radius:6px;padding:13px 22px;font-weight:600;cursor:pointer;font-size:16px;line-height:1.2;
  text-transform:none;letter-spacing:normal;box-shadow:none;text-decoration:none;text-align:center;min-height:0;height:auto;width:auto;margin:0}
.sdq .sdq-btn.primary{background:var(--bark);color:#fff}
.sdq .sdq-btn.primary:hover{filter:brightness(1.08);background:var(--bark);color:#fff}
.sdq .sdq-btn.ghost{background:transparent;color:var(--ink);border:1px solid var(--line)}
.sdq .sdq-btn.ghost:hover{background:var(--chip);color:var(--ink)}
.sdq .sdq-btn[disabled]{opacity:.6;cursor:wait}

/* Review */
.sdq .sdq-review-actions{display:grid;gap:12px;margin:8px 0 16px}
@media(min-width:600px){.sdq .sdq-review-actions{grid-template-columns:1fr 1fr 1fr}}
.sdq .sdq-review-actions .sdq-btn{width:100%}
.sdq .sdq-summary{background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:20px;font-size:15px;margin-top:20px}
.sdq .sdq-summary h3{font-size:20px;margin:18px 0 8px}
.sdq .sdq-summary h3:first-child{margin-top:0}
.sdq .sdq-summary dl{margin:0}
.sdq .sdq-summary dt{color:var(--muted);font-size:13px;margin-top:10px;font-weight:400}
.sdq .sdq-summary dd{margin:2px 0 0;white-space:pre-wrap}
.sdq .sdq-empty{color:var(--muted);font-style:italic}
.sdq .sdq-sent{background:var(--chip);border-radius:6px;padding:16px 18px;margin:0 0 8px}
.sdq .sdq-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.sdq .sdq-toast{position:fixed;left:50%;bottom:calc(90px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--forest);color:var(--fog);padding:10px 18px;border-radius:6px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:100000}
.sdq .sdq-toast.on{opacity:1}
.sdq .sdq-reset{background:none;border:0;color:var(--muted);text-decoration:underline;cursor:pointer;font-size:14px;padding:0;margin-top:22px;box-shadow:none;text-transform:none}

/* Print only the answers, not the rest of the website */
@media print{
  body.sdq-page *{visibility:hidden!important}
  body.sdq-page .sdq-print-area,body.sdq-page .sdq-print-area *{visibility:visible!important}
  body.sdq-page .sdq-print-area{position:absolute;left:0;top:0;width:100%;padding:0}
  body.sdq-page .sdq-print-area .sdq-review-actions,body.sdq-page .sdq-print-area .sdq-reset,body.sdq-page .sdq-print-area .sdq-hint{display:none!important}
  .sdq .sdq-summary{border:0;padding:0}
  .sdq,.sdq *{color:#000!important;background:#fff!important}
}
