/* NextCredit loan eligibility calculator */

.elig-page{

  --navy:#211f58;

  --navy-2:#2c2a72;

  --amber:#f29a00;

  --amber-2:#ffb31c;

  --ink:#171842;

  --muted:#646780;

  --line:rgba(36,37,63,.1);

  color:var(--ink);

  font-family:"Plus Jakarta Sans",Inter,system-ui,sans-serif;

  background:#f6f7fc;

}

.elig-hero{

  position:relative;

  overflow:hidden;

  padding:118px 20px 40px;

  color:#fff;

  background:

    radial-gradient(circle at 12% 20%,rgba(242,154,0,.22),transparent 28%),

    radial-gradient(circle at 88% 80%,rgba(114,104,231,.28),transparent 32%),

    linear-gradient(125deg,#101239 0%,#1a1b52 52%,#292475 100%);

}

.elig-hero-glow{

  position:absolute;

  inset:auto -80px -120px auto;

  width:280px;

  height:280px;

  border-radius:50%;

  background:#f29a00;

  filter:blur(8px);

  opacity:.18;

}

.elig-hero-inner{

  position:relative;

  z-index:1;

  width:min(1100px,calc(100% - 8px));

  margin:0 auto;

}

.elig-kicker{

  display:inline-flex;

  align-items:center;

  gap:8px;

  margin:0 0 14px;

  padding:7px 12px;

  border:1px solid rgba(255,201,79,.22);

  border-radius:999px;

  color:#ffd36f;

  background:rgba(255,255,255,.08);

  font-size:11px;

  font-weight:800;

  letter-spacing:.14em;

  text-transform:uppercase;

}

.elig-kicker svg{width:14px;height:14px}

.elig-hero h1{

  margin:0 0 12px;

  font-size:clamp(32px,4.4vw,52px);

  line-height:1.08;

  letter-spacing:-.045em;

}

.elig-hero p{

  max-width:640px;

  margin:0;

  color:rgba(255,255,255,.72);

  font-size:16px;

  line-height:1.7;

}

.elig-wrap{

  position:relative;

  z-index:3;

  width:min(1100px,calc(100% - 32px));

  margin:24px auto 72px;

}

.elig-types{

  display:grid;

  grid-template-columns:repeat(4,minmax(0,1fr));

  gap:10px;

  margin-bottom:18px;

}

.elig-type{

  display:flex;

  align-items:center;

  gap:8px;

  width:100%;

  min-width:0;

  min-height:48px;

  padding:8px 10px;

  border:1px solid var(--line);

  border-radius:14px;

  color:#2b2d4a;

  background:#fff;

  box-shadow:0 10px 24px rgba(28,29,76,.05);

  font-family:inherit;

  font-size:13px;

  font-weight:750;

  line-height:1.2;

  text-align:left;

  cursor:pointer;

  transition:border-color .2s,background .2s,color .2s,transform .2s;

}

.elig-type-icon{

  flex:none;

  width:28px;

  height:28px;

  display:grid;

  place-items:center;

  overflow:hidden;

  border-radius:9px;

  color:#ec9000;

  background:#fff7ea;

}

.elig-type-icon svg,

.elig-type svg{

  display:block;

  width:15px!important;

  height:15px!important;

  flex:none;

}

.elig-type-label{

  min-width:0;

  overflow:hidden;

  text-overflow:ellipsis;

  white-space:nowrap;

}

.elig-type:hover{transform:translateY(-1px);border-color:rgba(242,154,0,.35)}

.elig-type.is-active{

  color:#fff;

  border-color:var(--navy);

  background:var(--navy);

}

.elig-type.is-active .elig-type-icon{color:var(--navy);background:#ffd36f}

.elig-grid{

  display:grid;

  grid-template-columns:1.08fr .92fr;

  gap:18px;

  align-items:start;

}

.elig-card,

.elig-result{

  border:1px solid var(--line);

  border-radius:28px;

  background:#fff;

  box-shadow:0 22px 50px rgba(16,18,60,.08);

}

.elig-card{padding:26px 26px 22px}

.elig-card-head h2{

  margin:0;

  font-size:22px;

  letter-spacing:-.03em;

}

.elig-card-head p{

  margin:6px 0 20px;

  color:var(--muted);

  font-size:14px;

}

.elig-field{margin-bottom:18px}

.elig-field-top,

.elig-split{

  display:flex;

  align-items:center;

  justify-content:space-between;

  gap:12px;

}

.elig-split{

  display:grid;

  grid-template-columns:1fr 1.15fr;

  align-items:end;

  margin-bottom:6px;

}

.elig-field-top label,

.elig-label{

  color:#2b2d4a;

  font-size:13px;

  font-weight:750;

}

.elig-pill{

  display:inline-flex;

  align-items:center;

  gap:4px;

  min-width:132px;

  padding:6px 10px;

  border:1px solid #eceef6;

  border-radius:12px;

  color:var(--navy);

  background:#f7f8fd;

  font-size:13px;

  font-weight:800;

}

.elig-pill input{

  width:100%;

  min-width:0;

  border:0;

  background:transparent;

  color:inherit;

  font:inherit;

  text-align:right;

  outline:none;

}

.elig-range{

  width:100%;

  margin-top:10px;

  accent-color:var(--amber);

  cursor:pointer;

}

.elig-hint{

  display:block;

  margin-top:6px;

  color:#8a8da3;

  font-size:12px;

}

.elig-seg{

  display:flex;

  flex-wrap:wrap;

  gap:6px;

  margin-top:8px;

}

.elig-seg button{

  padding:8px 10px;

  border:1px solid var(--line);

  border-radius:11px;

  color:#3d4060;

  background:#fff;

  font:inherit;

  font-size:12px;

  font-weight:750;

  cursor:pointer;

}

.elig-seg button.is-active{

  color:#fff;

  border-color:var(--navy);

  background:var(--navy);

}

.elig-seg--two-col{
  display:flex;
  gap:8px;
}
.elig-seg--two-col button{
  flex:1 1 0%;
  min-width:0;
  text-align:center;
}
.elig-score-prompt{
  margin-top:10px;
  transition:all .25s ease;
}
.elig-score-prompt.is-hidden{
  display:none;
}
.elig-score-cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border:1px dashed rgba(242,154,0,.45);
  border-radius:10px;
  color:#171842;
  background:#fffdf7;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  transition:border-color .2s,background .2s,transform .2s;
}
.elig-score-cta svg{
  width:14px!important;
  height:14px!important;
  color:#f29a00;
  flex:none;
}
.elig-score-cta strong{
  color:#f29a00;
  font-weight:750;
  margin-left:2px;
}
.elig-score-cta:hover{
  border-color:#f29a00;
  background:#fff8eb;
  transform:translateX(2px);
}
.elig-result{

  position:sticky;

  top:96px;

  overflow:hidden;

  padding:22px 22px 20px;

  color:#fff;

  background:

    radial-gradient(circle at 100% 0,rgba(242,154,0,.28),transparent 36%),

    linear-gradient(160deg,#171949,#2a2670 58%,#211f58);

}

.elig-result-top{

  display:flex;

  justify-content:space-between;

  align-items:center;

  gap:10px;

  margin-bottom:4px;

}

.elig-status{

  padding:6px 10px;

  border-radius:999px;

  background:rgba(34,197,94,.18);

  color:#86efac;

  font-size:11px;

  font-weight:800;

  letter-spacing:.06em;

  text-transform:uppercase;

  white-space:nowrap;

}

.elig-status.is-possible{background:rgba(242,154,0,.2);color:#ffd36f}

.elig-status.is-stretch{background:rgba(244,114,182,.18);color:#f9a8d4}

.elig-product{

  color:rgba(255,255,255,.7);

  font-size:12px;

  font-weight:700;

  text-align:right;

}

.elig-gauge{

  position:relative;

  width:196px;

  height:196px;

  margin:4px auto 0;

}

.elig-gauge svg{width:100%;height:100%;transform:rotate(-90deg)}

.elig-gauge-track,

.elig-gauge-value{

  fill:none;

  stroke-width:10;

}

.elig-gauge-track{stroke:rgba(255,255,255,.12)}

.elig-gauge-value{

  stroke:#f5a000;

  stroke-linecap:round;

  stroke-dasharray:0 327;

  transition:stroke-dasharray .55s cubic-bezier(.2,.8,.2,1),stroke .3s;

}

.elig-gauge-copy{

  position:absolute;

  inset:28px;

  display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  text-align:center;

  overflow:hidden;

}

.elig-gauge-copy small{

  display:block;

  max-width:100%;

  color:rgba(255,255,255,.62);

  font-size:10px;

  font-weight:800;

  letter-spacing:.08em;

  text-transform:uppercase;

  line-height:1.25;

  white-space:nowrap;

}

.elig-gauge-copy strong{

  display:block;

  max-width:100%;

  margin-top:6px;

  font-size:22px;

  font-weight:800;

  letter-spacing:-.04em;

  line-height:1.1;

  white-space:nowrap;

}

.elig-fit-msg{

  margin:10px 0 12px;

  color:rgba(255,255,255,.86);

  font-size:13px;

  font-weight:650;

  line-height:1.4;

  text-align:center;

}

.elig-fit-msg.is-ok{color:#86efac}

.elig-fit-msg.is-over{color:#f9a8d4}

.elig-metrics{

  display:grid;

  grid-template-columns:minmax(0,1fr) minmax(0,1fr);

  gap:8px;

  margin:0 0 12px;

}

.elig-metrics>div{

  min-width:0;

  padding:10px 12px;

  border:1px solid rgba(255,255,255,.1);

  border-radius:14px;

  background:rgba(255,255,255,.06);

}

.elig-metrics dt{

  color:rgba(255,255,255,.58);

  font-size:10px;

  font-weight:700;

  letter-spacing:.02em;

  line-height:1.3;

}

.elig-metrics dd{

  margin:4px 0 0;

  font-size:16px;

  font-weight:800;

  letter-spacing:-.03em;

  white-space:nowrap;

  overflow:hidden;

  text-overflow:ellipsis;

}

.elig-metrics.is-ok #elig-requested-out,

.elig-metrics.is-ok .js-elig-eligible{color:#86efac}

.elig-metrics.is-over #elig-requested-out,

.elig-metrics.is-over .js-elig-eligible{color:#f9a8d4}

.elig-metric--full{
  grid-column:1 / -1;
}
#elig-tenure-out{
  font-size:clamp(12px,1.1vw,14px);
}
.elig-note{

  min-height:0;

  margin:0 0 14px;

  color:rgba(255,255,255,.78);

  font-size:13px;

  line-height:1.55;

}

.elig-actions{display:grid;gap:8px}

.elig-apply{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  gap:8px;

  width:100%;

  min-height:48px;

  border:0;

  border-radius:14px;

  color:#171842;

  background:linear-gradient(90deg,#ffb31c,#f29a00);

  font:inherit;

  font-size:14px;

  font-weight:850;

  cursor:pointer;

}

.elig-apply svg{width:16px;height:16px}

.elig-secondary{

  display:block;

  text-align:center;

  color:#ffd36f;

  font-size:13px;

  font-weight:750;

}

.elig-disclaimer{

  margin:14px 0 0;

  color:rgba(255,255,255,.5);

  font-size:11px;

  line-height:1.5;

}

@media(max-width:960px){

  .elig-grid,

  .elig-split{grid-template-columns:1fr}

  .elig-types{grid-template-columns:repeat(2,minmax(0,1fr))}

  .elig-result{position:static}

}

@media(max-width:700px){

  .elig-hero{padding:104px 16px 48px}

  .elig-wrap{width:min(100% - 24px,1100px);margin:20px auto 64px}

  .elig-card{padding:20px 16px}

  .elig-gauge{width:180px;height:180px}

  .elig-gauge-copy{inset:24px}

  .elig-gauge-copy strong{font-size:20px}

  .elig-metrics dd{font-size:14px}

}

