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

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 24, 16, 0.76);
  backdrop-filter: blur(8px);
}

.lead-modal__panel {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border: 1px solid rgba(184, 147, 42, 0.52);
  border-radius: 22px;
  padding: 30px;
  background: #f9f5ee;
  color: #173c29;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(27, 74, 46, 0.1);
  color: #1b4a2e;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.lead-modal__eyebrow {
  display: block;
  margin: 0 48px 8px 0;
  color: #9a771e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-modal h2 {
  margin: 0 44px 10px 0;
  color: #173c29;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1.08;
}

.lead-modal__intro {
  margin: 0 0 22px;
  color: #465c4e;
  font-size: 15px;
  line-height: 1.55;
}

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

.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #173c29;
  font-size: 13px;
  font-weight: 750;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(27, 74, 46, 0.26);
  border-radius: 11px;
  padding: 11px 13px;
  background: #fff;
  color: #162b20;
  font: inherit;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: 2px solid rgba(184, 147, 42, 0.42);
  border-color: #b8932a;
}

.lead-form__consent {
  grid-template-columns: 20px 1fr !important;
  align-items: start;
  gap: 10px !important;
  color: #526359 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.45;
}

.lead-form__consent input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
}

.lead-form__submit {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  background: #1b4a2e;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.lead-form__submit:hover,
.lead-form__submit:focus-visible {
  background: #123720;
}

.lead-form__note {
  margin: 0;
  color: #66746b;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

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

@media (max-width: 620px) {
  .lead-modal {
    padding: 10px;
    align-items: end;
  }

  .lead-modal__panel {
    max-height: calc(100vh - 10px);
    border-radius: 20px 20px 12px 12px;
    padding: 25px 18px 20px;
  }

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