:root {
  --green: #1B3A2F;
  --green-2: #24503f;
  --gold: #E0B872;
  --gold-soft: #f6ecd8;
  --ink: #1d2320;
  --muted: #5d6763;
  --line: #dfe3e0;
  --bg: #f5f3ee;
  --card: #ffffff;
  --err: #a8321f;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--green-2); }

.top { background: var(--green); padding: 12px 16px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto;
  color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .01em;
}

main { max-width: 560px; margin: 0 auto; padding: 0 16px 32px; }

.hero { text-align: center; padding: 28px 4px 18px; }
.hero h1 {
  font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(28px, 7vw, 38px); line-height: 1.15; margin: 0 0 8px; color: var(--green);
}
.hero p { margin: 0; color: var(--muted); }
body.started .hero { display: none; }
body.started main { padding-top: 16px; }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(27,58,47,.08);
  padding: 20px 18px 22px; position: relative;
}
.progress { height: 6px; background: var(--gold-soft); border-radius: 99px; overflow: hidden; margin-bottom: 16px; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s ease; }

.back {
  background: none; border: 0; padding: 4px 0; margin: -4px 0 8px;
  color: var(--muted); font: inherit; font-size: 14px; cursor: pointer;
}

.q { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.sub { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

.opts { display: grid; gap: 10px; margin-top: 14px; }
.opt {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 15px 16px; font: inherit; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: border-color .15s, background .15s;
  min-height: 54px;
}
@media (hover: hover) { .opt:hover { border-color: var(--green-2); } }
.opt:active, .opt.sel { border-color: var(--green); background: #eef4f1; }

label.f { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
label.f .opt-tag { font-weight: 400; color: var(--muted); }
input.i, select.i {
  width: 100%; font: inherit; font-size: 17px;
  padding: 14px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.ac { position: relative; margin-top: 14px; }
.ac-list {
  position: absolute; left: 0; right: 0; top: 56px; z-index: 20;
  list-style: none; margin: 0; padding: 4px 0;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto;
}
.ac-list li[data-i] { padding: 11px 14px; cursor: pointer; line-height: 1.3; }
.ac-list li[data-i] + li[data-i] { border-top: 1px solid var(--line); }
.ac-list li[data-i] strong { display: block; font-weight: 600; color: var(--ink); }
.ac-list li[data-i] span { display: block; font-size: 14px; color: var(--muted); }
.ac-list li.on, .ac-list li[data-i]:active { background: #eef4f1; }
@media (hover: hover) { .ac-list li[data-i]:hover { background: #eef4f1; } }
.ac-attr { padding: 6px 14px 4px; text-align: right; font-size: 11px; color: var(--muted); }
.ac-manual { display: block; margin-top: 10px; }
select.i {
  -webkit-appearance: none; appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
}
input.i:focus, select.i:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(27,58,47,.12); }
input.code { letter-spacing: .4em; text-align: center; font-size: 24px; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 label.f { margin-top: 12px; }

.btn {
  display: block; width: 100%; margin-top: 18px;
  background: var(--green); color: #fff; border: 0; border-radius: 12px;
  padding: 16px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer;
}
@media (hover: hover) { .btn:hover { background: var(--green-2); } }
.btn[disabled] { opacity: .6; cursor: default; }

.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--green-2); text-decoration: underline; cursor: pointer; }
.link[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
.links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--green); }

.err { color: var(--err); font-size: 14px; margin: 12px 0 0; }
.ts { margin-top: 10px; }
.ts:empty { display: none; }

.done { text-align: center; padding: 8px 0; }
.done .check {
  width: 56px; height: 56px; border-radius: 50%; margin: 4px auto 14px;
  background: var(--gold-soft); color: var(--green); display: grid; place-items: center; font-size: 28px; font-weight: 700;
}
.done .call { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 18px; color: var(--green); }

.how { margin-top: 28px; padding: 0 4px; }
.how h2 { font-size: 18px; margin: 0 0 10px; color: var(--green); }
.how ol { margin: 0; padding-left: 20px; }
.how li { margin: 0 0 8px; color: var(--ink); }
.how .note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.foot { text-align: center; font-size: 13px; color: var(--muted); padding: 20px 16px 36px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Legal pages */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 16px 40px; }
.doc h1 { font-weight: 800; letter-spacing: -0.02em; color: var(--green); font-size: 30px; margin: 8px 0 4px; }
.doc h2 { font-size: 18px; margin: 26px 0 8px; color: var(--green); }
.doc .upd { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.doc p, .doc li { color: var(--ink); }
