/* ==========================================================================
   THE MONEY LIFT - Multi-Step Application & Modal CSS
   ========================================================================== */

.apply-section {
  padding: 4rem 0 6rem;
}

.wizard-container {
  max-width: 820px;
  margin: 0 auto;
}

/* Progress Indicator Bar */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 3.5rem;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.wizard-progress-bar {
  position: absolute;
  top: 20px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--emerald-neon));
  z-index: 2;
  transition: width 0.4s ease;
  box-shadow: var(--shadow-neon);
}

.progress-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0d1320;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.progress-step.active .step-circle {
  background: var(--primary-green);
  border-color: var(--emerald-neon);
  color: #000;
  box-shadow: var(--shadow-neon);
}

.progress-step.completed .step-circle {
  background: var(--bg-card);
  border-color: var(--primary-green);
  color: var(--emerald-neon);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.progress-step.active .step-label {
  color: var(--emerald-neon);
}

.progress-step.completed .step-label {
  color: var(--text-white);
}

/* Wizard Form Cards */
.form-step-card {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.form-step-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.form-step-header h3 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.form-step-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Form Fields */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;

  margin-bottom: 2rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label span.req {
  color: var(--emerald-neon);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-neon);
  box-shadow: 0 0 15px rgba(0, 255, 135, 0.2);
  background: #162032;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-green);
  margin-top: 0.2rem;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Matching Modal Simulator */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #0d1424;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 580px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-neon);
  position: relative;
  overflow: hidden;
}

.scan-ring-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(16, 185, 129, 0.15);
  border-top-color: var(--emerald-neon);
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.3);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.scan-icon {
  position: absolute;
  font-size: 2.5rem;
  color: var(--emerald-neon);
}

.scan-status-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.scan-status-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.scan-progress-box {
  background: rgba(6, 10, 18, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.scan-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.scan-bar-bg {
  width: 100%;
  height: 8px;
  background: #162032;
  border-radius: 4px;
  overflow: hidden;
}

.scan-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-green), var(--emerald-neon));
  transition: width 0.3s ease;
  box-shadow: var(--shadow-neon);
}

/* Success Match Screen */
.match-success {
  display: none;
  animation: fadeIn 0.4s ease;
}

.success-badge-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--emerald-neon), var(--primary-green));
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem auto;
  box-shadow: var(--shadow-neon);
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group-full { grid-column: span 1; }
  .wizard-progress { margin-bottom: 2.5rem; }
  .step-label { display: none; }
}
