/**
 * ============================================================================
 * REUSABLE ENTERPRISE LEAD FORM STYLES
 * High-Converting | Luxury Glassmorphic & Clean Card Design | Responsive
 * ============================================================================
 */

:root {
  --lf-primary: #0a2540;
  --lf-primary-light: #1e3a8a;
  --lf-gold: #d4af37;
  --lf-gold-hover: #b89728;
  --lf-gold-light: #fef9c3;
  --lf-gold-bg: rgba(212, 175, 55, 0.12);
  --lf-border: #e2e8f0;
  --lf-border-focus: #d4af37;
  --lf-text: #1e293b;
  --lf-text-muted: #64748b;
  --lf-bg-card: #ffffff;
  --lf-radius: 1.25rem;
  --lf-radius-sm: 0.75rem;
  --lf-shadow: 0 20px 45px -15px rgba(10, 37, 64, 0.15), 0 0 1px 1px rgba(10, 37, 64, 0.05);
  --lf-shadow-focus: 0 0 0 4px rgba(212, 175, 55, 0.22);
}

/* Base Lead Form Card */
.lead-form-card {
  background: var(--lf-bg-card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lead-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lf-gold), #fef08a, var(--lf-gold));
}

/* Header */
.lead-form-header {
  margin-bottom: 1.5rem;
}

.lead-form-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--lf-primary);
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.lead-form-subtitle {
  font-size: 0.82rem;
  color: var(--lf-text-muted);
  margin-bottom: 0;
}

.lead-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Input Fields & Groups */
.lead-form-group {
  margin-bottom: 1rem;
  position: relative;
}

.lead-form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.lead-form-label .required-star {
  color: #ef4444;
  margin-left: 2px;
}

.lead-form-label .helper-text {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--lf-text-muted);
}

.lead-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lead-input-icon {
  position: absolute;
  left: 0.95rem;
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.lead-form-control {
  width: 100%;
  padding: 0.72rem 0.95rem 0.72rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lf-text);
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--lf-radius-sm);
  transition: all 0.2s ease-in-out;
  outline: none;
  font-family: inherit;
}

.lead-form-control:hover {
  background-color: #ffffff;
  border-color: #cbd5e1;
}

.lead-form-control:focus {
  background-color: #ffffff;
  border-color: var(--lf-border-focus);
  box-shadow: var(--lf-shadow-focus);
}

.lead-form-control:focus + .lead-input-icon,
.lead-input-wrap:focus-within .lead-input-icon {
  color: var(--lf-gold-hover);
}

/* Select Dropdown */
select.lead-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
  cursor: pointer;
}

/* Textarea */
textarea.lead-form-control {
  padding-left: 0.95rem;
  resize: vertical;
  min-height: 75px;
}

/* Prefix Addon (e.g. +91) */
.lead-input-prefix {
  position: absolute;
  left: 2.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
  border-right: 1px solid #cbd5e1;
  padding-right: 0.45rem;
  line-height: 1;
}

.lead-input-with-prefix {
  padding-left: 4.8rem !important;
}

/* Quick Selection Pills */
.lead-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.lead-pill-opt {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.lead-pill-opt:hover {
  background: #e2e8f0;
  color: var(--lf-primary);
}

.lead-pill-opt.active {
  background: var(--lf-primary);
  color: #ffffff;
  border-color: var(--lf-primary);
}

/* Inline Validation Messages */
.lead-error-msg {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #dc2626;
  margin-top: 0.3rem;
  animation: lfSlideDown 0.2s ease forwards;
}

.lead-form-group.has-error .lead-error-msg {
  display: flex;
}

.lead-form-group.has-error .lead-form-control {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
}

.lead-form-group.has-error .lead-input-icon {
  color: #ef4444 !important;
}

.lead-form-group.is-valid .lead-form-control {
  border-color: #10b981 !important;
}

@keyframes lfSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lfShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.lead-form-card.form-invalid-shake {
  animation: lfShake 0.4s ease;
}

/* Trust / Privacy Notice */
.lead-privacy-box {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--lf-radius-sm);
  font-size: 0.72rem;
  color: #065f46;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.lead-privacy-box i {
  color: #10b981;
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Submit Button */
.btn-lead-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--lf-primary);
  background: linear-gradient(135deg, #f59e0b 0%, #d4af37 50%, #b45309 100%);
  background-size: 200% auto;
  border: none;
  border-radius: var(--lf-radius-sm);
  box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-lead-submit:hover:not(:disabled) {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(212, 175, 55, 0.5);
  color: #ffffff;
}

.btn-lead-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-lead-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Footer Tagline */
.lead-form-footer {
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.75rem;
}

/* ==========================================================================
   SUCCESS MODAL POPUP STYLES
   ========================================================================== */
.lead-success-modal .modal-content {
  border-radius: 1.5rem;
  border: none;
  box-shadow: 0 25px 60px -15px rgba(10, 37, 64, 0.35);
  overflow: hidden;
}

.lead-success-header {
  background: linear-gradient(135deg, #0a2540 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.lead-success-icon-wrap {
  width: 68px;
  height: 68px;
  background: rgba(16, 185, 129, 0.2);
  border: 2px solid #10b981;
  color: #34d399;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  animation: lfPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes lfPopIn {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.lead-success-ref {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(212, 175, 55, 0.6);
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fde047;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.lead-success-timeline {
  padding: 1.5rem;
  background: #ffffff;
}

.lead-timeline-step {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.lead-timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: -15px;
  width: 2px;
  background: #e2e8f0;
}

.lead-timeline-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--lf-primary);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.lead-timeline-step.active .lead-timeline-icon {
  background: #10b981;
  color: #ffffff;
}

.lead-timeline-content h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lf-primary);
  margin-bottom: 0.15rem;
}

.lead-timeline-content p {
  font-size: 0.75rem;
  color: var(--lf-text-muted);
  margin-bottom: 0;
  line-height: 1.35;
}
