:root {
  --bg: #eef2f3;
  --card: #ffffff;
  --ink: #15232a;
  --muted: #5a6a72;
  --line: #d3dcdf;
  --soft: #f4f7f8;
  --accent: #0b6a70;
  --accent-soft: #dcefef;
  --accent-ink: #ffffff;
  --error: #b3321f;
  --ok: #2a7a4b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1417; --card: #141e22; --ink: #e2eaec; --muted: #93a3aa; --line: #2a3a40; --soft: #18242a;
    --accent: #4cb2b5; --accent-soft: #163a3c; --accent-ink: #062224; --error: #f08470; --ok: #6cc893;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 100vh;
  padding: 32px 16px;
}
.card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 28px 28px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 4%), 0 12px 32px rgb(0 0 0 / 6%);
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.mark {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700;
}
.word { font-weight: 600; font-size: 18px; letter-spacing: 0.01em; }
section { display: flex; flex-direction: column; }
h1 { margin: 0 0 4px; font-size: 24px; font-weight: 600; text-wrap: balance; }
.sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
section > p:not(.sub):not(.msg) { margin: 0 0 18px; font-size: 15px; }
strong { font-weight: 600; overflow-wrap: anywhere; }

/* Start choices */
.choices { display: flex; flex-direction: column; gap: 12px; }
.choice {
  font: inherit; color: inherit; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.choice-title { font-weight: 600; }
.choice-text { font-size: 14px; color: var(--muted); }

/* Forms */
form { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; font-weight: 500; margin-top: 8px; }
.optional { font-weight: 400; color: var(--muted); font-size: 13px; }
input, textarea {
  font: inherit; color: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}
textarea { resize: vertical; min-height: 72px; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--error); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.row > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (max-width: 440px) { .row { grid-template-columns: 1fr; } }
.field-error { margin: 0; min-height: 0; font-size: 13px; color: var(--error); }
.field-error:empty { display: none; }

fieldset.account-type { border: 0; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; }
fieldset.account-type legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.option {
  margin: 0;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.option input { width: auto; margin: 4px 0 0; accent-color: var(--accent); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option-body { display: flex; flex-direction: column; gap: 2px; }
.option-title { font-weight: 600; }
.option-text { font-weight: 400; font-size: 14px; color: var(--muted); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 12px; }
.consent input { width: auto; margin-top: 3px; accent-color: var(--accent); }

/* Buttons */
button.primary, button.secondary {
  font: inherit;
  margin-top: 12px;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
button.primary { border: 0; background: var(--accent); color: var(--accent-ink); }
button.secondary { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
button.secondary:hover { border-color: var(--accent); }
button:disabled { opacity: 0.55; cursor: default; }
.actions { display: flex; flex-direction: column; gap: 0; }
button.link {
  font: inherit; color: var(--accent); background: none; border: 0; padding: 0;
  cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 2px;
}
.switch { margin: 20px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.hint { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

.msg { min-height: 1.5em; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.msg.error { color: var(--error); }
.msg.ok { color: var(--ok); }
.turnstile { margin-top: 12px; }
.turnstile:empty { display: none; }
footer { color: var(--muted); font-size: 13px; text-align: center; }
