.lead-capture {
  scroll-margin-top: 96px;
  padding: 7rem 0;
  background: #fafafa;
  color: #111827;
}

.lead-capture__shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: #fff;
}

.lead-capture__intro {
  position: relative;
  padding: 64px 56px;
  overflow: hidden;
  background: #0b1220;
  color: #fff;
}

.lead-capture__intro::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 64px solid rgba(37, 99, 235, 0.18);
  border-radius: 50%;
}

.lead-capture__eyebrow,
.lead-capture__form-head span {
  display: block;
  margin-bottom: 14px;
  color: #7fb0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead-capture__intro h2 {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.lead-capture__intro > p {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 24px 0 0;
  color: #9aa7b9;
  font-size: 15px;
  line-height: 1.8;
}

.lead-capture__assurances {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 15px;
  margin-top: 54px;
}

.lead-capture__assurances span {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #cbd5e1;
  font-size: 13px;
}

.lead-capture__assurances i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #7fb0ff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.lead-capture__assurances b {
  font-weight: 500;
}

.lead-capture__form-card {
  padding: 50px 54px;
}

.lead-capture__form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.lead-capture__form-head span {
  margin-bottom: 6px;
  color: #2563eb;
}

.lead-capture__form-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.lead-capture__form-head small {
  color: #94a3b8;
  font-size: 11px;
}

.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lead-form__field {
  display: block;
}
.lead-form__field--wide {
  grid-column: 1 / -1;
}

.lead-form__field > span {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.lead-form__field input,
.lead-form__field select,
.lead-form__field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.lead-form__field input,
.lead-form__field select {
  padding: 0 15px;
}
.lead-form__field textarea {
  min-height: 126px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.65;
}
.lead-form__field input::placeholder,
.lead-form__field textarea::placeholder {
  color: #a8b3c3;
}

.lead-form__field input:focus,
.lead-form__field select:focus,
.lead-form__field textarea:focus {
  border-color: #2563eb;
}

.lead-form__field.is-invalid input,
.lead-form__field.is-invalid select,
.lead-form__field.is-invalid textarea {
  border-color: #dc2626;
  background: #fffafa;
}

.lead-form__field > small {
  display: none;
  margin-top: 6px;
  color: #dc2626;
  font-size: 11px;
}

.lead-form__field.is-invalid > small {
  display: block;
}
.lead-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.lead-form__alert {
  margin-top: 20px;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  background: #ecfdf5;
  padding: 13px 15px;
  color: #047857;
  font-size: 13px;
  line-height: 1.55;
}

.lead-form__alert.is-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.lead-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eef2f7;
}

.lead-form__footer p {
  max-width: 320px;
  margin: 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.6;
}

.lead-form__footer button {
  display: inline-flex;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: #126ef5;
  padding: 0 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.lead-form__footer button:hover {
  transform: translateY(-1px);
  background: #075bd4;
}
.lead-form__footer button:disabled {
  transform: none;
  opacity: 0.65;
  cursor: wait;
}
.lead-form__footer button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lead-form__footer button.is-loading svg {
  animation: lead-submit-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes lead-submit-pulse {
  to {
    transform: translateX(3px);
    opacity: 0.55;
  }
}

@media (max-width: 1199px) {
  .lead-capture__shell {
    grid-template-columns: minmax(0, 0.75fr) minmax(480px, 1.25fr);
  }
  .lead-capture__intro {
    padding: 54px 42px;
  }
  .lead-capture__form-card {
    padding: 46px 40px;
  }
}

@media (max-width: 991px) {
  .lead-capture {
    padding: 5rem 0;
  }
  .lead-capture__shell {
    grid-template-columns: 1fr;
  }
  .lead-capture__intro {
    padding: 48px;
  }
  .lead-capture__intro h2 {
    max-width: 620px;
  }
  .lead-capture__assurances {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 38px;
  }
  .lead-capture__assurances span {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .lead-capture {
    padding: 4rem 0;
  }
  .lead-capture__shell {
    border-radius: 20px;
  }
  .lead-capture__intro,
  .lead-capture__form-card {
    padding: 34px 24px;
  }
  .lead-capture__intro h2 {
    font-size: 32px;
  }
  .lead-capture__assurances {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lead-form__grid {
    grid-template-columns: 1fr;
  }
  .lead-form__field--wide {
    grid-column: auto;
  }
  .lead-form__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }
  .lead-form__footer p {
    max-width: none;
  }
  .lead-form__footer button {
    width: 100%;
  }
}
