/* ==========================================================================
   EMI SAVERS · QUIET BANKING — Balance Transfer assessment
   (emi-savings-assessment.css)
   Page components only; inherits the v2 system from style.css.
   All JS-toggled states preserved: is-visible, is-active, is-complete,
   is-invalid/is-valid, esa-mobile-cta.is-visible.
   ========================================================================== */

/* ---------- Hero ---------- */
.esa-hero-bullets {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.55rem 1.9rem;
  margin-bottom: 1.9rem;
}
.esa-hero-bullets li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
}
.esa-hero-bullets i { color: #58d99a; margin-right: 0.45rem; }

.esa-hero-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
  margin: 1.1rem 0 1.75rem;
}
.esa-hero-note i { color: #58d99a; margin-right: 0.3rem; }

.esa-trust-strip { border-top: 1px solid var(--line-on-dark); padding-top: 1.4rem; }
.esa-trust-strip li {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.25rem 1rem;
}
.esa-trust-strip i { color: #58d99a; margin-right: 0.35rem; }
.esa-stars { color: #e9b949; letter-spacing: 0.12em; }

/* ---------- Sticky progress: a ruled instrument, not a gadget ---------- */
.esa-progress {
  position: sticky;
  top: 72px;
  z-index: 1020;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0 0.95rem;
}

.esa-progress-steps { display: flex; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.65rem; }

.esa-progress-step {
  display: flex; align-items: center; gap: 0.6rem;
  flex: 1; min-width: 0;
  opacity: 0.45;
  transition: opacity var(--t-med) ease;
}
.esa-progress-step.is-active, .esa-progress-step.is-complete { opacity: 1; }

.esa-progress-dot {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  font-size: 0.8rem; font-weight: 750;
  color: var(--text-soft);
  background: var(--white);
  transition: border-color var(--t-med) ease, background-color var(--t-med) ease, color var(--t-med) ease;
}
.esa-progress-step.is-active .esa-progress-dot {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--white);
}
.esa-progress-step.is-complete .esa-progress-dot {
  border-color: var(--green-500);
  background: var(--green-500);
  color: var(--white);
}

.esa-progress-text { line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esa-progress-text strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-strong);
}
.esa-progress-text small { font-size: 0.79rem; color: var(--text-soft); }

.esa-progress-track { height: 3px; background: var(--line); overflow: hidden; }
.esa-progress-fill {
  height: 100%; width: 33.34%;
  background: var(--green-500);
  transition: width 0.5s var(--ease);
}

/* ---------- Form sheet ---------- */
.esa-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 2.4rem;
  box-shadow: none;
}
.esa-form-card legend { color: var(--text-strong); font-weight: 750; letter-spacing: -0.015em; }

.esa-step { display: none; }
.esa-step.is-visible { display: block; animation: esaStep 0.4s var(--ease) both; }
@keyframes esaStep { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Choice cards: ballot options ---------- */
.esa-choice-card {
  display: flex; flex-direction: column; height: 100%;
  gap: 0.1rem;
  padding: 1.05rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-ctrl);
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease;
}
.esa-choice-card i { font-size: 1.2rem; color: var(--text-soft); margin-bottom: 0.3rem; transition: color var(--t-fast) ease; }
.esa-choice-card span { font-weight: 700; color: var(--text-strong); font-size: 0.95rem; }
.esa-choice-card small { color: var(--text-soft); font-size: 0.8rem; }
.esa-choice-card:hover { border-color: var(--line-strong); transform: none; box-shadow: none; }

.btn-check:checked + .esa-choice-card {
  border-color: var(--ink-900);
  background: var(--paper);
  box-shadow: none;
}
.btn-check:checked + .esa-choice-card i { color: var(--green-600); }
.btn-check:focus-visible + .esa-choice-card { outline: 3px solid rgba(13, 79, 158, 0.4); outline-offset: 2px; }

/* ---------- Sticky benefits: statement panel on ink ---------- */
.esa-benefits-card {
  position: sticky;
  top: 168px;
  background: var(--ink-900) var(--dots-dark);
  background-size: 26px 26px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--r-card);
  padding: 2.4rem;
  box-shadow: none;
}
.esa-benefits-card h2 { color: var(--white); }

.esa-benefits-list li {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.7rem 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.esa-benefits-list li:last-child { border-bottom: 0; }
.esa-benefits-list .icon-badge {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: transparent;
  border-color: var(--line-on-dark);
  color: #58d99a;
  font-size: 1rem;
}

.esa-benefits-stat {
  display: flex; gap: 2rem;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-ctrl);
  padding: 1.1rem 1.3rem;
  margin-top: 1.4rem;
}
.esa-benefits-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.esa-benefits-stat small { color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; }
.esa-benefits-card > .small { color: rgba(255, 255, 255, 0.45) !important; }

/* ---------- Activity badge ---------- */
.esa-activity-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--text-body);
  font-size: 0.84rem;
  font-weight: 600;
}
.esa-activity-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500);
  animation: esaPulse 2s ease-in-out infinite;
}
@keyframes esaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 159, 91, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(14, 159, 91, 0); }
}

/* ---------- Trust grid: ruled cells ---------- */
.esa-trust-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.esa-trust-grid li {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-align: center;
  padding: 1.4rem 0.5rem;
  background: var(--white);
  border-right: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-body);
}
.esa-trust-grid li:last-child { border-right: 0; }
.esa-trust-grid li:hover { transform: none; box-shadow: none; }
.esa-trust-grid i { font-size: 1.25rem; color: var(--green-600); }

/* ---------- Mobile sticky CTA ---------- */
.esa-mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(10, 27, 51, 0.08);
  transform: translateY(110%);
  transition: transform var(--t-med) var(--ease);
}
.esa-mobile-cta.is-visible { transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .esa-progress { top: 64px; }
  .esa-progress-text small { display: none; }
  .esa-benefits-card { position: static; }
  .esa-trust-grid { grid-template-columns: repeat(3, 1fr); }
  .esa-trust-grid li:nth-child(3n) { border-right: 0; }
  .esa-trust-grid li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  body { padding-bottom: 76px; }
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

@media (max-width: 575.98px) {
  .esa-form-card { padding: 1.4rem; }
  .esa-benefits-card { padding: 1.6rem; }
  .esa-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .esa-trust-grid li { border-bottom: 1px solid var(--line); }
  .esa-trust-grid li:nth-child(3n) { border-right: 1px solid var(--line); }
  .esa-trust-grid li:nth-child(2n) { border-right: 0; }
  .esa-trust-grid li:nth-last-child(-n+2) { border-bottom: 0; }
  .esa-progress-text { display: none; }
  .esa-progress-steps { justify-content: center; gap: 1.5rem; }
  .esa-progress-step { flex: 0 0 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .esa-step.is-visible { animation: none; }
  .esa-activity-pulse { animation: none; }
  .esa-mobile-cta { transition: none; }
}
/* Selected amount text */
#loanAmountValue {
    color: #28a745;   /* Green */
    font-weight: 700;
}

/* Chrome, Edge, Safari */
.form-range::-webkit-slider-thumb {
    background: #28a745;
    border: 2px solid #28a745;
}

.form-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 10px;
}

/* Firefox */
.form-range::-moz-range-thumb {
    background: #28a745;
    border: 2px solid #28a745;
}

.form-range::-moz-range-track {
    height: 6px;
    border-radius: 10px;
}

/* IE */
.form-range::-ms-thumb {
    background: #28a745;
    border: 2px solid #28a745;
}