.lead-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
}

.lead-modal-overlay.is-open {
  display: flex;
}

.lead-modal {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid var(--border-2);
  border-radius: 22px;
  background: #10182b;
  color: #f8fafc;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), var(--glow);
}

.lead-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 24px;
  line-height: 1;
}

.lead-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lead-modal h2 {
  padding-right: 42px;
  margin-bottom: 8px;
  color: #f8fafc;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  line-height: 1.2;
}

.lead-modal-intro {
  margin-bottom: 24px;
  color: #aebbd0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.lead-form-group {
  margin-bottom: 15px;
}

.lead-form-group label {
  display: block;
  margin-bottom: 6px;
  color: #dbe4f2;
  font-size: 0.82rem;
  font-weight: 600;
}

.lead-form-group input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  border-radius: 11px;
  outline: none;
  background: #202a40;
  color: #f8fafc;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.lead-form-group input::placeholder {
  color: #7f8ca3;
}

.lead-form-group input:focus {
  border-color: var(--accent-2);
  background: #263149;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.lead-form-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 11px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.lead-form-submit:hover {
  transform: translateY(-1px);
  background: #1fbd5a;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.24);
}

.lead-form-submit svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.lead-form-note {
  margin-top: 11px;
  color: #7f8ca3;
  font-size: 0.72rem;
  text-align: center;
}

body.theme-light .lead-modal {
  border-color: #dbe4f0;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28), var(--glow);
}

body.theme-light .lead-modal h2,
body.theme-light .lead-form-group label {
  color: #0f172a;
}

body.theme-light .lead-modal-intro {
  color: #64748b;
}

body.theme-light .lead-modal-close {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #64748b;
}

body.theme-light .lead-form-group input {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

body.theme-light .lead-form-group input:focus {
  border-color: var(--accent);
  background: #fff;
}

@media (max-width: 560px) {
  .lead-modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }

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