body.lead-modal-open {
  overflow: hidden;
}

.popup.lead-modal {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  color: #101010;
  z-index: 10000;
  transition: opacity .2s ease, visibility .2s ease;
}

.popup.lead-modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(5px);
}

.popup .lead-modal__panel {
  position: relative;
  width: min(100%, 36rem);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 2rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .28);
  transform: translateY(1rem) scale(.98);
  transition: transform .22s ease;
  z-index: 1;
}

.popup.lead-modal.show .lead-modal__panel {
  transform: translateY(0) scale(1);
}

.popup .lead-modal__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f3f2;
  color: #111;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.popup .lead-modal__close:hover,
.popup .lead-modal__close:focus-visible {
  background: #e4e8e5;
}

.lead-modal__header {
  padding-right: 2.35rem;
}

.lead-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .65rem;
  color: #319354;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.lead-modal__eyebrow::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #50c475;
}

.lead-modal__header h2,
.lead-success h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.lead-modal__header p,
.lead-success p {
  margin: .8rem 0 0;
  color: #5c615e;
  font-size: .98rem;
  line-height: 1.5;
}

.lead-modal__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.15rem 0 1.25rem;
}

.lead-modal__trust span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .65rem;
  border-radius: 999px;
  background: #edf8f0;
  color: #1e6e39;
  font-size: .75rem;
  font-weight: 700;
}

.lead-modal__trust span::before {
  content: "✓";
  font-weight: 900;
}

.popup .form-error {
  margin: 0 0 1rem;
  padding: .8rem .9rem;
  border: 1px solid #f2b4b4;
  border-radius: .7rem;
  background: #fff2f2;
  color: #a22323;
  font-size: .88rem;
  line-height: 1.4;
}

.popup .lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.lead-form__field {
  display: flex;
  flex-direction: column;
  gap: .42rem;
}

.lead-form__field label,
.lead-form__field legend {
  color: #171917;
  font-size: .87rem;
  font-weight: 750;
}

.lead-form__field label span {
  color: #d22;
}

.popup .lead-form input,
.popup .lead-form select,
.popup .lead-form textarea {
  width: 100%;
  margin: 0;
  padding: .9rem 1rem;
  border: 1px solid #d9dedb;
  border-radius: .72rem;
  outline: none;
  background: #fff;
  color: #111;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.popup .lead-form input:focus,
.popup .lead-form select:focus,
.popup .lead-form textarea:focus {
  border-color: #50c475;
  box-shadow: 0 0 0 3px rgba(80, 196, 117, .17);
}

.popup .lead-form input[aria-invalid="true"] {
  border-color: #d33;
  box-shadow: 0 0 0 3px rgba(211, 51, 51, .1);
}

.popup .lead-form textarea {
  min-height: 5.4rem;
  resize: vertical;
}

.lead-form__field small {
  color: #777d79;
  font-size: .74rem;
  line-height: 1.35;
}

.lead-form__phone-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 3.8rem;
  border: 2px solid #181a19;
  border-radius: .85rem;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.lead-form__phone-wrap:focus-within {
  border-color: #50c475;
  box-shadow: 0 0 0 4px rgba(80, 196, 117, .16);
}

.lead-form__phone-wrap > span {
  padding: 0 .9rem 0 1rem;
  color: #1a1c1b;
  font-size: 1.15rem;
  font-weight: 800;
  border-right: 1px solid #e0e4e1;
}

.popup .lead-form__phone-wrap input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: .95rem 1rem;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: .06em;
}

.popup .lead-form__phone-wrap input:focus {
  border: 0;
  box-shadow: none;
}

.lead-form__details {
  border: 1px solid #e2e6e3;
  border-radius: .8rem;
  background: #f9fbfa;
}

.lead-form__details summary {
  padding: .85rem 1rem;
  color: #202321;
  font-size: .86rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.lead-form__details summary::-webkit-details-marker {
  display: none;
}

.lead-form__details summary::after {
  content: "+";
  float: right;
  font-size: 1.15rem;
  line-height: .8;
}

.lead-form__details[open] summary::after {
  content: "−";
}

.lead-form__details summary span {
  margin-left: .3rem;
  color: #7a807c;
  font-size: .73rem;
  font-weight: 600;
}

.lead-form__details-content {
  display: grid;
  gap: .9rem;
  padding: 0 1rem 1rem;
}

.lead-form__problem {
  margin: 0;
  padding: 0;
  border: 0;
}

.lead-form__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
}

.popup .lead-form__choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.popup .lead-form__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.popup .lead-form__choice span {
  display: flex;
  align-items: center;
  min-height: 2.55rem;
  padding: .62rem .72rem;
  border: 1px solid #dce1de;
  border-radius: .65rem;
  background: #fff;
  color: #323633;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  transition: .18s ease;
}

.popup .lead-form__choice input:checked + span {
  border-color: #50c475;
  background: #eaf8ee;
  color: #1f6f3a;
  box-shadow: 0 0 0 2px rgba(80, 196, 117, .12);
}

.popup .lead-form__submit {
  width: 100%;
  min-height: 3.75rem;
  margin: 0;
  padding: .8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .12rem;
  border: 0;
  border-radius: .8rem;
  background: #101211;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.popup .lead-form__submit:hover,
.popup .lead-form__submit:focus-visible {
  background: #292d2a;
  transform: translateY(-1px);
}

.popup .lead-form__submit[disabled] {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.lead-form__submit > span {
  font-size: 1rem;
  font-weight: 850;
}

.lead-form__submit > small {
  color: rgba(255,255,255,.7);
  font-size: .7rem;
  font-weight: 600;
}

.popup .error-message {
  min-height: 0;
  margin: 0;
  color: #bf2424;
  font-size: .77rem;
  font-weight: 650;
}

.lead-form__privacy {
  margin: -.15rem 0 0;
  color: #8a8f8c;
  font-size: .67rem;
  line-height: 1.42;
  text-align: center;
}

.lead-modal__alternative {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 1rem;
  color: #6b716d;
  font-size: .82rem;
}

.lead-modal__alternative a {
  color: #121412;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .15em;
}

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

.lead-success__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9f8ed;
  color: #2c9a51;
  font-size: 2rem;
  font-weight: 900;
}

.lead-success .lead-modal__eyebrow {
  justify-content: center;
}

.lead-success__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: 1.35rem;
}

.popup .lead-success__close {
  width: 100%;
  min-height: 3.75rem;
  margin: 0;
  border: 1px solid #dce1de;
  border-radius: .8rem;
  background: #fff;
  color: #1b1d1c;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 640px) {
  .popup.lead-modal {
    align-items: flex-end;
    padding: 0;
  }

  .popup .lead-modal__panel {
    width: 100%;
    max-height: 94vh;
    padding: 1.35rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(2rem);
  }

  .lead-modal__header {
    padding-right: 2.2rem;
  }

  .lead-modal__header h2,
  .lead-success h2 {
    font-size: 1.55rem;
  }

  .lead-modal__header p {
    font-size: .88rem;
  }

  .lead-modal__trust {
    margin: .9rem 0 1rem;
  }

  .lead-modal__trust span {
    font-size: .68rem;
  }

  .lead-form__choices {
    grid-template-columns: 1fr;
  }

  .lead-success__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .popup.lead-modal,
  .popup .lead-modal__panel,
  .popup .lead-form__submit {
    transition: none;
  }
}
