/* Apply Flow CSS */

.apply-page { background: var(--surface); min-height: 100vh; }

.apply-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.apply-header__logo { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 18px; text-decoration: none; color: var(--navy); }
.apply-header__trust { font-size: 13px; color: var(--slate); }

/* Progress */
.progress-wrap { background: var(--white); border-bottom: 1px solid var(--border); padding: 20px 24px 0; }
.progress-steps { display: flex; align-items: flex-start; justify-content: center; max-width: 640px; margin: 0 auto; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; opacity: 0.4; transition: opacity 0.3s; }
.progress-step.active, .progress-step.done { opacity: 1; }
.progress-step__circle { width: 40px; height: 40px; border-radius: 50%; background: var(--slate-light); display: flex; align-items: center; justify-content: center; font-size: 18px; border: 2px solid var(--border); transition: all 0.3s; }
.progress-step.active .progress-step__circle { background: var(--blue); border-color: var(--blue); color: white; font-size: 14px; font-weight: 700; }
.progress-step.done .progress-step__circle { background: var(--mint); border-color: var(--mint); }
.progress-step__label { font-size: 11px; font-weight: 500; color: var(--text-muted); text-align: center; white-space: nowrap; }
.progress-connector { flex: 0.5; height: 2px; background: var(--border); margin-top: 19px; }
.progress-bar { height: 3px; background: var(--border); max-width: 640px; margin: 12px auto 0; border-radius: 2px; overflow: hidden; }
.progress-bar__fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--mint)); transition: width 0.4s ease; border-radius: 2px; }

/* Step Panels */
.apply-main { max-width: 560px; margin: 32px auto; padding: 0 20px 80px; }
.step-panel { display: none; animation: fadeInUp 0.3s ease; }
.step-panel.active { display: block; }

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

.step-panel h2 { font-size: 24px; color: var(--navy); margin-bottom: 4px; }
.step-sub { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }
.step-disclaimer { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* Loan Amount Slider */
.loan-amount-display { font-family: 'Sora', sans-serif; font-size: 36px; font-weight: 800; color: var(--blue); text-align: center; margin: 16px 0 8px; }
.range-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--border); border-radius: 3px; outline: none; cursor: pointer; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); cursor: pointer; border: 3px solid white; box-shadow: 0 2px 6px rgba(37,99,235,0.4); }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { padding: 8px 16px; border: 2px solid var(--border); border-radius: 100px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; background: var(--white); }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.selected { background: var(--blue); border-color: var(--blue); color: white; }

/* Employment Cards */
.emp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.emp-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px 12px; text-align: center; cursor: pointer; transition: all 0.15s; background: var(--white); font-size: 13px; font-weight: 500; }
.emp-card:hover { border-color: var(--blue); }
.emp-card.selected { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.emp-card__icon { font-size: 28px; margin-bottom: 8px; }

/* OTP */
.otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.otp-box { width: 52px; height: 60px; text-align: center; font-size: 24px; font-weight: 700; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: 'Sora', sans-serif; }
.otp-box:focus { border-color: var(--blue); }
.otp-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.resend-row { font-size: 13px; color: var(--text-muted); }
.resend-row a { color: var(--blue); cursor: pointer; }
#otpMobileDisplay { color: var(--navy); }

/* Buttons in form */
.btn-row { display: flex; gap: 12px; margin-top: 8px; }
.btn-row .btn--outline { flex: 0 0 auto; }
.btn-row .btn--primary { flex: 1; }

/* Calc mini */
.calc-mini { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.calc-mini label { font-size: 14px; font-weight: 500; color: var(--text); display: block; margin-bottom: 8px; }
.emi-result { margin-top: 16px; font-size: 18px; font-weight: 600; color: var(--navy); padding: 12px 16px; background: var(--blue-light); border-radius: var(--radius-sm); }

/* Apply footer */
.apply-footer { background: var(--white); border-top: 1px solid var(--border); padding: 20px 24px; text-align: center; font-size: 12px; color: var(--text-muted); }
.apply-footer p { margin-bottom: 6px; }
.apply-footer a { color: var(--blue); }
.rbi-disclaimer { font-size: 11px; color: var(--text-muted); margin-top: 8px; max-width: 600px; margin-inline: auto; }

@media (max-width: 480px) {
  .emp-cards { grid-template-columns: 1fr 1fr; }
  .otp-box { width: 44px; height: 52px; font-size: 20px; }
  .loan-amount-display { font-size: 28px; }
}
