:root {
  --ink: #1c1d21;
  --quiet: #5b5f6b;
  --line: #d7d9de;
  --accent: #2f5bd3;
  --bad: #b42318;
  --good: #1d7a46;
  --bg: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 640px; margin: 0 auto; padding: 24px 16px 32px; line-height: 1.5; }
h1 { font-size: 1.4rem; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.hint { color: var(--quiet); font-size: 0.9rem; }
.error { color: var(--bad); font-weight: 600; margin-top: 16px; }

fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; padding: 0; }

label { display: block; font-weight: 500; margin: 12px 0 4px; }
input[type="email"], input[inputmode="numeric"], textarea {
  width: 100%; padding: 10px 12px; font: inherit;
  border: 1px solid var(--line); border-radius: 8px;
}
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

button {
  display: inline-block; margin-top: 16px; padding: 10px 18px; font: inherit; font-weight: 600;
  color: #fff; background: var(--accent); border: 0; border-radius: 8px; cursor: pointer;
}
button[disabled] { opacity: 0.6; cursor: default; }
button.link { background: none; color: var(--accent); padding: 10px 8px; font-weight: 500; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.check label { margin: 0; font-weight: 400; }
.check label strong { display: block; }

.radio { display: flex; gap: 10px; align-items: center; margin: 8px 0; }
.radio label { margin: 0; font-weight: 400; }

input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 20px; border: 1px dashed var(--quiet); border-radius: 8px; cursor: pointer; text-align: center;
}
input[type="file"]:focus + .file-drop, .file-drop:hover { border-color: var(--accent); }

ul { padding-left: 18px; }
#file-list li, #progress-list li, #done-files li { margin: 4px 0; }
.state-ok { color: var(--good); }
.state-bad { color: var(--bad); }
progress { width: 100%; height: 8px; }

/* Inside the Webflow page, which already shows this heading. */
html.embedded #step-email h1 { display: none; }
