/* ===== Lead Modal ===== */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
}
.lead-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}
.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease;
  cursor: pointer;
}
.lead-modal.is-open .lead-modal__backdrop {
  opacity: 1;
}
.lead-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  transform: translateY(28px) scale(.97);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
.lead-modal.is-open .lead-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f4f5f7;
  color: #555;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lead-modal__close:hover { background: #e6e8ec; color: #111; }

.lead-modal__icon {
  text-align: center;
  margin-bottom: 12px;
}
.lead-modal__header {
  text-align: center;
  margin-bottom: 28px;
}
.lead-modal__title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
  line-height: 1.3;
}
.lead-modal__lead {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.lead-modal__field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lead-modal__label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  letter-spacing: .02em;
}
.lead-modal__input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid #e2e5ea;
  border-radius: 12px;
  font-size: 15px;
  color: #111;
  background: #f8f9fb;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  box-sizing: border-box;
}
.lead-modal__input:focus {
  border-color: rgb(32,144,247);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(32,144,247,.12);
}
.lead-modal__input--error {
  border-color: #e53935 !important;
  box-shadow: 0 0 0 3px rgba(229,57,53,.1) !important;
}
.lead-modal__err-msg {
  font-size: 12px;
  color: #e53935;
  display: block;
}

.lead-modal__hp { display: none !important; }

.lead-modal__msg {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.lead-modal__msg--ok {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}
.lead-modal__msg--err {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.lead-modal__actions { margin-top: 6px; }
.lead-modal__submit {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: rgb(32,144,247);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lead-modal__submit:hover:not(:disabled) { background: rgb(18,120,210); transform: translateY(-1px); }
.lead-modal__submit:active { transform: translateY(0); }
.lead-modal__submit:disabled { opacity: .65; cursor: default; }

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

@media (max-width: 500px) {
  .lead-modal__dialog {
    padding: 32px 20px 24px;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    max-height: 95vh;
    transform: translateY(100%);
  }
  .lead-modal.is-open .lead-modal__dialog {
    transform: translateY(0);
  }
}
