/* Grievance redressal journey */

/* ═══════ Grievance Redressal — Premium Redesign ═══════ */
/* ── Our Lenders ── */
.lenders-grid {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: center; align-items: center; margin-top: 40px;
}
.lender-card {
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 22px 20px; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px;
  width: 200px; flex: 0 0 200px; box-sizing: border-box;
  min-height: 168px;
  transition: var(--transition); cursor: default;
}
.lender-card:hover { box-shadow: var(--shadow-md); border-color: rgba(var(--brand-blue-600-rgb),0.35); transform: translateY(-2px); }
.lender-logo-wrap {
  width: 140px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.lender-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lender-logo-ph {
  width: 130px; height: 52px; background: var(--gray-100); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.04em;
}
/* Dark backdrop for logos designed for dark headers (e.g. Bhala) */
.lender-logo-wrap.on-dark {
  background: linear-gradient(135deg, var(--brand-blue-700), var(--brand-blue-500));
  border-radius: 6px;
  padding: 4px 12px;
  box-sizing: border-box;
}
/* Wordmark used when no image logo is available */
.lender-textlogo {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1;
}
.lender-textlogo-main {
  font-family: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.45rem; font-weight: 800; color: var(--navy);
  letter-spacing: -0.025em; line-height: 1;
}
.lender-textlogo-sub {
  font-size: 0.62rem; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.22em; margin-top: 4px;
}
.lender-name { font-size: 0.8rem; font-weight: 700; color: var(--navy); text-align: center; line-height: 1.3; }
.lender-type { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 500; }
@media (max-width: 640px) { .lender-card { min-width: 140px; } }

.grv-section { margin-top: 48px; }

/* Intro */
.grv-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: var(--brand-blue-50); border: 1px solid var(--brand-blue-200); border-left: 4px solid var(--navy);
  border-radius: var(--radius-lg); padding: 28px 36px; margin-bottom: 36px;
}
.grv-intro-text .label-tag { margin-bottom: 10px; }
.grv-intro-h { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; letter-spacing: -0.02em; }
.grv-intro-p { font-size: 0.84rem; color: var(--text-light); line-height: 1.7; max-width: 520px; margin: 0; }
.grv-intro-stats { display: flex; gap: 0; flex-shrink: 0; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--white); overflow: hidden; }
.grv-intro-stat { padding: 16px 28px; text-align: center; }
.grv-intro-stat + .grv-intro-stat { border-left: 1px solid var(--hairline); }
.grv-stat-num { font-family: 'IBM Plex Sans', monospace; font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.grv-stat-lbl { font-size: 0.67rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; line-height: 1.4; }

/* Step progress bar */
.grv-progress {
  display: flex; align-items: center; background: var(--white);
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 20px 32px; margin-bottom: 28px; gap: 0;
}
.grv-prog-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 100px; }
.grv-prog-circle {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 0.78rem; font-weight: 700;
  color: var(--text-muted); background: var(--white); transition: 0.2s;
}
.grv-prog-step.p-l1 .grv-prog-circle { background: var(--navy); border-color: var(--navy); color: #fff; }
.grv-prog-step.p-l2 .grv-prog-circle { background: var(--navy-mid); border-color: var(--navy-mid); color: #fff; }
.grv-prog-step.p-l3 .grv-prog-circle { background: var(--brand-blue-600); border-color: var(--brand-blue-600); color: #fff; }
.grv-prog-step.p-rbi .grv-prog-circle { background: #7F1D1D; border-color: #7F1D1D; color: #FCA5A5; }
.grv-prog-name { font-size: 0.72rem; font-weight: 600; color: var(--gray-700); text-align: center; line-height: 1.3; }
.grv-prog-sub { font-size: 0.62rem; color: var(--text-muted); text-align: center; }
.grv-prog-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--navy), var(--gray-300)); position: relative; margin: 0 6px; align-self: center; margin-bottom: 22px; }
.grv-prog-line::after { content: '▶'; position: absolute; right: -7px; top: -7px; font-size: 0.6rem; color: var(--gray-400); }

/* Cards row */
.grv-cards { display: grid; grid-template-columns: 1fr 52px 1fr 52px 1fr 52px 1fr; align-items: stretch; gap: 0; }

.grv-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow 0.25s, border-color 0.25s;
}
.grv-card:hover { box-shadow: 0 6px 28px rgba(var(--brand-blue-900-rgb),0.09); border-color: rgba(var(--brand-blue-900-rgb),0.22); }
.grv-card-accent { height: 3px; }
.grv-card-l1 .grv-card-accent { background: var(--navy); }
.grv-card-l2 .grv-card-accent { background: var(--navy-mid); }
.grv-card-l3 .grv-card-accent { background: var(--navy-soft); }
.grv-card-rbi .grv-card-accent { background: #B91C1C; }

.grv-card-inner { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.grv-lvl-badge {
  display: inline-block; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 2px 9px; border-radius: 20px; margin-bottom: 9px;
  background: var(--gold-pale); color: var(--navy); border: 1px solid rgba(var(--brand-blue-600-rgb),0.25);
}
.grv-badge-rbi { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.grv-card-title { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; line-height: 1.3; }
.grv-card-sub { font-size: 0.71rem; color: var(--text-muted); line-height: 1.45; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); }
.grv-ci-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.grv-ci { display: flex; align-items: flex-start; gap: 9px; }
.grv-ci-icon { width: 24px; height: 24px; border-radius: 6px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; color: var(--navy-soft); }
.grv-ci-lbl { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 1px; }
.grv-ci-val { font-size: 0.78rem; color: var(--text-body); line-height: 1.45; font-weight: 500; }
.grv-ci-val a { color: var(--navy); text-decoration: none; }
.grv-ci-val a:hover { color: var(--gold); text-decoration: underline; }
.grv-card-foot { margin-top: auto; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--hairline); }
.grv-tl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gray-50); border: 1px solid var(--hairline); border-radius: 20px;
  padding: 4px 10px; font-size: 0.71rem; color: var(--text-light);
}
.grv-tl-chip strong { color: var(--navy); font-weight: 600; }
.grv-rbi-note { font-size: 0.73rem; color: #991B1B; background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius); padding: 8px 12px; line-height: 1.5; }

/* Card connectors */
.grv-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 4px; }
.grv-arrow-lbl { font-size: 0.58rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; line-height: 1.3; }
.grv-arrow-sub { font-size: 0.56rem; color: var(--text-muted); text-align: center; }

/* FAQ */
.grv-faq { margin-top: 32px; }
.grv-faq-hd { font-size: 0.96rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.grv-faq-item { border: 1px solid var(--hairline); border-radius: var(--radius); margin-bottom: 6px; overflow: hidden; background: var(--white); }
.grv-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; cursor: pointer; font-size: 0.84rem; font-weight: 600; color: var(--navy); transition: background 0.15s; user-select: none; }
.grv-faq-q:hover { background: var(--gray-50); }
.grv-faq-q svg { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s; }
.grv-faq-item.grv-open .grv-faq-q svg { transform: rotate(180deg); }
.grv-faq-a { display: none; padding: 0 18px 13px; font-size: 0.81rem; color: var(--text-light); line-height: 1.7; }
.grv-faq-item.grv-open .grv-faq-a { display: block; }

/* Compliance note */
.grv-compliance-note { margin-top: 24px; padding: 14px 18px; background: var(--gray-50); border: 1px solid var(--hairline); border-radius: var(--radius); font-size: 0.76rem; color: var(--text-muted); line-height: 1.65; }
.grv-compliance-note strong { color: var(--navy); }

@media (max-width: 1000px) {
  .grv-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .grv-arrow { display: none; }
  .grv-prog-sub { display: none; }
}
@media (max-width: 640px) {
  .grv-cards { grid-template-columns: 1fr; gap: 14px; }
  .grv-intro { flex-direction: column; gap: 20px; }
  .grv-intro-stats { width: 100%; }
  .grv-prog-line { display: none; }
  .grv-progress { flex-wrap: wrap; gap: 16px; justify-content: center; }
}

/* ════════════ Grievance Journey · vertical story ════════════ */
.gjr-journey {
  position: relative;
  padding: 8px 0 24px;
}

/* Each level = its own scene */
.gjr-stage {
  position: relative;
  padding: 56px 0;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.gjr-stage:first-child { padding-top: 28px; }
.gjr-stage::before {
  content: '';
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(180deg, transparent, var(--hairline) 10%, var(--hairline) 90%, transparent);
  opacity: 0; pointer-events: none;
}

/* Giant editorial level number watermark */
.gjr-level-watermark {
  position: absolute;
  top: 24px; right: -8px;
  font-family: 'IBM Plex Sans', 'Helvetica Neue', sans-serif;
  font-size: clamp(7rem, 16vw, 15rem);
  font-weight: 800; line-height: 0.82;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(var(--brand-blue-900-rgb),0.09);
  pointer-events: none; user-select: none;
  z-index: 0;
}
.gjr-stage-alt .gjr-level-watermark { right: auto; left: -8px; }
.gjr-stage-l4 .gjr-level-watermark { -webkit-text-stroke-color: rgba(127,29,29,0.10); }

/* Inner grid: text + contact card */
.gjr-stage-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Text column */
.gjr-stage-text { max-width: 480px; }
.gjr-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 14px 7px 11px; border-radius: 30px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--hairline);
  box-shadow: 0 2px 10px rgba(var(--brand-blue-900-rgb),0.05);
  margin-bottom: 22px;
}
.gjr-badge-num {
  font-family: 'IBM Plex Sans', monospace;
  background: var(--navy); color: #fff;
  padding: 2px 7px; border-radius: 20px;
  font-size: 0.58rem; letter-spacing: 0.04em;
}
.gjr-stage-l2 .gjr-badge-num { background: var(--navy-mid); }
.gjr-stage-l3 .gjr-badge-num { background: var(--brand-blue-600); }
.gjr-stage-l4 .gjr-badge-num { background: #7F1D1D; }
.gjr-badge-sep { width: 1px; height: 11px; background: var(--hairline); }
.gjr-badge-final { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }

.gjr-stage-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}
.gjr-stage-l4 .gjr-stage-title { color: #7F1D1D; }

.gjr-stage-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.72;
  margin: 0 0 26px;
  max-width: 440px;
}

/* SLA chip */
.gjr-sla {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px; border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--hairline);
  font-size: 0.82rem; color: var(--text-light);
  box-shadow: 0 4px 18px rgba(var(--brand-blue-900-rgb),0.05);
}
.gjr-sla strong { color: var(--navy); font-weight: 700; }
.gjr-sla-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 4px rgba(22,163,74,0.16);
  animation: gjrPulse 2.2s ease-in-out infinite;
}
.gjr-stage-l2 .gjr-sla-dot { background: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,0.16); }
.gjr-stage-l3 .gjr-sla-dot { background: #D97706; box-shadow: 0 0 0 4px rgba(217,119,6,0.18); }
.gjr-stage-l4 .gjr-sla-dot { background: #DC2626; box-shadow: 0 0 0 4px rgba(220,38,38,0.18); }
.gjr-sla-final strong { color: #7F1D1D; }
@keyframes gjrPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}

/* Contact card (right column / left in alt) */
.gjr-contact-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(var(--brand-blue-900-rgb),0.08), 0 2px 8px rgba(var(--brand-blue-900-rgb),0.04);
  position: relative;
}
.gjr-contact-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-divider);
}
.gjr-stage-l2 .gjr-contact-card::before { background: linear-gradient(90deg, var(--navy-mid), var(--gold)); }
.gjr-stage-l3 .gjr-contact-card::before { background: linear-gradient(90deg, var(--navy-soft), #D97706); }
.gjr-stage-l4 .gjr-contact-card::before { background: linear-gradient(90deg, #7F1D1D, #DC2626); }

.gjr-ct-card-hd {
  padding: 20px 24px 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.gjr-ct-card-tag {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--navy);
}
.gjr-ct-card-meta {
  font-size: 0.66rem; color: var(--text-muted);
  font-family: 'IBM Plex Sans', monospace; letter-spacing: 0.04em;
}

.gjr-ct-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  text-decoration: none; color: inherit;
  border-top: 1px solid var(--hairline);
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.gjr-ct-link { cursor: pointer; }
.gjr-ct-link:hover { background: var(--gray-50); }
.gjr-ct-link:hover .gjr-ct-arrow { transform: translate(3px, -3px); opacity: 1; color: var(--gold); }
.gjr-ct-link:hover .gjr-ct-val { color: var(--navy); }
.gjr-stage-l4 .gjr-ct-link:hover .gjr-ct-arrow { color: #B91C1C; }
.gjr-stage-l4 .gjr-ct-link:hover .gjr-ct-val { color: #7F1D1D; }

.gjr-ct-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold-pale); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid rgba(var(--brand-blue-600-rgb),0.20);
}
.gjr-stage-l4 .gjr-ct-icon {
  background: #FEF2F2; color: #991B1B; border-color: #FECACA;
}

.gjr-ct-text { flex: 1; min-width: 0; }
.gjr-ct-lbl {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px;
}
.gjr-ct-val {
  font-size: 0.88rem; color: var(--text-body); font-weight: 500;
  line-height: 1.45; word-break: break-word;
  transition: color 0.18s;
}
.gjr-ct-val-muted { color: var(--text-muted); font-style: italic; font-weight: 400; }
.gjr-ct-val strong { color: var(--navy); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.gjr-stage-l4 .gjr-ct-val strong { color: #7F1D1D; }
.gjr-ct-arrow {
  flex-shrink: 0; font-size: 1.05rem;
  color: var(--text-muted); opacity: 0.65;
  transition: transform 0.22s, opacity 0.18s, color 0.18s;
  font-weight: 700;
}

.gjr-ct-footnote {
  padding: 13px 24px 18px;
  border-top: 1px solid #FECACA;
  background: #FEF2F2;
  color: #991B1B;
  font-size: 0.74rem;
  line-height: 1.55;
  display: flex; align-items: flex-start; gap: 9px;
}
.gjr-ct-footnote svg { flex-shrink: 0; margin-top: 2px; }

/* Connector pill between stages */
.gjr-connector {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; padding: 12px 0;
}
.gjr-connector-line {
  width: 2px; height: 40px;
  background-image: linear-gradient(to bottom, var(--gray-300) 55%, transparent 0%);
  background-size: 2px 8px; background-repeat: repeat-y;
}
.gjr-connector-pill {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 20px; border-radius: 40px;
  background: var(--white);
  border: 1px solid var(--hairline);
  box-shadow: 0 6px 22px rgba(var(--brand-blue-900-rgb),0.07);
  margin: 4px 0;
}
.gjr-connector-q {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
}
.gjr-connector-sep { width: 1px; height: 14px; background: var(--hairline); }
.gjr-connector-a {
  font-size: 0.78rem; color: var(--text-light); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.gjr-connector-a strong { color: var(--navy); font-weight: 700; }
.gjr-connector-arrow {
  display: inline-block; font-weight: 700;
  animation: gjrBob 1.8s ease-in-out infinite;
}
@keyframes gjrBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.gjr-connector-final .gjr-connector-pill {
  background: #FEF2F2;
  border-color: #FECACA;
  box-shadow: 0 6px 22px rgba(127,29,29,0.10);
}
.gjr-connector-final .gjr-connector-q { color: #B91C1C; }
.gjr-connector-final .gjr-connector-a strong { color: #7F1D1D; }
.gjr-connector-final .gjr-connector-sep { background: #FECACA; }
.gjr-connector-final .gjr-connector-line {
  background-image: linear-gradient(to bottom, #FCA5A5 55%, transparent 0%);
}

/* Responsive · stack everything vertically */
@media (max-width: 960px) {
  .gjr-stage { padding: 36px 0; min-height: unset; }
  .gjr-stage-grid,
  .gjr-stage-alt .gjr-stage-grid { grid-template-columns: 1fr; gap: 28px; }
  .gjr-stage-alt .gjr-stage-text { order: 1; }
  .gjr-stage-alt .gjr-contact-card { order: 2; }
  .gjr-stage-alt .gjr-level-watermark { left: auto; right: -8px; }
  .gjr-level-watermark { font-size: 9rem; top: 12px; }
  .gjr-stage-text { max-width: 100%; }
  .gjr-stage-desc { max-width: 100%; }
}
@media (max-width: 640px) {
  .gjr-stage { padding: 28px 0; }
  .gjr-level-watermark { font-size: 6rem; top: 4px; opacity: 0.85; }
  .gjr-stage-title { font-size: 1.6rem; }
  .gjr-stage-desc { font-size: 0.88rem; margin-bottom: 22px; }
  .gjr-badge { font-size: 0.58rem; padding: 6px 12px 6px 9px; }
  .gjr-ct-card-hd { padding: 16px 18px 12px; flex-wrap: wrap; gap: 6px; }
  .gjr-ct-row { padding: 13px 18px; gap: 12px; }
  .gjr-ct-icon { width: 36px; height: 36px; }
  .gjr-ct-val { font-size: 0.84rem; }
  .gjr-connector-pill { flex-wrap: wrap; justify-content: center; gap: 8px; padding: 10px 16px; }
  .gjr-connector-sep { display: none; }
  .gjr-connector-a { font-size: 0.74rem; }
  .gjr-sla { padding: 9px 15px; font-size: 0.78rem; }
}
