:root {
  --bg: #0c141d;
  --panel: rgba(249, 251, 253, .97);
  --ink: #151b22;
  --muted: #68727e;
  --line: #dfe4e8;
  --accent: #d0002f;
  --accent-dark: #a80025;
  --success: #14804a;
  --radius: 22px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #fff;
  background: var(--bg) url("assets/construction-bg.svg") center / cover fixed no-repeat;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.07), transparent 30%), linear-gradient(180deg, rgba(3,8,13,.08), rgba(3,8,13,.28));
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.page-shell { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 3;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: clamp(176px, 15vw, 250px); height: auto; display: block; filter: drop-shadow(0 8px 20px rgba(0,0,0,.28)); }
.topbar-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 10px 0;
  border-bottom: 2px solid rgba(255,255,255,.35);
}
.topbar-link:hover { border-color: var(--accent); }

.hero {
  width: min(1500px, calc(100% - 48px));
  margin: auto;
  padding: 28px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 650px);
  align-items: center;
  gap: clamp(46px, 7vw, 120px);
  position: relative;
  z-index: 2;
}
.hero-copy { max-width: 720px; padding: 42px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .16em;
  font-weight: 800;
  color: rgba(255,255,255,.82);
}
.eyebrow span { width: 42px; height: 3px; background: var(--accent); display: inline-block; }
h1 {
  margin: 22px 0 20px;
  font-size: clamp(48px, 5.2vw, 86px);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 820px;
  text-shadow: 0 4px 32px rgba(0,0,0,.3);
}
.lead {
  margin: 0;
  max-width: 680px;
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 36px 0 40px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.trust-row div { padding: 18px 20px; background: rgba(7,16,24,.38); display: flex; flex-direction: column; gap: 4px; }
.trust-row strong { font-size: 16px; }
.trust-row span { color: rgba(255,255,255,.64); font-size: 13px; }
.workflow { max-width: 680px; }
.workflow h2 { margin: 0 0 16px; font-size: 18px; letter-spacing: -.01em; }
.workflow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: steps; }
.workflow li { position: relative; padding-top: 34px; counter-increment: steps; }
.workflow li::before {
  content: "0" counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  font-size: 12px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: .12em;
}
.workflow li::after { content: ""; position: absolute; left: 30px; right: 0; top: 7px; height: 1px; background: rgba(255,255,255,.22); }
.workflow b { display: block; margin-bottom: 6px; font-size: 14px; }
.workflow span { display: block; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.45; }

.form-panel {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 42px);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}
.form-panel::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--accent) 0 36%, #f1f3f5 36%); }
.form-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.form-kicker { margin: 0 0 5px; text-transform: uppercase; font-size: 11px; letter-spacing: .14em; font-weight: 900; color: var(--accent); }
.form-panel h2 { margin: 0; font-size: clamp(25px, 2vw, 34px); letter-spacing: -.03em; }
.time-badge { white-space: nowrap; border: 1px solid var(--line); padding: 8px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--muted); background: #fff; }
.progress-wrap { margin: 26px 0 28px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.progress-track { height: 7px; background: #e8ecef; border-radius: 99px; overflow: hidden; }
.progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ef3b60); transition: width .3s ease; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step { display: none; animation: stepIn .25s ease; }
.form-step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
legend { padding: 0; font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.step-note { margin: 7px 0 22px; color: var(--muted); line-height: 1.45; font-size: 14px; }
.field-grid { display: grid; gap: 14px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: block; margin-bottom: 17px; }
.field > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  width: 100%;
  border: 1px solid #cfd6dc;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.4; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6f7881 50%), linear-gradient(135deg, #6f7881 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(208,0,47,.09); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #c93838; background: #fff9f9; }
.hint { display: block; margin-top: 6px; color: #7c858e; font-size: 11px; line-height: 1.35; }
.error { display: block; min-height: 0; margin-top: 5px; color: #b52222; font-size: 11px; font-weight: 700; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row label, .work-grid label { position: relative; cursor: pointer; }
.choice-row input, .work-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label span {
  display: block;
  border: 1px solid #d4dae0;
  border-radius: 999px;
  padding: 9px 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
  transition: .18s ease;
}
.choice-row input:checked + span { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 0 6px 18px rgba(21,27,34,.14); }
.choice-row input:focus-visible + span, .work-grid input:focus-visible + span { outline: 3px solid rgba(208,0,47,.2); outline-offset: 2px; }
.choice-row.regions label span { border-radius: 10px; }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.work-grid label span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #d7dde2;
  border-radius: 11px;
  padding: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  transition: .18s ease;
}
.work-grid label:hover span { border-color: #a9b1b9; transform: translateY(-1px); }
.work-grid input:checked + span { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 0 8px 18px rgba(21,27,34,.15); }
.group-error { margin: 7px 0 15px; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.45; color: #545f69; cursor: pointer; }
.consent input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--accent); }
.consent-error { margin-left: 27px; }
.review-card { margin-top: 18px; border-left: 3px solid var(--accent); background: #f0f3f5; border-radius: 0 11px 11px 0; padding: 14px 16px; display: grid; gap: 3px; }
.review-card b { font-size: 13px; }
.review-card span { font-size: 12px; line-height: 1.45; color: var(--muted); }

.form-actions { margin-top: 26px; display: flex; justify-content: flex-end; gap: 10px; }
.btn {
  min-height: 49px;
  border: 0;
  border-radius: 11px;
  padding: 0 22px;
  font-weight: 850;
  font-size: 14px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { color: #fff; background: var(--accent); box-shadow: 0 10px 24px rgba(208,0,47,.23); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.secondary { color: var(--ink); background: #e9edf0; }
.submit-btn { min-width: 190px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; }
.submit-btn i { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .65s linear infinite; }
.submit-btn.is-loading i { display: block; }
.submit-btn.is-loading { pointer-events: none; opacity: .82; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 12px 0 0; min-height: 18px; text-align: right; font-size: 12px; color: #a52121; }

.success-state { text-align: center; padding: 34px 10px 18px; }
.success-icon { width: 72px; height: 72px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-size: 34px; font-weight: 900; box-shadow: 0 12px 30px rgba(20,128,74,.25); }
.success-state h2 { margin-bottom: 12px; }
.success-state p { margin: 7px auto; color: var(--muted); max-width: 430px; line-height: 1.5; }
.success-state .btn { margin-top: 20px; }

footer {
  width: min(1500px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  position: relative;
  z-index: 2;
}
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

@media (max-width: 1120px) {
  body { background-attachment: scroll; }
  .hero { grid-template-columns: 1fr; gap: 16px; max-width: 820px; }
  .hero-copy { padding: 20px 0 24px; }
  h1 { max-width: 760px; }
  .form-panel { margin-bottom: 24px; }
}
@media (max-width: 720px) {
  .topbar, .hero, footer { width: min(100% - 28px, 680px); }
  .topbar { min-height: 76px; }
  .topbar-link { display: none; }
  .brand img { width: 180px; }
  .hero { padding: 6px 0 34px; }
  .hero-copy { padding: 12px 0 16px; }
  h1 { font-size: clamp(40px, 12vw, 62px); }
  .lead { font-size: 17px; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row div { padding: 13px 16px; }
  .workflow ol { grid-template-columns: 1fr; gap: 14px; }
  .workflow li { padding: 0 0 0 42px; }
  .workflow li::before { top: 2px; }
  .workflow li::after { display: none; }
  .form-panel { padding: 27px 20px 22px; border-radius: 17px; }
  .time-badge { display: none; }
  .field-grid.two, .field-grid.three { grid-template-columns: 1fr; gap: 0; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-actions { position: sticky; bottom: 8px; padding: 9px; margin: 20px -9px -9px; border-radius: 14px; background: rgba(249,251,253,.92); backdrop-filter: blur(12px); box-shadow: 0 -8px 22px rgba(16,24,32,.08); }
  .form-actions .btn { flex: 1; padding: 0 12px; }
  footer { flex-direction: column; align-items: flex-start; padding: 18px 0 26px; }
}
@media (max-width: 430px) {
  .work-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .work-grid label span { min-height: 54px; font-size: 11px; padding: 8px; }
  .choice-row.regions { display: grid; grid-template-columns: 1fr 1fr; }
  .choice-row.regions label span { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
