/* Intake form — Verde profundo design language (same tokens as the quote sheet).
   Accent is injected via --a; default #0F5B57. Mobile-first, one centered column. */
:root {
  --a: #0F5B57; --a-dark: #0B4542; --a-soft: #E7F0EF;
  --ink: #1C1A16; --mut: #767065; --card: #F5F4F0; --track: #E3E0D8;
  --lin: #E5E2DA; --err: #A63A2B; --err-bg: #FBEFEC; --page: #FBFAF7;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: var(--page); font-size: 16px; line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column; align-items: center;
}
.shell { width: 100%; max-width: 600px; padding: 20px 16px 48px; flex: 1; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mg {
  width: 38px; height: 38px; border-radius: 11px; background: var(--a); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mg svg { width: 20px; height: 20px; }
.mg.txt { font-weight: 700; font-size: 15px; }
.brand-name { font-size: 14.5px; font-weight: 650; line-height: 1.25; }
.brand-sub { font-size: 11.5px; color: var(--mut); margin-top: 1px; }
.lang-toggle {
  border: 1px solid var(--lin); background: #fff; border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--mut); cursor: pointer; flex-shrink: 0;
}
.lang-toggle b { color: var(--a); }

/* progress */
.progress { margin-top: 22px; }
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.progress-step { font-size: 13px; font-weight: 650; }
.progress-count { font-size: 11.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.progress-track { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--a); transition: width .25s ease; }

/* hero (welcome + thank-you) */
.hero {
  margin-top: 26px; background: var(--a); color: #fff; border-radius: 26px;
  padding: 26px 24px 22px;
}
.hero-kick { font-size: 12px; font-weight: 650; opacity: .75; letter-spacing: .02em; }
.hero-title { font-size: 25px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; margin-top: 8px; }
.hero-sub { font-size: 13.5px; opacity: .88; margin-top: 10px; line-height: 1.55; }
.hero-facts { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.fact {
  background: rgba(255,255,255,.10); border-radius: 14px; padding: 11px 14px;
  font-size: 12.5px; line-height: 1.4; display: flex; gap: 10px; align-items: center;
}
.fact b { font-weight: 700; margin-right: 2px; }
.fact svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .9; }

/* step cards */
.card { background: #fff; border: 1px solid var(--lin); border-radius: 22px; padding: 22px 20px; margin-top: 18px; }
.card.soft { background: var(--card); border-color: transparent; }
.step-title { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.step-sub { font-size: 13px; color: var(--mut); margin-top: 4px; line-height: 1.5; }

/* fields */
.field { margin-top: 18px; }
.field:first-of-type { margin-top: 16px; }
.label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.label .opt { font-weight: 400; color: var(--mut); }
.hint { font-size: 12px; color: var(--mut); margin-top: 6px; line-height: 1.5; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--lin); border-radius: 14px;
  padding: 13px 15px; outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { resize: vertical; min-height: 84px; }
.input:focus { border-color: var(--a); box-shadow: 0 0 0 3px var(--a-soft); }
.input.invalid { border-color: var(--err); }
.card.soft .input { background: #fff; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23767065' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px;
}
.err-text { font-size: 12.5px; color: var(--err); margin-top: 6px; font-weight: 550; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .field { margin-top: 0; }
.field + .row2, .row2 + .field { margin-top: 14px; }

/* segmented choices */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-item { position: relative; }
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--lin); background: #fff;
  font-size: 14px; font-weight: 550; cursor: pointer; transition: all .15s; user-select: none;
}
.seg-item input:checked + span { border-color: var(--a); background: var(--a-soft); color: var(--a-dark); font-weight: 650; }
.seg-item input:focus-visible + span { box-shadow: 0 0 0 3px var(--a-soft); }

/* county picker */
.county-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; padding: 11px 14px;
  background: var(--a-soft); border-radius: 14px; font-size: 13px; color: var(--a-dark); line-height: 1.45; }
.county-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.county-note b { font-weight: 650; }
.county-pick { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.county-opt { position: relative; }
.county-opt input { position: absolute; opacity: 0; pointer-events: none; }
.county-opt span {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--lin); background: #fff;
  font-size: 14.5px; font-weight: 550; cursor: pointer;
}
.county-opt span i { font-style: normal; font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
.county-opt input:checked + span { border-color: var(--a); background: var(--a-soft); color: var(--a-dark); }

/* members */
.member-card { background: var(--card); border-radius: 16px; padding: 14px 16px; margin-top: 12px; }
.member-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.member-name { font-size: 15px; font-weight: 650; }
.member-meta { font-size: 12.5px; color: var(--mut); margin-top: 3px; line-height: 1.55; }
.member-edit, .member-del {
  border: none; background: none; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--a); cursor: pointer; padding: 6px 4px; white-space: nowrap;
}
.member-del { color: var(--mut); }
.member-form { border: 1.5px dashed var(--lin); border-radius: 16px; padding: 16px; margin-top: 12px; }
.member-form-title { font-size: 14px; font-weight: 650; margin-bottom: 2px; }
.add-member {
  width: 100%; margin-top: 14px; min-height: 50px; border: 1.5px dashed var(--a); border-radius: 16px;
  background: none; color: var(--a); font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.add-member svg { width: 16px; height: 16px; }

/* income hint */
.income-box { position: relative; }
.income-box .input { padding-left: 30px; }
.income-box::before { content: '$'; position: absolute; left: 15px; bottom: 13px; font-size: 16px; color: var(--mut); }

/* review */
.rev-section { margin-top: 4px; }
.rev-head { display: flex; justify-content: space-between; align-items: baseline; }
.rev-title { font-size: 13px; font-weight: 650; color: var(--mut); }
.rev-edit { border: none; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--a); cursor: pointer; padding: 4px 0; }
.rev-body { font-size: 14.5px; margin-top: 3px; line-height: 1.55; }
.rev-body .dim { color: var(--mut); }
.rev-sep { border: none; border-top: 1px solid var(--lin); margin: 11px 0 0; }

/* consent */
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px;
  padding: 15px 16px; background: var(--card); border-radius: 16px; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--a); flex-shrink: 0; cursor: pointer; }
.consent-text { font-size: 13.5px; line-height: 1.55; }
.privacy { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; font-size: 12px; color: var(--mut); line-height: 1.55; }
.privacy svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--a); }

/* buttons — pinned to the bottom of the viewport on small screens */
.actions { display: flex; gap: 10px; margin-top: 22px; }
.actions-bar {
  position: sticky; bottom: 0; margin: 22px -16px -48px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(251,250,247,0), var(--page) 30%);
}
.need-card { padding: 18px 20px; }
.need-title { font-size: 13.5px; font-weight: 650; }
.need-list { margin: 8px 0 0; padding-left: 20px; font-size: 13.5px; color: #4A453D; }
.need-list li { margin-top: 5px; }
.btn {
  flex: 1; min-height: 54px; border: none; border-radius: 16px; font: inherit;
  font-size: 16px; font-weight: 650; cursor: pointer; transition: background .15s;
}
.btn-primary { background: var(--a); color: #fff; }
.btn-primary:hover { background: var(--a-dark); }
.btn-primary:disabled { opacity: .55; cursor: default; }
.btn-ghost { flex: 0 0 auto; background: none; color: var(--mut); padding: 0 18px; }
.btn-ghost:hover { color: var(--ink); }
.btn .arrow { display: inline-block; margin-left: 6px; }

/* error banner (e.g. rejected sensitive data) */
.banner-err {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 13px 15px;
  background: var(--err-bg); border-radius: 14px; color: var(--err); font-size: 13.5px; line-height: 1.5;
}
.banner-err svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.banner-err b { font-weight: 650; }

/* captcha + footer */
.captcha-slot { margin-top: 16px; min-height: 0; }
.foot { margin-top: 26px; text-align: center; font-size: 11.5px; color: var(--mut); line-height: 1.6; }

/* honeypot: invisible to humans, not display:none (some bots skip those) */
.hp { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* thank-you */
.done-check {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.done-check svg { width: 26px; height: 26px; }
.done-name { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.done-sub { font-size: 13.5px; opacity: .88; margin-top: 8px; line-height: 1.6; }

@media (min-width: 720px) {
  .actions-bar { position: static; margin: 22px 0 -48px; padding: 0; background: none; }
  .shell { max-width: 660px; padding-top: 34px; }
  .card { padding: 26px 26px; }
  .hero { padding: 30px 30px 26px; }
  .hero-title { font-size: 28px; }
  .members-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .members-grid .member-card { margin-top: 0; }
}
