/* Validation highlighting (used by leadbox.js) */
.lead-card input.highlighted,
.lead-card select.highlighted {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444;
}

/* Alert row — leadbox.js sets display:initial, force block + spacing */
.lead-card .alert-row {
  display: none;
  margin-bottom: 0.75rem;
}
.lead-card .alert-row[style*="display: initial"],
.lead-card .alert-row[style*="display:initial"] {
  display: block !important;
}

/* Alert styles (used by leadbox.js showError/showSuccess) */
.lead-card .alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.lead-card .alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Button loading state (used by leadbox.js) */
.lead-card .loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.lead-card .loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Payment popup iframe */
.payment-popup-backdrop iframe {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  border: none;
}

