.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(30, 43, 32, 0.6);
}

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

.lead-popup__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 100%;
  overflow-y: auto;
  padding: 28px 24px 22px;
  background: #fff;
  border-radius: 8px;
  color: #1e2b20;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lead-popup__close {
  position: absolute;
  top: 6px;
  right: 10px;
  padding: 4px 8px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #555;
  cursor: pointer;
}

.lead-popup__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #53754b;
}

.lead-popup h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.lead-popup__lead {
  margin: 0 0 16px;
  font-size: 15px;
}

.lead-popup__form label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}

.lead-popup__form input[type="text"],
.lead-popup__form input[type="email"],
.lead-popup__form input[type="tel"],
.lead-popup__form textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.lead-popup__form input:focus,
.lead-popup__form textarea:focus {
  outline: 2px solid #53754b;
  outline-offset: 1px;
}

.lead-popup__optional {
  font-weight: 400;
  color: #777;
}

.lead-popup__form .lead-popup__check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
}

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

.lead-popup__check input {
  margin-top: 2px;
}

.lead-popup__trap {
  position: absolute;
  left: -9999px;
}

.lead-popup__error {
  margin: 0 0 10px;
  color: #a12a2a;
  font-size: 13px;
}

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

.lead-popup__submit {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 4px;
  background: #53754b;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.lead-popup__submit:hover {
  background: #1e2b20;
}

.lead-popup__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.lead-popup__legal {
  margin: 10px 0 0;
  font-size: 11px;
  color: #666;
}

.lead-popup__thanks {
  text-align: center;
}

@media (max-width: 480px) {
  .lead-popup__panel {
    padding: 24px 16px 18px;
  }

  .lead-popup h2 {
    font-size: 21px;
  }
}
