/* Shared theme: the eight AC-3.1 tokens (INV-theme-single-file: this is the ONLY served
   stylesheet that declares them) plus the field/button/step/status component rules shared by
   the marketing page (index.html) and the interview shell (public/interview/index.html). */

:root {
  --stone: #F0F4F8;
  --ink: #16324D;
  --muted: #54677A;
  --line: #D7DFE8;
  --blue: #1E5288;
  --blue-deep: #163E66;
  --serif: 'Hoefler Text', Baskerville, Georgia, serif;
  --sans: Seravek, Optima, 'Gill Sans', 'Helvetica Neue', sans-serif;
}

/* Form field group: label + input/select, used by both the contact form and the interview
   questionnaire. */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input, .field select { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 12px; font: inherit; background: #fff; }
.field input:focus, .field select:focus { border-color: var(--blue); }

/* Primary form submit button. */
.submit { width: 100%; box-sizing: border-box; border: 0; border-radius: 999px; background: var(--blue); color: #F4F8FC; font: inherit; font-weight: 700; font-size: 17px; padding: 16px; cursor: pointer; }
.submit:hover { background: var(--blue-deep); }

/* Secondary/alternate action text under a form (e.g. "Rather call?"). */
.alt { font-size: 14px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.alt a { color: var(--blue); font-weight: 700; }

/* Primary call-to-action link/button. */
.cta { display: inline-block; background: var(--blue); color: #F4F8FC; text-decoration: none; font-weight: 700; font-size: 17px; padding: 16px 32px; border-radius: 999px; border: 0; cursor: pointer; font-family: var(--sans); }
.cta:hover { background: var(--blue-deep); }

/* Interview step indicator ("Step N of M") and status/error copy. */
.step { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.status { font-size: 14px; color: var(--muted); }

/* ===== interview screen (spec #7 mockup implementation) ===== */
#interview-root{min-height:100vh;display:flex;justify-content:center;align-items:flex-start;
  padding:48px 16px 80px;box-sizing:border-box;background:var(--stone);}
.iv-card{background:#F9FBFD;border:1.5px solid var(--line);border-radius:18px;
  padding:30px 28px 26px;width:100%;max-width:560px;box-sizing:border-box;color:var(--ink);}
.iv-head{margin-bottom:22px;}
.iv-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;}
.iv-eyebrow{font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--muted);margin:0;}
.iv-saved{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;
  color:var(--blue);margin:0;}
.iv-saved::before{content:"\2713";font-size:13px;}
.iv-progress{display:flex;gap:6px;margin-bottom:16px;}
.iv-progress span{height:4px;border-radius:999px;flex:1;background:var(--line);}
.iv-progress .done{background:var(--blue);}
.iv-progress .current{background:linear-gradient(90deg,var(--blue) 50%,var(--line) 50%);}
.iv-title{font-family:var(--serif);font-weight:400;font-size:clamp(26px,4vw,32px);
  line-height:1.15;margin:0;text-wrap:balance;color:var(--ink);}
.iv-lede{color:var(--muted);font-size:14.5px;margin:8px 0 0;}
.iv-field{margin-bottom:18px;}
.iv-label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:6px;}
.iv-input,.iv-select{width:100%;box-sizing:border-box;border:1.5px solid var(--line);
  border-radius:10px;padding:13px 12px;font:inherit;font-size:15.5px;background:#fff;color:var(--ink);}
.iv-input::placeholder{color:#9AABBB;}
.iv-textarea{min-height:88px;resize:vertical;font-family:var(--sans);}
.iv-select{appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2354677A' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat:no-repeat;background-position:right 14px center;padding-right:36px;}
.iv-input:focus-visible,.iv-select:focus-visible{outline:3px solid var(--blue);outline-offset:1px;border-color:var(--blue);}
.iv-two{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.iv-choice{border:0;margin:0;padding:0;min-width:0;}
.iv-choice legend{padding:0;}
.iv-options{display:flex;flex-direction:column;gap:8px;}
.iv-opt-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.iv-opt{display:flex;align-items:center;gap:12px;border:1.5px solid var(--line);border-radius:10px;
  padding:13px 14px;cursor:pointer;font-size:15.5px;background:#fff;color:var(--ink);
  transition:border-color .12s ease, background .12s ease;position:relative;}
.iv-opt:hover{border-color:var(--blue);}
.iv-opt:focus-within{outline:3px solid var(--blue);outline-offset:1px;}
.iv-opt .dot{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--line);flex:none;
  position:relative;background:#fff;}
.iv-opt.checked{border-color:var(--blue);background:#EDF3FA;}
.iv-opt.checked .dot{border-color:var(--blue);}
.iv-opt.checked .dot::after{content:"";position:absolute;inset:3.5px;border-radius:50%;background:var(--blue);}
.iv-opt-input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;}
.iv-opt.orphaned-option{opacity:.65;cursor:default;}
.iv-caveat{font-size:12.5px;color:var(--muted);margin:6px 0 0;}
.iv-review{margin:0 0 22px;display:grid;grid-template-columns:minmax(120px,38%) 1fr;
  gap:10px 16px;font-size:14.5px;}
.iv-review dt{color:var(--muted);font-weight:600;font-size:13px;}
.iv-review dd{margin:0;color:var(--ink);}
.iv-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:26px;
  padding-top:20px;border-top:1px solid var(--line);}
.iv-foot:has(.iv-next:only-child){justify-content:flex-end;}
.iv-back{background:none;border:0;font:inherit;font-size:15px;font-weight:600;color:var(--muted);
  cursor:pointer;padding:10px 6px;border-radius:8px;display:inline-flex;align-items:center;gap:6px;}
.iv-back:hover{color:var(--ink);}
.iv-back:focus-visible{outline:3px solid var(--blue);outline-offset:2px;}
.iv-next{border:0;border-radius:999px;background:var(--blue);color:#F4F8FC;font:inherit;
  font-weight:700;font-size:16px;padding:15px 44px;cursor:pointer;min-width:190px;}
.iv-next:hover{background:var(--blue-deep);}
.iv-next:focus-visible{outline:3px solid var(--blue);outline-offset:3px;}
.interview-qualified p,.interview-conflict p,.interview-recovery p{font-size:15px;color:var(--muted);}
@media (max-width:520px){
  .iv-card{padding:24px 18px 20px;}
  .iv-two{grid-template-columns:1fr;gap:0;}
  .iv-opt-row{grid-template-columns:1fr;}
  .iv-foot{flex-direction:column-reverse;align-items:stretch;}
  .iv-next{width:100%;}
  .iv-back{justify-content:center;}
}
