:root {
  --ink: #1f2933; --muted: #5f6b7a; --line: #d9dee5; --bg: #f5f6f4;
  --brand: #2f7d5b; --brand-soft: #e6f2ec; --warn: #c0392b; --warn-soft: #fdecea;
}
* { box-sizing: border-box; }
body { margin: 0; font: 18px/1.6 "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
.top { padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); font-size: 17px; }
.top b { color: var(--brand); }
main { max-width: 720px; margin: 0 auto; padding: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; }
h1 { font-size: 24px; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 8px 0 18px; color: var(--brand); }
.privacy { white-space: pre-wrap; font-size: 16px; background: var(--bg); border-radius: 10px; padding: 14px; max-height: 45vh; overflow-y: auto; margin-bottom: 16px; }

fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 18px 0; min-width: 0; }
fieldset:last-of-type { border-bottom: 0; }
fieldset[hidden] { display: none; }
legend { float: left; width: 100%; font-weight: 700; padding: 0; margin-bottom: 12px; }
legend + * { clear: both; }
legend small { font-weight: 400; color: var(--muted); }
fieldset.invalid legend { color: var(--warn); }

.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.opt input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
textarea, input[type="text"] { width: 100%; font: inherit; padding: 12px; border: 2px solid var(--line); border-radius: 12px; margin-top: 10px; }
.err { color: var(--warn); font-weight: 700; margin: 8px 0 0; min-height: 0; }
.err:empty { display: none; }

.progress { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; }
.progress .bar { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--brand); }

.nav { display: flex; gap: 12px; margin-top: 20px; }
button, a.secondary { font: inherit; font-weight: 700; min-height: 56px; padding: 0 22px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button.primary { flex: 1; background: var(--brand); border-color: var(--brand); color: #fff; }
button[disabled] { opacity: .45; cursor: not-allowed; }
.card > button.primary { width: 100%; margin-top: 16px; }
.banner { color: var(--warn); font-weight: 700; }
.banner:empty { display: none; }
.done { text-align: center; display: grid; gap: 14px; }
#turnstile { display: flex; justify-content: center; }
