.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 96px 24px 24px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}
.lead-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 31, 74, 0.58);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lead-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(350px, 1fr);
  width: min(100%, 920px);
  max-height: min(calc(100dvh - 120px), 760px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  color: #1c1f4a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
  transform: translateY(16px) scale(0.985);
  transition: transform 220ms ease;
}
.is-open .lead-dialog {
  transform: translateY(0) scale(1);
}
.lead-close {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c99532;
  color: #1c1f4a;
  cursor: pointer;
}
.lead-close svg {
  display: block;
  width: 16px;
  height: 16px;
}
.lead-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 600px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(155deg, #1c1f4a 0%, #292d59 100%);
  color: #fff;
}
.lead-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: inherit;
}
.lead-aside__copy {
  max-width: 330px;
  margin: 28px 0 38px;
  color: #f7f4ed;
  font:
    500 14px/1.7 "DM Sans",
    sans-serif;
}
.lead-trusted {
  margin: 0 0 16px;
  color: #e5cc96;
  font:
    700 10px/1.4 "DM Sans",
    sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lead-companies {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.lead-companies span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 7px 5px;
  border: 1px solid rgba(201, 149, 50, 0.62);
  border-radius: 10px;
  background: rgba(201, 149, 50, 0.14);
  color: #fff;
  font:
    700 11px/1.2 "DM Sans",
    sans-serif;
  text-align: center;
}
.lead-form-wrap {
  padding: 18px 32px 20px 12px;
  align-self: center;
}
.lead-form-wrap h2 {
  max-width: 410px;
  color: #1c1f4a;
  font:
    800 22px/1.16 Outfit,
    "DM Sans",
    sans-serif;
  letter-spacing: -0.035em;
}
.lead-intro {
  margin: 7px 0 23px;
  color: #5c607d;
  font:
    400 12px/1.5 "DM Sans",
    sans-serif;
}
.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 11px;
}
.lead-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}
.lead-field--full {
  grid-column: 1 / -1;
}
.lead-field > span {
  color: #1c1f4a;
  font:
    800 9px/1.2 "DM Sans",
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lead-field b {
  color: #805a16;
}
.lead-field input,
.lead-field select {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid #d9e0e5;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #1c1f4a;
  font:
    400 11px "DM Sans",
    sans-serif;
}
.lead-field input::placeholder {
  color: #8995a6;
  opacity: 1;
}
.lead-field input:focus,
.lead-field select:focus {
  border-color: #c99532;
  box-shadow: 0 0 0 3px rgba(201, 149, 50, 0.18);
}
.lead-submit {
  grid-column: 1 / -1;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: #c99532;
  color: #1c1f4a;
  box-shadow: 0 6px 12px rgba(28, 31, 74, 0.2);
  font:
    800 12px "DM Sans",
    sans-serif;
  cursor: pointer;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}
.lead-submit:hover {
  background: #ad7e25;
  transform: translateY(-1px);
}
.lead-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}
.lead-message {
  grid-column: 1 / -1;
  margin: -4px 0;
  color: #9b2c2c;
  font:
    600 12px/1.4 "DM Sans",
    sans-serif;
}
.lead-message:empty {
  display: none;
}
.lead-message.is-success {
  color: #805a16;
}
.lead-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
@media (max-width: 680px) {
  .lead-modal {
    padding: 80px 12px 12px;
  }
  .lead-dialog {
    display: block;
    width: min(100%, 480px);
    max-height: calc(100dvh - 92px);
    border-radius: 14px;
  }
  .lead-aside {
    display: none;
  }
  .lead-form-wrap {
    padding: 28px 20px 22px;
  }
  .lead-form-wrap h2 {
    padding-right: 16px;
    font-size: 21px;
  }
  .lead-form {
    gap: 12px 9px;
  }
  .lead-field input,
  .lead-field select {
    height: 43px;
    padding-inline: 10px;
  }
}
@media (max-width: 390px) {
  .lead-form {
    grid-template-columns: 1fr;
  }
  .lead-field--full,
  .lead-submit,
  .lead-message {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lead-modal,
  .lead-dialog,
  .lead-submit {
    transition: none;
  }
}
