:root {
  --bg: #eef5f8;
  --card: #ffffff;
  --line: rgba(8, 72, 168, 0.14);
  --text: #0c2d5c;
  --muted: #5a738f;
  --navy: #0848a8;
  --cyan: #08a8c8;
  --danger: #dc2626;
  --ok: #059669;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(8, 72, 168, 0.12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(8, 168, 200, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(8, 72, 168, 0.14), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.top { display: flex; justify-content: center; padding: 28px 16px 8px; }
.brand img { display: block; height: auto; }
.wrap { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 12px 16px 32px; }
.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 26px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(135deg, #0848a8 0%, #0890c0 48%, #18b8d0 100%);
}
.eyebrow {
  margin: 4px 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
h1 { margin: 0 0 10px; font-size: clamp(1.45rem, 5vw, 1.8rem); line-height: 1.2; font-weight: 800; }
.lead { margin: 0 0 8px; color: var(--muted); line-height: 1.5; }
.summary { margin: 0 0 8px; line-height: 1.5; }
form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 600; }
.field input {
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid rgba(12, 45, 92, 0.18);
  border-radius: 12px;
  background: #fbfdfe;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(8, 168, 200, 0.16); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.consent input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.consent a { color: var(--navy); font-weight: 600; }
.feedback { margin: 0; min-height: 1.2em; font-size: 0.875rem; font-weight: 600; }
.feedback.is-error { color: var(--danger); }
.feedback.is-info { color: var(--muted); }
.btn {
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 15px 18px;
  cursor: pointer;
  background: linear-gradient(135deg, #0848a8 0%, #0890c0 60%, #18b8d0 100%);
  box-shadow: 0 10px 24px rgba(8, 72, 168, 0.25);
}
.btn:disabled { opacity: 0.65; cursor: progress; }
.fine { margin: 0; font-size: 0.75rem; color: var(--muted); line-height: 1.45; text-align: center; }
.state { text-align: center; padding: 18px 4px 8px; }
.state p { color: var(--muted); line-height: 1.5; }
.spinner {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(8, 72, 168, 0.15); border-top-color: var(--navy);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.check {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800;
  color: #fff; background: var(--ok);
}
.number {
  margin: 14px auto 10px; padding: 16px 18px; max-width: 280px;
  border: 1px solid var(--line); border-radius: 16px; background: #f7fbfc;
  display: flex; flex-direction: column; gap: 4px;
}
.number span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.number strong { font-size: 3rem; line-height: 1.05; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.foot { text-align: center; font-size: 0.75rem; color: var(--muted); padding: 0 16px 24px; }
.foot a { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
