.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.22, 0.61, 0.36, 1), visibility 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lead-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lead-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 15, 0.56);
  backdrop-filter: blur(8px);
}

.lead-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(43, 49, 55, 0.10);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(245, 247, 248, 0.99), rgba(245, 247, 248, 0.94));
  box-shadow: 0 34px 100px rgba(11, 13, 15, 0.18);
  text-align: center;
}

.lead-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(43, 49, 55, 0.12);
  border-radius: 50%;
  background: rgba(245, 247, 248, 0.72);
  color: #0B0D0F;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lead-modal-dialog h2 {
  margin: 0 auto 10px;
  max-width: 430px;
  color: #1A1D21;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead-modal-dialog > p {
  max-width: 430px;
  margin: 0 auto 20px;
  color: rgba(11, 13, 15, 0.68);
  font-weight: 720;
  line-height: 1.55;
}

.lead-modal-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 22px;
}

.lead-modal-facts span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(43, 49, 55, 0.10);
  border-radius: 8px;
  background: rgba(245, 247, 248, 0.72);
  color: rgba(11, 13, 15, 0.70);
  font-size: 12px;
  font-weight: 900;
}

.lead-modal-form {
  display: grid;
  gap: 15px;
  text-align: left;
}

.lead-modal-form label {
  display: grid;
  gap: 8px;
  color: rgba(11, 13, 15, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.lead-modal-form input,
.lead-modal-form select,
.lead-modal-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(43, 49, 55, 0.13);
  border-radius: 8px;
  background: rgba(245, 247, 248, 0.88);
  color: #0B0D0F;
  font: inherit;
  font-weight: 720;
  outline: none;
  transition: border-color 200ms cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 200ms cubic-bezier(0.22, 0.61, 0.36, 1), background 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lead-modal-form select {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(26, 29, 33, 0.72) 50%), linear-gradient(135deg, rgba(26, 29, 33, 0.72) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lead-modal-form textarea {
  min-height: 104px;
  resize: vertical;
}

.lead-modal-form input:focus,
.lead-modal-form select:focus,
.lead-modal-form textarea:focus {
  border-color: rgba(143, 174, 53, 0.66);
  background: rgba(245, 247, 248, 0.98);
  box-shadow: 0 0 0 3px rgba(143, 174, 53, 0.12);
}

.lead-modal-form button[type="submit"] {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: #1A1D21;
  color: #F5F7F8;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(11, 13, 15, 0.14);
}

.lead-modal-note {
  min-height: 22px;
  margin: 0;
  color: #1A1D21;
  font-weight: 800;
  text-align: center;
}

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

  .lead-modal-dialog {
    width: min(100%, 430px);
    max-height: calc(100dvh - 92px);
    padding: 30px 18px 24px;
    border-radius: 10px;
  }

  .lead-modal-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    font-size: 28px;
    line-height: 1;
  }

  .lead-modal-dialog h2 {
    max-width: calc(100% - 68px);
    font-size: clamp(30px, 9.2vw, 40px);
    line-height: 1.04;
  }

  .lead-modal-dialog > p {
    font-size: 17px;
    line-height: 1.42;
  }

  .lead-modal-facts {
    justify-content: flex-start;
  }
}
