.leadFormTrigger {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.leadDialog {
  width: min(640px, calc(100% - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: #09152b;
  background: #fff;
  box-shadow: 0 28px 90px rgba(2, 12, 32, 0.32);
  overflow: hidden;
}

.leadDialog::backdrop {
  background: rgba(2, 12, 32, 0.76);
  backdrop-filter: blur(6px);
}

.leadDialogInner {
  position: relative;
  max-height: min(820px, calc(100dvh - 32px));
  overflow-y: auto;
  padding: 38px;
}

.leadDialogClose {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dde4ef;
  border-radius: 50%;
  color: #09152b;
  background: #fff;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.leadDialogClose:hover,
.leadDialogClose:focus-visible {
  border-color: #0050ff;
  outline: 3px solid rgba(0, 80, 255, 0.15);
}

.leadDialog .kicker {
  margin-bottom: 12px;
  color: #0050ff;
}

.leadDialog h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.leadDialogIntro {
  max-width: 520px;
  margin: 18px 0 28px;
  color: #657085;
  font-size: 16px;
  line-height: 1.55;
}

.leadFormGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.leadField {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 750;
}

.leadFieldWide {
  grid-column: 1 / -1;
}

.leadField input,
.leadField select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  color: #09152b;
  background: #fff;
  font: inherit;
  font-size: 16px;
}

.leadField input:focus,
.leadField select:focus {
  border-color: #0050ff;
  outline: 3px solid rgba(0, 80, 255, 0.12);
}

.leadConsent {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: flex-start;
  color: #657085;
  font-size: 13px;
  line-height: 1.45;
}

.leadConsent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #0050ff;
}

.leadConsent a {
  color: #0050ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.leadSubmit {
  grid-column: 1 / -1;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 0;
  cursor: pointer;
}

.leadSubmit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.leadFormStatus {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: #b42318;
  font-size: 14px;
}

.leadSuccess {
  padding: 36px 0 16px;
}

.leadSuccessMark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: #0050ff;
  font-size: 26px;
}

.leadSuccess h2 {
  margin-bottom: 18px;
}

.leadSuccess p {
  max-width: 500px;
  color: #657085;
  font-size: 17px;
  line-height: 1.55;
}

.leadHoneypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 560px) {
  .leadDialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .leadDialogInner {
    max-height: calc(100dvh - 20px);
    padding: 30px 20px 24px;
  }

  .leadDialogClose {
    top: 12px;
    right: 12px;
  }

  .leadDialog h2 {
    padding-right: 34px;
    font-size: 36px;
  }

  .leadFormGrid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .leadFieldWide,
  .leadConsent,
  .leadSubmit,
  .leadFormStatus {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leadDialog::backdrop {
    backdrop-filter: none;
  }
}

