body.is-lead-popup-open {
  overflow: hidden;
}

.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(14px, 3vw, 30px);
}

.lead-popup[hidden] {
  display: none;
}

.lead-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 10, 10, 0.86);
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.lead-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: clamp(22px, 2.6vw, 28px);
  background: #fff;
  color: #111;
  box-shadow: 0 34px 92px rgba(0, 0, 0, 0.48);
  animation: lead-popup-in 260ms cubic-bezier(0.22, 0.74, 0.3, 1) both;
}

@keyframes lead-popup-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

.lead-popup__close {
  position: absolute;
  top: clamp(20px, 3vw, 30px);
  right: clamp(22px, 3.2vw, 34px);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1f5a93;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.lead-popup__close:hover,
.lead-popup__close:focus-visible {
  background: rgba(31, 90, 147, 0.08);
  transform: scale(1.04);
}

.lead-popup__close span {
  font-size: 2.05rem;
  font-weight: 300;
  line-height: 0.72;
}

.lead-popup__content {
  display: grid;
  justify-items: center;
  padding: clamp(48px, 6vw, 70px) clamp(24px, 6vw, 72px) 22px;
  text-align: center;
}

.lead-popup h2,
.lead-popup p {
  margin: 0;
}

.lead-popup h2 {
  max-width: 100%;
  color: #050505;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 3.25vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.lead-popup p {
  max-width: 560px;
  margin-top: 24px;
  color: #252525;
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.lead-popup__form {
  width: min(600px, 100%);
  margin-top: 34px;
}

.lead-popup__form .wpforms-container,
.lead-popup__form div.wpforms-container-full {
  width: 100%;
  margin: 0;
}

.lead-popup__form div.wpforms-container-full .wpforms-form {
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: center;
  margin: 0;
}

.lead-popup__form div.wpforms-container-full .wpforms-form .wpforms-field-container {
  flex: 1 1 auto;
  min-width: 0;
}

.lead-popup__form div.wpforms-container-full .wpforms-form .wpforms-field {
  width: 100%;
  margin: 0;
  padding: 0;
}

.lead-popup__form div.wpforms-container-full .wpforms-form .wpforms-field-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.lead-popup__form div.wpforms-container-full .wpforms-form input[type="email"],
.lead-popup__form div.wpforms-container-full .wpforms-form input[type="text"] {
  width: 100% !important;
  max-width: none !important;
  height: 64px !important;
  min-height: 64px !important;
  border: 0 !important;
  border-radius: 11px 0 0 11px !important;
  background: #f0f0f0 !important;
  color: #111 !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: clamp(0.92rem, 1.45vw, 1.04rem) !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  line-height: 64px !important;
  outline: 0 !important;
  padding: 0 clamp(20px, 3vw, 34px) !important;
  appearance: none;
}

.lead-popup__form div.wpforms-container-full .wpforms-form input::placeholder {
  color: #858585 !important;
  opacity: 1 !important;
  text-transform: uppercase;
}

.lead-popup__form div.wpforms-container-full .wpforms-form input[type="email"]:focus,
.lead-popup__form div.wpforms-container-full .wpforms-form input[type="text"]:focus {
  background: #f6f6f6 !important;
  box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.12) !important;
}

.lead-popup__form div.wpforms-container-full .wpforms-form .wpforms-submit-container {
  flex: 0 0 178px;
  margin: 0;
  padding: 0;
}

.lead-popup__form div.wpforms-container-full .wpforms-form .wpforms-submit {
  width: 100%;
  height: 64px !important;
  min-height: 64px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0 11px 11px 0 !important;
  background: #020202 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: var(--font-body) !important;
  font-size: clamp(0.86rem, 1.35vw, 1rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  transition: background 180ms ease, transform 180ms ease;
}

.lead-popup__form div.wpforms-container-full .wpforms-form .wpforms-submit:hover,
.lead-popup__form div.wpforms-container-full .wpforms-form .wpforms-submit:focus-visible {
  background: #1d1d1b !important;
}

.lead-popup__form div.wpforms-container-full .wpforms-form label.wpforms-error {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  margin: 0 !important;
  color: #9b2f20 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.lead-popup__form div.wpforms-container-full .wpforms-form input.wpforms-error {
  box-shadow: inset 0 0 0 2px rgba(155, 47, 32, 0.36) !important;
}

.lead-popup__form .wpforms-confirmation-container-full {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #f0f0f0 !important;
  color: #111 !important;
  padding: 24px 28px !important;
  font-family: var(--font-body) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}

.lead-popup__form .wpforms-confirmation-container-full p {
  margin: 0 !important;
  color: inherit !important;
  font: inherit !important;
}

.lead-popup__logo {
  width: auto;
  height: clamp(58px, 6vw, 72px);
  margin-top: 18px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .lead-popup {
    align-items: center;
    padding: 12px;
  }

  .lead-popup__dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 28px;
  }

  .lead-popup__close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .lead-popup__close span {
    font-size: 2.15rem;
  }

  .lead-popup__content {
    padding: 54px 20px 22px;
  }

  .lead-popup h2 {
    font-size: clamp(2.28rem, 11vw, 2.82rem);
    line-height: 0.98;
  }

  .lead-popup p {
    margin-top: 18px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .lead-popup__form {
    margin-top: 24px;
  }

  .lead-popup__form div.wpforms-container-full .wpforms-form {
    display: grid;
    gap: 12px;
  }

  .lead-popup__form div.wpforms-container-full .wpforms-form input[type="email"],
  .lead-popup__form div.wpforms-container-full .wpforms-form input[type="text"],
  .lead-popup__form div.wpforms-container-full .wpforms-form .wpforms-submit {
    height: 54px !important;
    min-height: 54px !important;
    border-radius: 999px !important;
    line-height: 54px !important;
  }

  .lead-popup__form div.wpforms-container-full .wpforms-form input[type="email"],
  .lead-popup__form div.wpforms-container-full .wpforms-form input[type="text"] {
    padding-inline: 22px !important;
    text-align: center;
  }

  .lead-popup__form div.wpforms-container-full .wpforms-form .wpforms-submit-container {
    width: 100%;
    flex-basis: auto;
  }

  .lead-popup__form div.wpforms-container-full .wpforms-form label.wpforms-error {
    position: static;
    margin-top: 8px !important;
    text-align: center;
  }

  .lead-popup__logo {
    height: 60px;
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-popup__dialog,
  .lead-popup__close,
  .lead-popup__form div.wpforms-container-full .wpforms-form .wpforms-submit {
    animation: none;
    transition: none;
  }
}
