/* Intake form. Ported from the WordPress prototype (intake-widget-170.html, v1.7.0) with only these changes:
   fonts are self-hosted, phone side padding is 16px, and a few portal additions at the end. */
.lv-intake {
  --teal:#0A4D4A; --teal-d:#073835; --slab:#124844;
  --ink:#1a1f1e; --muted:#5c6b69; --line:#e4eceb;
  --bg:#f6f8f7; --card:#fff; --ok:#0A4D4A; --warn:#b45309; --bad:#9b2c2c;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  max-width: 1100px;
  margin: 0 auto;
}
.lv-intake *, .lv-intake *::before, .lv-intake *::after { box-sizing: border-box; }
.lv-intake header.hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 12px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.lv-intake .kicker {
  margin: 0 0 6px;
  font-family: Syne, sans-serif;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
}
.lv-intake h1 {
  margin: 0;
  font-family: Epilogue, "Helvetica Neue", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--teal-d);
}
.lv-intake .sub { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.lv-intake .overall { margin-top: 12px; }
.lv-intake .bar { height: 4px; background: var(--line); overflow: hidden; }
.lv-intake .bar > i { display: block; height: 100%; width: 0; background: var(--slab); transition: width .25s; }
.lv-intake .overall-meta {
  display: flex; justify-content: space-between;
  font-size: .75rem; color: var(--muted); margin-top: 6px; letter-spacing: .04em;
}
.lv-intake nav.tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 10px 12px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 64px; z-index: 19;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.lv-intake nav.tabs::-webkit-scrollbar { display: none; }
.lv-intake nav.tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal-d);
  border-radius: 0;
  padding: 7px 12px;
  font-family: Syne, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lv-intake nav.tabs button.on { background: var(--slab); color: #fff; border-color: var(--slab); }
.lv-intake nav.tabs button .dot {
  display: inline-block; width: 6px; height: 6px;
  background: #c5d4cf; margin-right: 6px; vertical-align: middle;
}
.lv-intake nav.tabs button.done .dot { background: #5f8a82; }
.lv-intake nav.tabs button.on .dot { background: #fff; }
.lv-intake main { max-width: 720px; margin: 0 auto; padding: 18px 18px 110px; }
.lv-intake .panel { display: none; }
.lv-intake .panel.on { display: block; }
.lv-intake .card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 20px 24px;
  margin-bottom: 14px;
}
.lv-intake .card h2 {
  margin: 0 0 6px;
  font-family: Epilogue, "Helvetica Neue", sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--teal-d);
}
.lv-intake h3.sec {
  margin: 28px 0 10px;
  font-family: Epilogue, "Helvetica Neue", sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: var(--teal-d);
}
.lv-intake h3.sec:first-of-type { margin-top: 18px; }
.lv-intake .hint { color: var(--muted); font-size: .84rem; margin: 0 0 18px; }
.lv-intake .tabbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lv-intake .tabbar .bar { flex: 1; }
.lv-intake .pct { font-size: .75rem; color: var(--teal); font-weight: 600; min-width: 38px; text-align: right; }
.lv-intake label.f, .lv-intake .f {
  display: block; font-size: .78rem; font-weight: 600; color: var(--teal-d); margin: 20px 0 8px;
}
.lv-intake input[type=text],
.lv-intake input[type=email],
.lv-intake input[type=tel],
.lv-intake input[type=number],
.lv-intake input[type=date],
.lv-intake input[type=time],
.lv-intake select,
.lv-intake textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
  font: 15px "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--ink);
}
.lv-intake input:focus,
.lv-intake select:focus,
.lv-intake textarea:focus { outline: none; border-color: var(--teal); }
.lv-intake textarea { min-height: 64px; resize: vertical; }
.lv-intake .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.lv-intake .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.lv-intake .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-intake .chips label,
.lv-intake .choice {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 600;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}
.lv-intake .chips input { display: none; }
.lv-intake .chips input:checked + span,
.lv-intake .chips label:has(input:checked) {
  background: var(--slab); border-color: var(--slab); color: #fff;
}
.lv-intake .checks label {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: .84rem; font-weight: 500; margin: 6px 0; color: var(--ink);
}
.lv-intake .checks input { margin-top: 3px; }
.lv-intake .unit { display: inline-flex; gap: 0; margin-left: 6px; vertical-align: middle; }
.lv-intake .unit button {
  border: 1px solid var(--line); background: #fff; padding: 3px 8px;
  font-size: .7rem; font-weight: 600; border-radius: 0; color: var(--teal-d);
}
.lv-intake .unit button.on { background: var(--slab); color: #fff; border-color: var(--slab); }
.lv-intake .combo { position: relative; }
.lv-intake .combo input[type=text] { width: 100%; }
.lv-intake .suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 8;
  max-height: 220px; overflow: auto; background: #fff;
  border: 1px solid var(--line); margin-top: 4px;
  box-shadow: 0 8px 24px rgba(7,56,53,.1);
}
.lv-intake .suggest button {
  display: block; width: 100%; text-align: left; border: 0; background: #fff;
  padding: 8px 10px; font-size: .84rem;
}
.lv-intake .suggest button:hover,
.lv-intake .suggest button.on { background: #e8eeec; color: var(--teal); }
.lv-intake .lab { padding: 12px 0; border-bottom: 1px solid var(--line); }
.lv-intake .lab:last-child { border-bottom: 0; }
.lv-intake .labname { font-size: .88rem; font-weight: 650; margin: 0 0 8px; color: var(--teal-d); }
.lv-intake .labrow { display: grid; grid-template-columns: 1fr 96px 132px; gap: 8px; align-items: end; }
.lv-intake .labrow .name { font-size: .72rem; font-weight: 650; color: var(--muted); padding-bottom: 4px; }
.lv-intake .labrow > div,
.lv-intake .datecell { min-width: 0; max-width: 100%; }
.lv-intake input[type=date] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; max-width: 100%; min-width: 0;
  height: 44px; line-height: 1.2; text-align: left;
}
.lv-intake input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.lv-intake .card, .lv-intake .lab { overflow-x: hidden; }
.lv-intake .na { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); margin: 2px 0 8px; }
.lv-intake .foot {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  display: flex; gap: 8px; z-index: 30;
}
.lv-intake .foot button {
  flex: 1; border: 1px solid var(--line); border-radius: 0; padding: 12px;
  font-family: Syne, sans-serif; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 500;
}
.lv-intake .btn-sec { background: #fff; color: var(--teal-d); border-color: var(--teal); }
.lv-intake .btn-pri { background: var(--slab); color: #fff; border-color: var(--slab); }
.lv-intake .tiny { font-size: .72rem; color: var(--muted); }
.lv-intake .warn { display: none; color: var(--bad); font-size: .75rem; margin: 6px 0 0; font-weight: 650; }
.lv-intake .warn.on { display: block; }
.lv-intake input.bad, .lv-intake select.bad { border-color: var(--bad); background: #fff8f8; }
.lv-intake .unitplain {
  border: 1px solid var(--line); padding: 11px 12px; font-size: .84rem;
  color: var(--muted); background: #f6f8f7;
}
.lv-intake .bprow { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: end; }
.lv-intake .bplab { font-size: .88rem; font-weight: 650; color: var(--teal-d); padding-bottom: 6px; }
.lv-intake .bpslash { font-size: 1.25rem; font-weight: 650; padding-bottom: 8px; color: var(--teal-d); }
.lv-intake .none6 {
  display: block; width: 100%; margin: 8px 0 18px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 14px 16px; font-size: .95rem; font-weight: 650;
}
.lv-intake .none6.on { background: var(--slab); color: #fff; border-color: var(--slab); }
.lv-intake .upload {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px dashed var(--teal); padding: 10px 14px;
  font-size: .84rem; font-weight: 600; color: var(--teal); background: #f6f8f7; cursor: pointer;
}
.lv-intake .upload input { position: absolute; opacity: 0; width: 0; height: 0; }
.lv-intake .badge {
  display: inline-block; font-size: .62rem; font-weight: 700;
  background: #e8eeec; color: var(--teal); padding: 2px 6px; margin-left: 4px;
  letter-spacing: .06em; text-transform: uppercase;
}
@media (max-width: 720px) {
  .lv-intake .bprow { grid-template-columns: 1fr auto 1fr; }
  .lv-intake header.hero { position: static; padding: 16px 16px 14px; }
  .lv-intake nav.tabs { top: 0; padding: 10px 16px 12px; }
  .lv-intake main { padding: 18px 16px 110px; }
  .lv-intake h1 { font-size: 1.18rem; }
  .lv-intake .sub { font-size: .74rem; }
  .lv-intake .card { padding: 16px 14px 20px; }
  .lv-intake .row, .lv-intake .row3 { grid-template-columns: 1fr; gap: 12px; }
  .lv-intake .labrow { grid-template-columns: minmax(0,1fr) minmax(72px,34%); }
  .lv-intake .labrow .datecell { grid-column: 1 / -1; max-width: 100%; }
  .lv-intake input[type=text],
  .lv-intake input[type=email],
  .lv-intake input[type=tel],
  .lv-intake input[type=number],
  .lv-intake input[type=time],
  .lv-intake select,
  .lv-intake textarea { font-size: 16px; padding: 11px 12px; }
  .lv-intake input[type=date] { font-size: 16px; padding: 10px 12px; max-width: 100%; }
}
/* Consent step v2: two big, easy-to-tap checkbox rows; the whole row is the label. Square corners. */
.lv-intake .lvc-item { margin: 0 0 20px; }
.lv-intake .lvc-check {
  display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line); border-radius: 0; background: #fff;
  padding: 16px; min-height: 56px; font-size: .95rem; line-height: 1.55; color: var(--ink);
  -webkit-tap-highlight-color: rgba(18,72,68,.08);
}
.lv-intake .lvc-check:hover { border-color: #b9ccc8; }
.lv-intake .lvc-check:has(input:checked) { border-color: var(--slab); background: #f2f7f6; box-shadow: inset 3px 0 0 var(--slab); }
.lv-intake .lvc-check:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.lv-intake .lvc-check input {
  -webkit-appearance: none; appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 0;
  border: 2px solid var(--slab); border-radius: 0; background: #fff; display: grid; place-content: center; cursor: pointer;
}
.lv-intake .lvc-check input::after {
  content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2.5px 2.5px;
  transform: translateY(-2px) rotate(-45deg); opacity: 0;
}
.lv-intake .lvc-check input:checked { background: var(--slab); }
.lv-intake .lvc-check input:checked::after { opacity: 1; }
.lv-intake .lvc-check a { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }
.lv-intake .lvc-full { border: 1px solid var(--line); border-top: 0; background: #fafcfb; }
.lv-intake .lvc-full summary {
  cursor: pointer; padding: 14px 16px; font-size: .88rem; font-weight: 600; color: var(--teal); list-style: none;
}
.lv-intake .lvc-full summary::-webkit-details-marker { display: none; }
.lv-intake .lvc-full summary::before { content: "+"; display: inline-block; width: 18px; font-weight: 700; }
.lv-intake .lvc-full[open] summary::before { content: "\2212"; }
.lv-intake .lvc-body { font-size: .9rem; line-height: 1.6; color: var(--ink); padding: 0 16px 16px; }
.lv-intake .lvc-body h4 { margin: 18px 0 6px; font-size: .9rem; font-weight: 650; color: var(--teal-d); }
.lv-intake .lvc-body h4:first-child { margin-top: 4px; }
.lv-intake .lvc-body p { margin: 0 0 12px; }
.lv-intake .lvc-body ul { margin: 0 0 12px 20px; padding: 0; }
.lv-intake .lvc-body li { margin: 0 0 6px; }
.lv-intake .lvc-note { font-size: .84rem; line-height: 1.6; color: var(--muted); margin: 10px 0 0; }
.lv-intake .lvc-sign { font-size: .88rem; line-height: 1.6; margin: 24px 0 12px; color: var(--ink); }
.lv-intake .lvc-after { font-size: .8rem; line-height: 1.6; margin: 0; color: var(--muted); }
.lv-intake .lvc-dl {
  display: block; margin-top: 20px; border: 1px solid var(--teal); border-radius: 0; padding: 12px 16px; background: #fff;
  color: var(--teal-d); font-family: Syne, sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
.lv-intake .lvc-dl:disabled { opacity: .6; cursor: default; }
@media (max-width: 720px) {
  .lv-intake .lvc-check { padding: 16px 14px; font-size: .92rem; }
  .lv-intake .lvc-dl { width: 100%; }
}
.lv-intake .lvc-body p, .lv-intake .card p { line-height: 1.55; }
.lv-intake .savestate { font-size: .75rem; color: var(--muted); margin-top: 6px; min-height: 1em; }
.lv-intake .gate { background:#fff; border:1px solid var(--line); padding:22px 20px; margin:18px 0; }
.lv-intake .gate h2 { margin:0 0 8px; font-family: Epilogue, "Helvetica Neue", sans-serif; font-weight:500; font-size:1.15rem; color: var(--teal-d); }
.lv-intake .gate p { margin: 0 0 14px; color: var(--muted); }
.lv-intake .gate a { display:inline-block; padding:12px 18px; background: var(--slab); color:#fff; text-decoration:none; font-family: Syne, sans-serif; font-size:12px; letter-spacing:.1em; text-transform:uppercase; }
.lv-intake .uploadsoon { border:1px dashed var(--line); background:#f6f8f7; padding:12px 14px; font-size:.84rem; color: var(--muted); margin: 6px 0 18px; }
.lv-intake-wrap { background: var(--bg, #f6f8f7); }
.lv-intake #zipHelp { margin: 6px 0 0; }

/* v173: test opt-outs (VO₂ max, CAC, DEXA) and the chest-pain note. Square corners, teal. */
.lv-intake .lvo { margin-top: 10px; border-top: 1px dashed #c5d4cf; padding-top: 10px; }
.lv-intake .lvo-box { font-weight: 600; font-size: .82rem; color: var(--teal-d); }
.lv-intake input[type=checkbox] { accent-color: var(--teal); }
.lv-intake .lvo-more { margin: 10px 0 2px; padding: 12px 14px; background: #f3f8f6; border-left: 3px solid var(--teal); }
.lv-intake .lvo-rec { margin: 0 0 10px; font-size: .86rem; line-height: 1.5; color: var(--teal-d); }
.lv-intake .lvo-rec strong { color: var(--teal); }
.lv-intake .lvo-why { margin-bottom: 4px; }
.lv-intake .lvo-more .tiny { margin: 8px 0 0; }
.lv-intake .lab.lvo-off > .labrow, .lv-intake .lab.lvo-off > .na:not(.lvo-box), .lv-intake .lab.lvo-off > .tiny { opacity: .45; }
.lv-intake .lab.lvo-off .labname::after { content: " · opted out"; font-weight: 400; color: var(--warn); }
.lv-intake .lv-urgent { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--bad); background: #fbf0f0; color: var(--bad); font-weight: 600; font-size: .86rem; }
