.lead-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--blue-900) 0%, var(--blue-800) 32%, var(--blue-50) 32%);
}

.lead-header {
  padding: clamp(1.35rem, 4.5vh, 2.35rem) 1rem 0.85rem;
  display: flex;
  justify-content: center;
  background: transparent;
}

.lead-brand-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.lead-header .lead-gateway-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 0 auto;
  width: max-content;
  max-width: calc(100% - 1rem);
}

.lead-header .gateway-brand-mark {
  display: block;
  width: min(48vw, 220px);
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(5, 21, 37, 0.38));
}

.lead-header .gateway-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.lead-header .gateway-brand-name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 5.2vw, 2rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 3px rgba(5, 21, 37, 0.55), 0 6px 20px rgba(5, 21, 37, 0.28);
}

.lead-header .gateway-brand-name-light {
  font-weight: 300;
}

.lead-header .gateway-brand-name-bold {
  font-weight: 700;
}

.lead-header .gateway-brand-tagline {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.58rem, 2.2vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  -webkit-font-smoothing: antialiased;
  text-shadow: 0 1px 3px rgba(5, 21, 37, 0.5), 0 4px 14px rgba(5, 21, 37, 0.25);
}

.lead-main {
  flex: 1;
  padding: 0 0 2rem;
}

.lead-hero {
  color: var(--white);
  text-align: center;
  padding: 0 1rem 1.25rem;
}

.lead-hero-badge {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lead-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 600;
  margin: 0.65rem 0 0.35rem;
  line-height: 1.15;
}

.lead-hero-sub {
  margin: 0 auto;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.lead-card {
  max-width: 34rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem;
}

.lead-form-compact .form-row {
  margin-bottom: 0.85rem;
}

.lead-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.lead-name-row .form-row {
  margin-bottom: 0.85rem;
}

.lead-required {
  color: var(--blue-700);
}

.lead-optional {
  font-weight: 400;
  color: var(--gray-600);
  font-size: 0.82rem;
}

.lead-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.lead-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
}

.lead-progress-step > span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 700;
  font-size: 0.8rem;
}

.lead-progress-step.active > span:first-child,
.lead-progress-step.done > span:first-child {
  background: var(--blue-800);
  color: var(--white);
}

.lead-progress-step.active {
  color: var(--blue-900);
}

.lead-step {
  display: none;
}

.lead-step.is-active {
  display: block;
}

.lead-step-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue-900);
}

.lead-step-title--sub {
  margin-top: 1.15rem;
}

.lead-hint {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.lead-hint--top {
  margin: -0.35rem 0 0.75rem;
}

.lead-options {
  display: grid;
  gap: 0.5rem;
}

.lead-options--inline {
  grid-template-columns: repeat(3, 1fr);
}

.lead-options--grid {
  grid-template-columns: repeat(2, 1fr);
}

.lead-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 0.75rem;
  border: 1.5px solid rgba(10, 37, 64, 0.12);
  border-radius: 10px;
  background: var(--blue-50);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--blue-900);
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.lead-option:active {
  transform: scale(0.98);
}

.lead-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.lead-option:has(input:checked) {
  border-color: var(--blue-700);
  background: rgba(26, 111, 212, 0.1);
  box-shadow: 0 0 0 1px rgba(26, 111, 212, 0.18);
  font-weight: 600;
}

.lead-option--pill {
  min-height: 44px;
  padding: 0.55rem 0.35rem;
  font-size: 0.88rem;
}

.lead-option--highlight:has(input:checked) {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
}

.lead-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.lead-actions--single .btn {
  width: 100%;
}

.lead-actions .btn-primary {
  flex: 1;
}

.lead-actions .btn-text {
  flex: 0 0 auto;
  padding: 0.65rem 0.5rem;
  background: none;
  border: none;
  color: var(--gray-600);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.lead-actions .btn-text:hover {
  color: var(--blue-800);
}

.lead-success {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.lead-success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: rgba(26, 111, 212, 0.12);
  color: var(--blue-800);
  font-size: 1.6rem;
  font-weight: 700;
}

.lead-success h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--blue-900);
}

.lead-success p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.45;
}

.lead-footer {
  padding: 1.25rem 1rem 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.45;
}

.lead-footer a {
  color: var(--blue-700);
  font-weight: 600;
}

@media (max-width: 640px) {
  .lead-header .lead-gateway-brand {
    gap: 0.65rem;
    max-width: 17rem;
  }

  .lead-header .gateway-brand-mark {
    width: 5.25rem;
    filter: drop-shadow(0 2px 6px rgba(5, 21, 37, 0.28));
  }

  .lead-header .gateway-brand-name {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 4px rgba(5, 21, 37, 0.45);
  }

  .lead-header .gateway-brand-tagline {
    font-size: 0.5625rem;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.82);
  }

  .lead-card {
    padding: 1.1rem;
  }

  .lead-progress-step > span:last-child {
    display: none;
  }

  .lead-name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .lead-options--inline {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .lead-option--pill span {
    font-size: 0.82rem;
  }
}

@media (min-width: 641px) {
  .lead-page {
    background: linear-gradient(
      180deg,
      var(--blue-900) 0%,
      var(--blue-800) var(--lead-blue-end, 24rem),
      var(--blue-50) var(--lead-blue-end, 24rem)
    );
  }

  .lead-options--checks .lead-option {
    justify-content: flex-start;
    text-align: left;
    padding-left: 1rem;
  }
}
