/* =====================================================================
   BCV PATIENT FLOW — STYLESHEET
   ---------------------------------------------------------------------
   Refined healthcare aesthetic. Calm, warm, trustworthy.
   Two visual modes inside one stylesheet:
     - Qualifier panels: large tappable option cards, single big question
     - Intake panels: traditional form fields
   ---------------------------------------------------------------------
   No third-party fonts or assets. Mobile-first.
   ===================================================================== */

:root {
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F5F1E8;
  --ink: #1A1F1F;
  --ink-2: #4A5252;
  --ink-3: #7A8181;
  --line: #E4DDD0;
  --line-strong: #C9C0AE;

  --primary: #0A3D40;
  --primary-2: #1C6E72;
  --primary-tint: #E5EEEE;

  --accent: #C8923D;
  --accent-2: #B07D2E;

  --success: #2D6A4F;
  --success-tint: #E3F1EA;
  --error: #B23A48;
  --error-tint: #F9E6E8;
  --warning: #B07D2E;
  --warning-tint: #F6ECD7;
  --info: #2C5F8D;
  --info-tint: #DEE9F3;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: ui-serif, Georgia, "Iowan Old Style", "Apple Garamond", Cambria, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px;  --s-8: 64px;

  --r-sm: 6px; --r: 10px; --r-lg: 16px; --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(10, 61, 64, 0.04), 0 1px 3px rgba(10, 61, 64, 0.06);
  --shadow:    0 4px 12px rgba(10, 61, 64, 0.06), 0 2px 4px rgba(10, 61, 64, 0.04);
  --shadow-lg: 0 24px 48px rgba(10, 61, 64, 0.10), 0 8px 16px rgba(10, 61, 64, 0.06);

  --transition: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(at 20% 0%, rgba(28, 110, 114, 0.05) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(200, 146, 61, 0.04) 0px, transparent 50%);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 {
  font-family: var(--font-serif); font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
  margin: 0; line-height: 1.2;
}
h1 { font-size: clamp(28px, 4vw, 38px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 var(--s-3); }
.muted { color: var(--ink-2); }
.muted.small { font-size: 13px; color: var(--ink-3); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: static; width: auto; height: auto;
  display: inline-block; margin: var(--s-3); padding: var(--s-3) var(--s-4);
  background: var(--primary); color: #fff; text-decoration: none; border-radius: var(--r);
}

/* Header --------------------------------------------------------------- */
.site-header {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--primary); }
.brand-logo { height: 36px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo { height: 30px; } }
.security-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--success); background: var(--success-tint);
  padding: 6px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Container ------------------------------------------------------------ */
.container {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: var(--s-6) var(--s-5) var(--s-7);
}

/* Progress ------------------------------------------------------------- */
.progress { margin-bottom: var(--s-5); }
.progress-bar {
  width: 100%; height: 4px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  border-radius: 99px;
  width: 0%;
  transition: width 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.progress-text {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: var(--s-2) 0 0;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.progress-phase {
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.12em;
}
.progress-step { font-variant-numeric: tabular-nums; }
.progress[hidden] { display: none; }

/* Step panels ---------------------------------------------------------- */
.step-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  animation: panelIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.step-panel[hidden] { display: none; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-header { margin-bottom: var(--s-6); }
.panel-header.center { text-align: center; }
.eyebrow {
  text-transform: uppercase;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent-2); font-weight: 700;
  margin-bottom: var(--s-2);
}
.lede {
  font-size: 16px; color: var(--ink-2);
  margin-top: var(--s-3); margin-bottom: 0;
}
.question-heading {
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.25;
}

@media (max-width: 540px) {
  .step-panel { padding: var(--s-5) var(--s-4); border-radius: var(--r); }
  .container  { padding: var(--s-4) var(--s-4) var(--s-7); }
}

/* Welcome info list ---------------------------------------------------- */
.info-list { display: grid; gap: var(--s-3); margin: var(--s-5) 0; }
.info-item {
  display: flex; gap: var(--s-4);
  padding: var(--s-4);
  background: var(--surface-2);
  border-radius: var(--r);
  align-items: flex-start;
}
.info-item h3 { margin-bottom: 2px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; }
.info-item p  { font-size: 14px; color: var(--ink-2); margin: 0; }
.info-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0;
}

.reassure {
  display: flex; gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--primary-tint);
  border-left: 3px solid var(--primary-2);
  border-radius: var(--r-sm);
  align-items: flex-start;
  margin: var(--s-5) 0;
}
.reassure svg { color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.reassure p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ============= OPTION CARDS (qualifier) ============================== */
.option-cards {
  display: grid; gap: 10px;
  margin: var(--s-5) 0;
}
.option-card {
  display: flex; align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 2px solid var(--line);
  background: var(--surface);
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.option-card:hover {
  border-color: var(--primary-2);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option-card-mark {
  width: 22px; height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 50%; /* radio default */
  flex-shrink: 0;
  margin-top: 2px;
  display: grid; place-items: center;
  transition: all var(--transition);
  background: var(--surface);
}
.option-card-check .option-card-mark {
  border-radius: 5px; /* checkbox style */
}
.option-card-content { display: flex; flex-direction: column; gap: 2px; }
.option-card-title {
  font-weight: 600; font-size: 16px; color: var(--ink);
  line-height: 1.3;
}
.option-card-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* Selected (radio) */
.option-card:has(input[type="radio"]:checked) {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.option-card:has(input[type="radio"]:checked) .option-card-mark {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 4px var(--surface);
}

/* Selected (checkbox) */
.option-card-check:has(input[type="checkbox"]:checked) {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.option-card-check:has(input[type="checkbox"]:checked) .option-card-mark {
  border-color: var(--primary);
  background: var(--primary);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

/* Keyboard focus */
.option-card:has(input:focus-visible) {
  outline: 3px solid rgba(10, 61, 64, 0.2);
  outline-offset: 2px;
}

/* "None of these" / "Not sure" — visually grouped at the end */
.option-card-divider {
  margin-top: var(--s-2);
  border-top: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  padding-top: calc(var(--s-4) + var(--s-2));
  position: relative;
}
.option-card-divider::before {
  content: "Or";
  position: absolute;
  top: -10px;
  left: var(--s-4);
  background: var(--surface);
  padding: 0 var(--s-2);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============= FIELDS (intake) ======================================== */
.field-group {
  border: none; margin: 0 0 var(--s-5); padding: 0;
}
.field-group legend {
  font-family: var(--font-serif);
  font-size: 18px; color: var(--ink);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.row .field { margin-bottom: 0; }
.row .field.flex-2 { grid-column: span 2; }
@media (min-width: 720px) {
  .row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .row .field.flex-2 { grid-column: span 2; }
}
@media (max-width: 540px) {
  .row { grid-template-columns: 1fr; }
  .row .field.flex-2 { grid-column: auto; }
}

.field { margin-bottom: var(--s-3); }
.field label {
  display: block;
  font-size: 14px; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.req { color: var(--error); margin-left: 2px; }
.optional { color: var(--ink-3); font-weight: 400; font-size: 13px; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  font-family: inherit; font-size: 16px;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%234A5252' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}
input[readonly] { background: var(--surface-2); color: var(--ink-2); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 61, 64, 0.12);
}
input::placeholder { color: var(--ink-3); }
input.invalid, select.invalid {
  border-color: var(--error);
  background: var(--error-tint);
}
.field-error {
  display: none; color: var(--error);
  font-size: 13px; margin-top: 4px;
}
.field.has-error .field-error { display: block; }

/* Standard checkbox (intake) ------------------------------------------ */
.field-checkbox {
  display: flex; gap: var(--s-3); align-items: flex-start;
  background: var(--surface-2);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.field-checkbox input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0; margin-top: 1px;
  transition: all var(--transition);
  position: relative;
}
.field-checkbox input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.field-checkbox input[type="checkbox"]:checked::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='white' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}
.field-checkbox input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 61, 64, 0.18);
}
.field-checkbox label {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.5;
}

/* File upload (intake) ------------------------------------------------ */
.upload-block {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--surface-2);
  border-radius: var(--r);
  border: 1px dashed var(--line-strong);
}
.upload-block h4 { margin-bottom: 4px; }
.upload-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-3); margin-top: var(--s-4);
}
@media (max-width: 480px) {
  .upload-row { grid-template-columns: 1fr; }
}
.upload-target { position: relative; }
.upload-label { display: block; cursor: pointer; margin: 0 !important; }
.upload-preview {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 13px; font-weight: 500;
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
  position: relative;
}
.upload-preview:hover { border-color: var(--primary-2); background: #fff; }
.upload-preview svg { color: var(--ink-3); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-target.has-file .upload-preview {
  border-style: solid; border-color: var(--success); padding: 0;
}
.upload-target.has-file .upload-preview svg,
.upload-target.has-file .upload-preview span { display: none; }
.upload-clear {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: white; border: none;
  font-size: 12px; padding: 4px 10px;
  border-radius: 99px; cursor: pointer; font-weight: 500;
}
.upload-clear:hover { background: rgba(0, 0, 0, 0.85); }

/* Consent (intake) ---------------------------------------------------- */
.consent-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-4);
}
.consent-card h3 {
  font-family: var(--font-serif);
  font-size: 18px; margin-bottom: var(--s-3);
}
.consent-card p { font-size: 14px; color: var(--ink-2); }
.consent-details {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
  background: var(--surface-2);
}
.consent-details summary {
  cursor: pointer; font-weight: 600; font-size: 14px;
  color: var(--primary-2); list-style: none;
}
.consent-details summary::-webkit-details-marker { display: none; }
.consent-details summary::after { content: " ▾"; color: var(--ink-3); font-size: 12px; }
.consent-details[open] summary::after { content: " ▴"; }
.consent-body {
  font-size: 14px; color: var(--ink-2);
  margin-top: var(--s-3); padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  max-height: 320px; overflow-y: auto;
}
.consent-body ul { padding-left: 20px; }

.signature-group {
  background: var(--primary-tint);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r);
}
.signature-group legend { color: var(--primary); border-bottom-color: var(--primary-2); }
#signatureName {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
}

/* Buttons ------------------------------------------------------------- */
.step-actions {
  display: flex; gap: var(--s-3);
  justify-content: flex-end;
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.btn {
  font-family: inherit;
  font-size: 16px; font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
}
.btn-block { width: 100%; }
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-2); border-color: var(--primary-2);
  transform: translateY(-1px); box-shadow: var(--shadow);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--ink-2);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important;
}
@media (max-width: 480px) {
  .step-actions { flex-direction: column-reverse; }
  .step-actions .btn { width: 100%; }
}

/* Review -------------------------------------------------------------- */
.review-content { display: grid; gap: var(--s-4); }
.review-section {
  background: var(--surface-2);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
}
.review-section header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--s-2);
}
.review-section h3 { font-family: var(--font-serif); font-size: 17px; margin: 0; }
.review-section .edit-link {
  font-size: 13px; color: var(--primary-2); text-decoration: none; font-weight: 600;
  background: none; border: none; cursor: pointer;
}
.review-section .edit-link:hover { text-decoration: underline; }
.review-list { display: grid; gap: 8px; font-size: 14px; }
.review-list dt { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.review-list dd { margin: 0 0 var(--s-2); color: var(--ink); font-weight: 500; }
.review-cards { display: flex; gap: var(--s-3); margin-top: var(--s-3); }
.review-cards img { width: 50%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }

/* Confirmation -------------------------------------------------------- */
.success-mark {
  width: 80px; height: 80px;
  margin: 0 auto var(--s-4);
  color: var(--success);
  background: var(--success-tint);
  border-radius: 50%;
  display: grid; place-items: center;
  animation: pulse 1.5s ease-out;
}
@keyframes pulse {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
.confirm-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
  margin: var(--s-5) 0;
  padding: var(--s-4);
  background: var(--surface-2);
  border-radius: var(--r);
}
.confirm-meta div { display: flex; flex-direction: column; gap: 4px; }
.confirm-meta span { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.confirm-meta strong { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.next-steps { margin-bottom: var(--s-5); }
.next-steps h3 { font-family: var(--font-serif); margin-bottom: var(--s-3); font-size: 18px; }
.next-steps ol { padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.next-steps li { margin-bottom: var(--s-3); }

.contact-card {
  background: var(--primary-tint);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
}
.contact-card h4 { font-family: var(--font-serif); font-size: 16px; margin-bottom: var(--s-2); }
.contact-card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.contact-card a { color: var(--primary); font-weight: 600; }

/* Terminal/result screens --------------------------------------------- */
.contact-card-large {
  text-align: center;
  padding: var(--s-6);
  margin: var(--s-5) 0;
}
.contact-card-large h4 {
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); font-family: var(--font-sans);
  margin-bottom: var(--s-3);
}
.phone-number {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.1;
  margin: 0 0 var(--s-2);
  letter-spacing: -0.01em;
}
.phone-number a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition);
}
.phone-number a:hover {
  border-bottom-color: var(--accent);
}

.result-mark {
  width: 80px; height: 80px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  display: grid; place-items: center;
  animation: pulse 1.5s ease-out;
}
.result-mark-talk {
  color: var(--info);
  background: var(--info-tint);
}
.result-mark-info {
  color: var(--warning);
  background: var(--warning-tint);
}

.check-list {
  list-style: none;
  padding: 0; margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: var(--s-3);
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-tint);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8l3 3 5-6' stroke='%230A3D40' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* Footer -------------------------------------------------------------- */
.site-footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: var(--s-5) var(--s-4);
  font-size: 13px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0 0 6px; }
.footer-links a { color: var(--ink-2); margin: 0 4px; text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }

/* Modal --------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 31, 31, 0.55);
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  max-width: 440px; width: calc(100% - 32px);
  box-shadow: var(--shadow-lg);
  animation: modalIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-card h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: var(--s-3); }
.modal-card p { color: var(--ink-2); margin-bottom: var(--s-4); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print --------------------------------------------------------------- */
@media print {
  body::after {
    content: "For privacy, this form is not available in print. Please complete it on screen.";
    display: block; font-size: 16px; padding: 24px; text-align: center;
  }
  .container, .site-header, .site-footer, .modal { display: none !important; }
}

/* ============================================================
 * Phase 1 capture — "BCV could be a fit" emphasis (v2.6.0)
 * ============================================================ */

.eyebrow-positive {
  color: var(--success, #2a7a4a);
  font-size: 13px;
}

.hero-title {
  font-size: clamp(26px, 4.4vw, 36px);
  line-height: 1.2;
  margin: var(--s-2) 0 0;
  letter-spacing: -0.01em;
}

.benefits-card {
  background: linear-gradient(180deg, rgba(42, 122, 74, 0.06), rgba(42, 122, 74, 0.02));
  border: 1px solid rgba(42, 122, 74, 0.18);
  border-radius: 12px;
  padding: var(--s-5) var(--s-5);
  margin: var(--s-6) 0;
}

.benefits-intro {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0 0 var(--s-4);
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.benefits-list li strong {
  color: var(--ink-1);
  font-weight: 600;
}

.benefit-icon {
  flex-shrink: 0;
  color: var(--success, #2a7a4a);
  margin-top: 2px;
}

.form-prompt-card {
  margin: var(--s-6) 0 var(--s-4);
}

.form-prompt-card h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 var(--s-2);
}

.form-prompt-card p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* Fieldset with no visible legend (used when section is labeled above) */
.field-group-bare {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--s-5);
  margin: 0 0 var(--s-5);
}
.field-group-bare > legend { display: none; }

/* Emphasized fieldset for billing-critical questions (Phase 2 coverage situation) */
.field-group-emphasis {
  background: linear-gradient(180deg, rgba(200, 146, 61, 0.04), rgba(200, 146, 61, 0.01));
  border: 1px solid rgba(200, 146, 61, 0.3);
}
.field-group-emphasis > legend {
  color: var(--accent-2);
  font-weight: 700;
}
.field-help {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 var(--s-3);
  line-height: 1.5;
}

/* ============================================================
 * Phase 1 confirm CTA + Phase 2 verify + Phase 2 talk-to-doctor (v3.0)
 * ============================================================ */

/* CTA cards (used on phase1-confirm + intake-confirm) */
.cta-card {
  background: #f6f7f9;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 22px 24px;
  margin: var(--s-5) 0;
}
.cta-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink-1);
}
.cta-card p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 12px;
  line-height: 1.55;
}
.cta-card-gold {
  background: linear-gradient(180deg, rgba(200, 146, 61, 0.08), rgba(200, 146, 61, 0.02));
  border-color: rgba(200, 146, 61, 0.35);
}
.cta-card-gold h3 {
  color: #8a5f1f;
}
.cta-actions {
  margin-top: var(--s-3);
}
.cta-actions-row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* Link-display block on Phase 2 final */
.link-display {
  background: #ffffff;
  border: 1px dashed rgba(200, 146, 61, 0.5);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.link-display .muted.small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.link-display code {
  display: block;
  font-family: Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ink-1);
  word-break: break-all;
}

/* Info / resource cards (talk-to-doctor screen) */
.info-card,
.resource-card {
  background: #ffffff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 22px 24px;
  margin: var(--s-5) 0;
}
.info-card h3,
.resource-card h3 {
  font-size: 18px;
  margin: 0 0 var(--s-2);
  color: var(--ink-1);
}
.info-card p,
.resource-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 var(--s-3);
}
.info-card p:last-child,
.resource-card p:last-child {
  margin-bottom: 0;
}
.qa-list,
.step-list {
  padding-left: 22px;
  margin: var(--s-3) 0 0;
}
.qa-list li,
.step-list li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: var(--s-3);
}
.qa-list li strong,
.step-list li strong {
  color: var(--ink-1);
}
.phone-line {
  font-size: 15px;
  color: var(--ink-1);
  margin-top: var(--s-3);
}

/* Phase 2 identity verify lock mark */
.lock-mark {
  color: var(--accent);
  margin: 0 auto var(--s-3);
  width: 48px;
  height: 48px;
}

/* ============================================================
 * Phase 2 progress indicator (v3.2)
 * ============================================================ */
.phase2-progress {
  margin: 0 0 var(--s-4);
  padding: 0;
}
.phase2-progress-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.phase2-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border, #e5e7eb);
  border-radius: 999px;
  overflow: hidden;
}
.phase2-progress-fill {
  height: 100%;
  background: var(--accent, #C8923D);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Inline review (on consent panel) — slightly tighter than the old review panel */
.review-content-inline {
  background: var(--bg-soft, #f7f7f8);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: var(--s-4);
  margin-bottom: var(--s-5);
}
.review-content-inline .review-section {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 var(--s-4);
}
.review-content-inline .review-section:last-child {
  margin-bottom: 0;
}
.review-content-inline .review-section header {
  border-bottom: 1px solid var(--border, #e5e7eb);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.review-content-inline .review-section h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.review-content-inline .edit-link {
  font-size: 12px;
  background: none;
  border: none;
  color: var(--accent-2, #B07D2E);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.review-content-inline .review-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  font-size: 13px;
  margin: 0;
}
.review-content-inline .review-list dt {
  color: var(--ink-3);
  font-weight: 500;
}
.review-content-inline .review-list dd {
  margin: 0;
  color: var(--ink-1);
}
.review-content-inline .review-cards {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.review-content-inline .review-cards img {
  max-width: 120px;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Coverage "not sure" row — visually separated from the three Yes flags */
.coverage-unsure-row {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed rgba(0,0,0,0.08);
}
