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

.lead-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(1, 4, 2, 0.82);
  cursor: default;
  backdrop-filter: blur(12px);
}

.lead-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 690px);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid rgba(129, 255, 166, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(129, 255, 166, 0.1), transparent 34%),
    #090e0a;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.58);
  color: #f4f7f4;
}

.lead-modal__panel::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 5px);
  content: "";
  pointer-events: none;
}

.lead-modal__panel > * {
  position: relative;
  z-index: 1;
}

.lead-modal__close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(213, 255, 225, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: #d9e2dc;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lead-modal__close:hover {
  border-color: #81ffa6;
  background: #81ffa6;
  color: #061008;
}

.lead-modal__eyebrow {
  margin-bottom: 18px;
  color: #81ffa6;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead-modal__eyebrow::before {
  margin-right: 10px;
  content: "//";
}

.lead-modal h2 {
  max-width: 520px;
  margin: 0 54px 14px 0;
  color: #f4f7f4;
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 680;
  letter-spacing: -0.05em;
  line-height: 1;
}

.lead-modal__intro {
  max-width: 540px;
  margin: 0 0 30px;
  color: #9ba79f;
  font-size: 15px;
  line-height: 1.55;
}

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

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

.lead-form__row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-form__field {
  display: grid;
  gap: 8px;
}

.lead-form__field > span {
  color: #abb6ae;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(213, 255, 225, 0.14);
  border-radius: 12px;
  outline: none;
  background: #050806;
  color: #f4f7f4;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"] {
  min-height: 52px;
  padding: 0 15px;
}

.lead-form textarea {
  min-height: 120px;
  padding: 14px 15px;
  resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: #5e6961;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(129, 255, 166, 0.62);
  box-shadow: 0 0 0 4px rgba(129, 255, 166, 0.07);
}

.lead-form__consent {
  display: grid;
  align-items: start;
  color: #7f8c83;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.5;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.lead-form__consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: #81ffa6;
}

.lead-form__consent a {
  color: #aebbb2;
  text-decoration-color: rgba(129, 255, 166, 0.4);
  text-underline-offset: 3px;
}

.lead-form__status {
  min-height: 20px;
  color: #ff9e9e;
  font-size: 13px;
}

.lead-form__status.is-success {
  color: #81ffa6;
}

.lead-form__submit {
  display: inline-flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 1px solid #81ffa6;
  border-radius: 12px;
  background: #81ffa6;
  color: #061008;
  cursor: pointer;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lead-form__submit:hover {
  transform: translateY(-2px);
  border-color: #b4ffc8;
  background: #b4ffc8;
}

.lead-form__submit:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

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

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

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

  .lead-modal__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .lead-modal h2 {
    margin-right: 40px;
    font-size: 36px;
  }

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