:root {
  --bg: #f5f5f4;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f3f6fa;
  --text: #1f2328;
  --text-soft: #2a3138;
  --muted: #61707c;
  --accent: #a6cf2d;
  --accent-dark: #8bb51f;
  --accent-soft: #eef7d2;
  --blue: #2f6ea9;
  --blue-soft: #dfeaf6;
  --charcoal: #1f1f20;
  --line: rgba(35, 36, 39, 0.1);
  --line-strong: rgba(35, 36, 39, 0.16);
  --success: #196545;
  --error: #ad3f31;
  --shadow: 0 22px 60px rgba(31, 39, 52, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    "Avenir Next",
    "Helvetica Neue",
    "Segoe UI",
    "Trebuchet MS",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(223, 234, 246, 0.8), transparent 28%),
    linear-gradient(180deg, #fbfbfa 0%, #f1f2f2 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

input,
textarea,
button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.brand-logo {
  display: block;
  width: min(240px, 58vw);
  height: auto;
}

.page-shell {
  padding: 32px 0 28px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 470px);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 60px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.75rem, 5.5vw, 4.10rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 750;
  color: var(--text-soft);
}

h1 em {
  font-style: italic;
}

.intro {
  max-width: 56ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.7;
}

.intro-secondary {
  max-width: 52ch;
  margin-top: 12px;
  font-size: 0.98rem;
  line-height: 1.65;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.metric-card {
  padding: 18px 18px 17px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(47, 110, 169, 0.08);
  box-shadow: 0 10px 30px rgba(37, 52, 71, 0.05);
}

.metric-card strong {
  display: block;
  color: var(--blue);
  font-size: 0.98rem;
  line-height: 1.35;
}

.metric-card span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.form-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 7px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, var(--blue) 0%, #67a3d1 52%, var(--accent) 100%);
}

.form-intro {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
  padding-top: 6px;
}

.section-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.form-intro h2 {
  font-size: clamp(1.72rem, 2.4vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-soft);
}

.form-lead {
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

.step-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  color: var(--muted);
}

.step-pill span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 800;
}

.step-pill strong {
  font-size: 0.93rem;
  letter-spacing: -0.01em;
}

.step-pill.is-active {
  background: var(--blue-soft);
  border-color: rgba(47, 110, 169, 0.14);
  color: var(--text);
}

.step-pill.is-active span {
  background: var(--blue);
  color: #ffffff;
}

.form-step {
  animation: fadeUp 220ms ease;
}

.form-step[hidden] {
  display: none;
}

.section-heading {
  display: grid;
  gap: 5px;
}

.section-heading h3 {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.section-spacing {
  margin-top: 30px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-soft);
}

.field-full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 14px 15px;
  font-size: 0.99rem;
  line-height: 1.45;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #97a1aa;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(47, 110, 169, 0.42);
  box-shadow: 0 0 0 4px rgba(47, 110, 169, 0.12);
  transform: translateY(-1px);
}

input:hover,
textarea:hover {
  border-color: var(--line-strong);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.actions-split {
  justify-content: space-between;
}

button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
  box-shadow: 0 14px 28px rgba(166, 207, 45, 0.22);
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.secondary-button {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(35, 36, 39, 0.12);
  box-shadow: none;
}

.helper-text {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-message {
  min-height: 1.5em;
  margin-top: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.form-message[data-state="success"] {
  color: var(--success);
}

.form-message[data-state="error"] {
  color: var(--error);
}

.success-modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 5;
}

.success-modal[hidden] {
  display: none;
}

.success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 35, 40, 0.42);
  backdrop-filter: blur(4px);
}

.success-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 24px 24px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(31, 39, 52, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.9);
  text-align: center;
}

.success-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  background: #f4f7fb;
  color: var(--text-soft);
  box-shadow: none;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #57770e;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.success-panel h3 {
  margin-top: 16px;
  font-size: 1.55rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-soft);
}

.success-panel p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.success-panel button:last-child {
  margin-top: 18px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 22px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .form-card {
    max-width: 680px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100%, calc(100% - 28px));
  }

  .page-shell {
    padding: 20px 0 24px;
  }

  .hero-section {
    gap: 18px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .intro {
    font-size: 1rem;
  }

  .form-card {
    padding: 22px 18px;
  }

  .success-modal {
    padding: 16px;
  }

  .success-panel {
    padding: 26px 18px 18px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .actions,
  .actions-split {
    flex-direction: column;
    align-items: stretch;
  }

  .step-progress {
    grid-template-columns: 1fr;
  }
}
