/* ====== LEAD FORM MODAL ====== */
.lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.lead-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lead-modal {
  width: 90vw;
  max-width: 440px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(12px);
  transition: transform 250ms ease;
}
.lead-overlay.active .lead-modal {
  transform: scale(1) translateY(0);
}

.lead-modal-header {
  background: linear-gradient(135deg, #0069ff 0%, #00bcd4 100%);
  padding: 24px 28px;
  position: relative;
}
.lead-modal-header h3 {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.lead-modal-header p {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin-top: 4px;
}
.lead-modal-plan {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 11px;
  font-weight: 600;
}
.lead-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms;
}
.lead-modal-close:hover {
  background: rgba(255,255,255,0.3);
}

.lead-modal-body {
  padding: 24px 28px 28px;
}
.lead-modal-body label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
}
.lead-modal-body input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #111827;
  transition: border-color 150ms, box-shadow 150ms;
  outline: none;
  box-sizing: border-box;
}
.lead-modal-body input:focus {
  border-color: #0069ff;
  box-shadow: 0 0 0 3px rgba(0, 105, 255, 0.1);
}
.lead-modal-body input::placeholder {
  color: #9ca3af;
}
.lead-field {
  margin-bottom: 14px;
}
.lead-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #0069ff;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms;
  margin-top: 4px;
}
.lead-submit:hover {
  background: #0055cc;
}
.lead-submit:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}
.lead-submit .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: lead-spin 600ms linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes lead-spin {
  to { transform: rotate(360deg); }
}
.lead-terms {
  text-align: center;
  font-size: 10px;
  color: #9ca3af;
  margin-top: 12px;
}

/* Success state */
.lead-success {
  text-align: center;
  padding: 32px 28px 36px;
}
.lead-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  animation: lead-pop 400ms ease;
}
@keyframes lead-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.lead-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.lead-success p {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.5;
}
