.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.lead-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(2px);
}

.lead-modal__box {
  position: relative;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.lead-modal__title {
  margin: 0 44px 18px 0;
  line-height: 1.2;
}

.lead-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lead-modal__close:hover {
  background: #e8e8e8;
  transform: scale(1.04);
}

body.modal-open {
  overflow: hidden;
}

.lead-popup-form {
  margin: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.lead-popup-form__terms {
  margin: 12px 0;
}

.lead-popup-form input,
.lead-popup-form select,
.lead-popup-form textarea {
  width: 100%;
  box-sizing: border-box;
}

.lead-popup-form textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 640px) {
  .lead-modal__box {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 0 auto;
    padding: 18px;
    border-radius: 16px;
  }

  .lead-modal__title {
    font-size: 1.3rem;
    margin-right: 38px;
  }

  .lead-modal__close {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}

.lead-modal__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.lead-modal__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}