/* ════════════════════════════════════════
   MULTI-STEP WIZARD — VayNhanh
   Thêm vào cuối style.css hoặc import riêng
════════════════════════════════════════ */

/* Progress bar */
.wiz-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.wiz-progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,.08);
  border-radius: 999px;
  overflow: hidden;
}
.wiz-progress-fill {
  height: 100%;
  background: var(--primary, #7c3aed);
  border-radius: 999px;
  transition: width .4s ease;
  width: 25%;
}
.wiz-steps-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted, #888);
  white-space: nowrap;
}

/* Steps */
.wiz-step { display: none; }
.wiz-step--active { display: block; }

/* Term chips */
.term-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.term-chip {
  flex: 1 1 60px;
  padding: 10px 8px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-body, #333);
  cursor: pointer;
  transition: .2s ease;
  text-align: center;
}
.term-chip:hover,
.term-chip.active {
  border-color: var(--primary, #7c3aed);
  background: #f3eeff;
  color: var(--primary, #7c3aed);
}
.term-chip.active { box-shadow: 0 0 0 2px rgba(124,58,237,.2); }

/* Option grid (purpose / employment) */
.wiz-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wiz-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: .2s ease;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-body, #333);
  text-align: center;
  line-height: 1.3;
}
.wiz-option i {
  font-size: 1.2rem;
  color: var(--text-muted, #888);
  transition: .2s;
}
.wiz-option:hover,
.wiz-option--active {
  border-color: var(--primary, #7c3aed);
  background: #f3eeff;
  color: var(--primary, #7c3aed);
}
.wiz-option--active i,
.wiz-option:hover i { color: var(--primary, #7c3aed); }
.wiz-option--active {
  box-shadow: 0 0 0 2px rgba(124,58,237,.2);
}

/* Phone input in wizard */
.wiz-phone-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f7f8fc;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 0 14px;
  transition: .2s;
}
.wiz-phone-wrap:focus-within {
  border-color: var(--primary, #7c3aed);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.wiz-phone-wrap .flag {
  font-size: 1.1rem;
  margin-right: 8px;
}
.wiz-phone-wrap .phone-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

/* Summary box */
.wiz-loan-summary {
  background: #f3eeff;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wiz-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
}
.wiz-summary-row span { color: var(--text-muted, #888); }
.wiz-summary-row strong { color: var(--primary, #7c3aed); }

/* Nav */
.wiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  gap: 10px;
}
.wiz-back-btn { min-width: 110px; }
.wiz-next-btn { flex: 1; }

/* Input label */
.wiz-input-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-body, #333);
  margin-bottom: 8px;
  display: block;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
