:root {
  --green: #1f8a4c;
  --green-dark: #14532f;
  --ink: #1b2420;
  --muted: #5b6660;
  --line: #dfe7e2;
  --bg: #f6faf7;
}
* { box-sizing: border-box; }
body { margin: 0; font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--green-dark); }

.top { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--green-dark); text-decoration: none; max-width: 560px; margin: 0 auto; }

.quiz, .doc { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 18px 18px 32px; }
.progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.bar { flex: 1; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 20%; background: var(--green); border-radius: 8px; transition: width 0.25s; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
h1 { font-size: 30px; line-height: 1.12; margin: 0 0 8px; color: var(--green-dark); text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 0 0 20px; }
.q { display: block; width: 100%; font-size: 22px; font-weight: 700; line-height: 1.2; margin: 6px 0 16px; padding: 0; text-align: center; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile, .choice { position: relative; cursor: pointer; background: #fff; border: 2px solid var(--line); border-radius: 12px; transition: border-color 0.15s, box-shadow 0.15s; }
.tile { display: flex; flex-direction: column; align-items: center; padding: 10px 8px 12px; font-weight: 600; }
.tile img { width: 76px; height: 76px; object-fit: contain; }
.tile .dots { height: 76px; display: grid; place-items: center; font-size: 30px; letter-spacing: 3px; color: var(--green); }
.tile input, .choice input { position: absolute; opacity: 0; pointer-events: none; }
.tile:hover, .choice:hover { border-color: #b9d6c4; }
.tile:has(input:checked), .choice:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.15); }
.tile:has(input:focus-visible), .choice:has(input:focus-visible) { outline: 3px solid var(--green-dark); outline-offset: 2px; }

.choices { display: grid; gap: 10px; }
.choice { display: block; padding: 18px; font-size: 18px; font-weight: 600; }

.note { text-align: center; color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.big, .field input, .field textarea { width: 100%; font: inherit; font-size: 18px; padding: 15px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.big { text-align: center; font-size: 24px; letter-spacing: 2px; margin-bottom: 14px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.field textarea { font-size: 16px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--green); }
.opt { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; }

.btn { display: block; width: 100%; background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 18px; font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; }
.btn:hover { background: var(--green-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.back { background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; margin-top: 16px; padding: 8px 0; cursor: pointer; }
.consent { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 12px 0 0; }
.status { color: #b42318; font-size: 15px; margin: 10px 0 0; }

.done { text-align: center; padding-top: 30px; }
.done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--green); margin: 0 auto 18px; position: relative; }
.done .tick::after { content: ""; position: absolute; left: 26px; top: 14px; width: 16px; height: 32px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.done p { color: var(--muted); }

.doc h1 { text-align: left; }
.doc h2 { font-size: 20px; margin: 26px 0 6px; }

.foot { padding: 20px 18px 28px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.foot p { max-width: 520px; margin: 0 auto 8px; }
.foot nav { display: flex; gap: 18px; justify-content: center; }
