body.hero-lead-lock {
  overflow: hidden;
}

.hero-lead-modal[hidden] {
  display: none !important;
}

.hero-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-lead-modal.is-open {
  opacity: 1;
}

.hero-lead-dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 30px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.17), transparent 48%),
    linear-gradient(180deg, #1d1516 0%, #0b0b0c 100%);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.74);
  transform: translateY(18px);
  transition: transform 180ms ease;
}

.hero-lead-modal.is-open .hero-lead-dialog {
  transform: translateY(0);
}

.hero-lead-dialog::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ed1c24 0 38%, rgba(237, 28, 36, 0) 80%);
}

.hero-lead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #fff;
  font: 400 28px/1 Arial, sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.hero-lead-close:hover,
.hero-lead-close:focus-visible {
  border-color: rgba(237, 28, 36, 0.8);
  background: rgba(237, 28, 36, 0.18);
  outline: none;
}

.hero-lead-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 48px 14px 0;
  color: #ff353b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.hero-lead-dialog h2 {
  margin: 0 42px 10px 0;
  color: #fff;
  font-size: clamp(27px, 6vw, 38px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead-dialog > p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.55;
}

.hero-lead-form {
  display: grid;
  gap: 10px;
}

.hero-lead-form label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-lead-phone {
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  color: #fff;
  font: 700 20px/1.2 Arial, sans-serif;
  letter-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hero-lead-phone::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.hero-lead-phone:focus {
  border-color: #ed1c24;
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.16);
  outline: none;
}

.hero-lead-phone[aria-invalid="true"] {
  border-color: #ff353b;
}

.hero-lead-submit {
  min-height: 56px;
  margin-top: 4px;
  padding: 14px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 1px solid #ed1c24;
  border-radius: 6px;
  background: #ed1c24;
  box-shadow: 0 14px 34px rgba(237, 28, 36, 0.25);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.hero-lead-submit:hover,
.hero-lead-submit:focus-visible {
  background: #ff2c33;
  outline: none;
  transform: translateY(-1px);
}

.hero-lead-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.hero-lead-status {
  min-height: 20px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

.hero-lead-status.is-error {
  color: #ff6b70;
}

.hero-lead-status.is-success {
  color: #9ce6ad;
}

.hero-lead-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .hero-lead-modal {
    place-items: end center;
    padding: 8px 8px calc(82px + env(safe-area-inset-bottom));
  }

  .hero-lead-dialog {
    width: 100%;
    padding: 24px 18px 20px;
  }

  .hero-lead-dialog h2 {
    font-size: 29px;
  }

  .hero-lead-dialog > p {
    margin-bottom: 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lead-modal,
  .hero-lead-dialog,
  .hero-lead-submit {
    transition: none;
  }
}
