:root {
  --bg: #ffffff;
  --page: #f7f8fa;
  --text: #1d1f25;
  --muted: #5f6470;
  --border: #d9dce3;
  --focus: #2d6be4;
  --accent: #2d6be4;
  --accent-hover: #1f56c2;
  --error: #c62828;
  --error-bg: #fdecec;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 16px 80px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 32px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.intro p { margin: 0 0 18px; }
.intro ul { padding-left: 0; list-style: none; margin: 0 0 22px; }
.intro li { margin-bottom: 16px; padding-left: 14px; position: relative; }
.intro li::before { content: "*"; position: absolute; left: 0; }

a { color: var(--accent); }

.field { margin-top: 36px; }

label, .label {
  display: block;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}

.optional { color: var(--muted); font-weight: 400; font-size: 15px; }

.help {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 12px;
}

input[type="text"], input[type="url"], input[type="date"], textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

textarea { min-height: 110px; resize: vertical; }

input:focus, textarea:focus, button:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(45, 107, 228, 0.18);
}

.field.invalid input, .field.invalid textarea { border-color: var(--error); }

.error {
  color: var(--error);
  font-size: 15px;
  margin: 6px 0 0;
  min-height: 0;
}
.error:empty { display: none; }

.form-error {
  background: var(--error-bg);
  color: var(--error);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 28px;
}
.form-error:empty { display: none; }

button, .button {
  display: inline-block;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  padding: 11px 30px;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.6; cursor: progress; }

.actions { margin-top: 40px; }

.fineprint { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Honeypot, hidden from people but present for bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.center { text-align: center; }

@media (max-width: 520px) {
  main { padding-top: 16px; }
  .card { padding: 28px 18px; border-radius: 8px; }
  h1 { font-size: 28px; }
  label, .label { font-size: 18px; }
}
