/* The public home page and calculator tools share this panel treatment. */
.cw-calculator { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 38px; align-items: center; margin-top: 96px; }
.cw-calculator-panel { padding: 26px; border-radius: 24px; background: linear-gradient(145deg, #102a52, #173e73); box-shadow: 0 20px 45px #102a5230; color: #fff; }
.cw-tabs { display: flex; gap: 8px; margin-bottom: 24px; }.cw-tab { flex: 1; min-width: 0; border: 1px solid #92b7dc66; border-radius: 10px; background: transparent; padding: 10px; color: #dbeaf8; font: 800 13px system-ui; cursor: pointer; }.cw-tab.is-active { background: #fff; color: #102a52; }
.cw-input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }.cw-input-group { min-width: 0; }.cw-input-group label { display: block; margin: 0 0 7px; color: #e9f3ff; font-size: 13px; font-weight: 700; }.cw-input-group label span { color: #bad3ec; font-weight: 600; }.cw-input-group input { width: 100%; min-width: 0; border: 1px solid #92b7dc66; border-radius: 9px; background: #ffffff10; padding: 10px 11px; color: #fff; font: 700 14px system-ui; }
.cw-input-group input:focus-visible, .cw-tab:focus-visible, .cw-reset:focus-visible { outline: 3px solid #48a9ff99; outline-offset: 2px; }.cw-input-group input[aria-invalid="true"] { border-color: #ffb4aa; }
.cw-field-error { min-height: 15px; margin: 4px 0 0; color: #ffd0c8; font-size: 11px; line-height: 1.35; }
.cw-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #ffffff35; }.cw-results-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }.cw-results-takeover { grid-template-columns: repeat(3, minmax(0, 1fr)); }.cw-results span { display: block; min-width: 0; color: #bad3ec; font-size: 11px; }.cw-results strong { display: block; margin-top: 5px; overflow-wrap: anywhere; color: #fff; font-size: 22px; }
.cw-disclaimer, .cw-takeover-note { margin: 18px 0 0; color: #c8daec; font-size: 11px; line-height: 1.5; }.cw-takeover-note.is-beneficial { color: #a9f3cd; font-weight: 800; }.cw-takeover-note.is-neutral { color: #ffdca2; font-weight: 800; }
.cw-reset { margin-top: 18px; border: 1px solid #92b7dc66; border-radius: 9px; background: transparent; padding: 8px 12px; color: #fff; font: 700 12px system-ui; cursor: pointer; }.cw-reset:hover { background: #ffffff12; }
.cw-calculator--tool { grid-template-columns: minmax(0, 1fr); margin-top: 0; }.cw-calculator--tool .cw-calculator-panel { width: 100%; }
@media (max-width: 820px) { .cw-calculator { grid-template-columns: 1fr; gap: 26px; margin-top: 64px; }.cw-calculator--tool { margin-top: 0; }.cw-calculator-panel { padding: 20px; }.cw-results { gap: 12px; }.cw-results strong { font-size: 19px; } }
@media (max-width: 620px) { .cw-calculator { margin-top: 64px; }.cw-calculator--tool { margin-top: 0; }.cw-input-grid, .cw-results-three, .cw-results-takeover { grid-template-columns: 1fr; }.cw-results { margin-top: 18px; }.cw-calculator-panel { padding: 20px; }.cw-tabs { margin-bottom: 18px; }.cw-tab { font-size: 12px; padding: 10px 8px; } }

/* Education Loan EMI view — visual repayment planner in the Credwisory palette. */
.cw-calculator-panel.is-emi-mode {
  border: 1px solid #d8e5e8;
  background: #fff;
  color: #102a52;
  box-shadow: 0 22px 55px rgb(16 42 82 / 12%);
}
.cw-calculator-panel.is-emi-mode .cw-tabs {
  margin-bottom: 22px;
  border-radius: 12px;
  background: #f1f6f7;
  padding: 4px;
}
.cw-calculator-panel.is-emi-mode .cw-tab {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #476275;
}
.cw-calculator-panel.is-emi-mode .cw-tab.is-active {
  background: #102a52;
  color: #fff;
  box-shadow: 0 7px 16px rgb(16 42 82 / 18%);
}
.cw-emi-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.cw-emi-heading span {
  color: #087d79;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cw-emi-heading h3 {
  margin: 5px 0 0;
  color: #102a52;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.cw-emi-heading p {
  max-width: 245px;
  margin: 0;
  color: #526b7a;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}
.cw-emi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr);
  gap: 24px;
  align-items: stretch;
}
.cw-emi-controls {
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
  border: 1px solid #e0e9ec;
  border-radius: 16px;
  background: #fbfcfd;
  padding: 20px;
}
.cw-emi-control {
  display: grid;
  gap: 10px;
}
.cw-emi-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cw-emi-control-head label {
  color: #29475a;
  font-size: 12px;
  font-weight: 800;
}
.cw-emi-value {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 4px;
  border: 1px solid #c9d9df;
  border-radius: 8px;
  background: #fff;
  padding: 0 9px;
  color: #102a52;
}
.cw-emi-value:focus-within {
  border-color: #087d79;
  box-shadow: 0 0 0 3px rgb(8 125 121 / 12%);
}
.cw-emi-value b {
  color: #526b7a;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.cw-emi-value input {
  width: 82px;
  min-width: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  padding: 0;
  color: #102a52;
  font: 850 12px/1 system-ui, sans-serif;
  text-align: right;
  outline: 0 !important;
  box-shadow: none !important;
  -moz-appearance: textfield;
}
.cw-emi-value input:focus,
.cw-emi-value input:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.cw-emi-value input::-webkit-inner-spin-button,
.cw-emi-value input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.cw-emi-range {
  --cw-range-progress: 30%;
  width: 100%;
  height: 6px;
  margin: 2px 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #087d79 0 var(--cw-range-progress), #dce7e9 var(--cw-range-progress) 100%);
  cursor: pointer;
  appearance: none;
}
.cw-emi-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f4b51b;
  box-shadow: 0 2px 8px rgb(16 42 82 / 28%);
  appearance: none;
}
.cw-emi-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f4b51b;
  box-shadow: 0 2px 8px rgb(16 42 82 / 28%);
}
.cw-emi-range:focus-visible {
  outline: 3px solid rgb(244 181 27 / 34%);
  outline-offset: 4px;
}
.cw-emi-range-labels {
  display: flex;
  justify-content: space-between;
  color: #526b7a;
  font-size: 9px;
  font-weight: 650;
}
.cw-emi-controls .cw-field-error {
  min-height: 0;
  margin: -10px 0 0;
  color: #b42318;
}
.cw-emi-reset {
  width: max-content;
  margin: -5px 0 0;
  border-color: #c9d9df;
  color: #315166;
}
.cw-emi-reset:hover {
  border-color: #087d79;
  background: #eff9f7;
  color: #087d79;
}
.cw-emi-visual {
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #102a52 0%, #173f70 100%);
  padding: 21px 18px 18px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
}
.cw-emi-monthly {
  width: 100%;
  text-align: center;
}
.cw-emi-monthly span,
.cw-emi-monthly small {
  display: block;
  color: #bed2e7;
  font-size: 10px;
}
.cw-emi-monthly strong {
  display: block;
  margin: 5px 0 3px;
  color: #fff;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.cw-emi-chart {
  --cw-principal-angle: 240deg;
  position: relative;
  display: grid;
  width: 176px;
  height: 176px;
  place-items: center;
  margin: 18px auto;
  border-radius: 50%;
  background: conic-gradient(#20b3a6 0 var(--cw-principal-angle), #f4b51b var(--cw-principal-angle) 360deg);
  box-shadow: 0 0 0 8px rgb(255 255 255 / 8%), 0 14px 28px rgb(0 0 0 / 18%);
}
.cw-emi-chart::before {
  position: absolute;
  inset: 19px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
  background: #13345d;
  content: "";
}
.cw-emi-chart > div {
  position: relative;
  z-index: 1;
  max-width: 125px;
  text-align: center;
}
.cw-emi-chart span {
  display: block;
  color: #bcd0e3;
  font-size: 10px;
}
.cw-emi-chart strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}
.cw-emi-breakdown {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.cw-emi-breakdown > div {
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
  padding: 9px;
}
.cw-emi-breakdown span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bfd2e4;
  font-size: 9px;
  white-space: nowrap;
}
.cw-emi-breakdown i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}
.cw-emi-breakdown i.is-principal { background: #20b3a6; }
.cw-emi-breakdown i.is-interest { background: #f4b51b; }
.cw-emi-breakdown strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #fff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cw-emi-cta {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  border-radius: 9px;
  background: #087d79;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 7px 16px rgb(0 0 0 / 16%);
  transition: background .18s ease, transform .18s ease;
}
.cw-emi-cta:hover {
  background: #079087;
  transform: translateY(-1px);
}
.cw-emi-disclaimer {
  margin: 16px 0 0;
  color: #526b7a;
  text-align: center;
}

@media (max-width: 1200px) {
  .cw-emi-layout { grid-template-columns: 1fr; }
  .cw-emi-visual { grid-template-columns: minmax(0, .8fr) minmax(170px, 1fr); align-items: center; gap: 12px 18px; }
  .cw-emi-monthly { text-align: left; }
  .cw-emi-chart { grid-column: 2; grid-row: 1 / span 2; }
  .cw-emi-breakdown { grid-column: 1; }
  .cw-emi-cta { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .cw-emi-layout { grid-template-columns: minmax(0, 1.05fr) minmax(250px, .95fr); }
  .cw-emi-visual { display: grid; grid-template-columns: 1fr; }
  .cw-emi-monthly { text-align: center; }
  .cw-emi-chart, .cw-emi-breakdown, .cw-emi-cta { grid-column: auto; grid-row: auto; }
}
@media (max-width: 680px) {
  .cw-calculator-panel.is-emi-mode { padding: 16px; border-radius: 18px; }
  .cw-emi-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .cw-emi-heading p { max-width: none; text-align: left; }
  .cw-emi-layout { grid-template-columns: 1fr; }
  .cw-emi-controls { gap: 20px; padding: 16px; }
  .cw-emi-control-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cw-emi-value { width: 100%; justify-content: flex-end; }
  .cw-emi-value input { width: 100%; text-align: left; }
  .cw-emi-visual { padding: 20px 16px 16px; }
  .cw-emi-chart { width: 166px; height: 166px; }
  .cw-emi-reset { width: 100%; }
}

/* Home layout: let the calculator use the full content width and retain its guidance. */
.cw-calculator:not(.cw-calculator--tool) {
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}
.cw-calculator:not(.cw-calculator--tool) .cw-calculator-copy > .cw-calculator-panel {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 18px;
}
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 10px 36px;
  align-items: start;
  border: 1px solid #d8e5e8;
  border-radius: 20px;
  background: #fff;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 18px 45px rgb(16 42 82 / 8%);
}
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy .cw-eyebrow,
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy h2,
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy > p:not(.cw-eyebrow) {
  grid-column: 1;
}
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy h2 {
  max-width: 680px;
  margin: 3px 0 4px;
  font-size: clamp(28px, 3vw, 42px);
}
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy > p:not(.cw-eyebrow) {
  max-width: 700px;
  margin: 0;
}
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy ul {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  margin: 0;
  border: 1px solid #dcebea;
  border-radius: 16px;
  background: #f4faf9;
  padding: 20px 22px;
}
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy .cw-scholarship {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 24px;
  align-items: center;
  margin-top: 10px;
  padding: 20px 22px;
}
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy .cw-scholarship h3,
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy .cw-scholarship p {
  grid-column: 1;
}
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy .cw-scholarship p {
  margin-bottom: 0;
}
.cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy .cw-scholarship a {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 44px;
  justify-content: center;
  padding-inline: 18px;
}

@media (max-width: 820px) {
  .cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy ul {
    grid-column: 1;
    grid-row: auto;
    margin-top: 10px;
  }
  .cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy .cw-scholarship {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy .cw-scholarship a {
    width: fit-content;
    grid-column: 1;
    grid-row: auto;
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy {
    border-radius: 16px;
    padding: 20px 17px;
  }
  .cw-calculator:not(.cw-calculator--tool) > .cw-calculator-copy .cw-scholarship a {
    width: 100%;
  }
}
/* Education loan planner: controls, repayment chart, and summary. */
.cw-emi-layout { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.55fr); align-items: center; gap: 28px; }
.cw-emi-controls { gap: 16px; border: 0; background: transparent; padding: 4px 0; }
.cw-emi-control { gap: 7px; }
.cw-calculator-form .cw-emi-control-head label { margin: 0; color: #29475a; font-size: 12px; }
.cw-emi-value input { width: 74px; }
.cw-emi-visual { grid-template-columns: minmax(170px, 1fr) minmax(190px, 1fr); align-items: center; gap: 26px; padding: 26px 20px; background: #f5f9f9; color: #102a52; box-shadow: none; }
.cw-emi-chart { grid-column: 1; grid-row: 1; width: 180px; height: 180px; margin: 12px auto; box-shadow: 0 0 0 6px #20b3a619; }
.cw-emi-chart::before { inset: 17px; background: #f5f9f9; border: 0; }
.cw-emi-chart span { color: #526b7a; }
.cw-emi-chart strong { color: #102a52; }
.cw-emi-summary { min-width: 0; width: 100%; }
.cw-emi-monthly { text-align: left; }
.cw-emi-monthly span { color: #405b6d; font-size: 13px; }
.cw-emi-monthly strong { margin: 8px 0; color: #087d79; font-size: clamp(28px, 2.6vw, 36px); overflow-wrap: anywhere; }
.cw-emi-monthly small { color: #526b7a; font-size: 11px; line-height: 1.5; }
.cw-emi-breakdown { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
.cw-emi-breakdown > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 0; border-radius: 0; background: transparent; padding: 0; }
.cw-emi-breakdown span { color: #526b7a; font-size: 11px; }
.cw-emi-breakdown strong { margin: 0; color: #102a52; font-size: 13px; overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.cw-emi-moratorium { margin: 17px 0 0; color: #526b7a; font-size: 11px; line-height: 1.6; }
.cw-emi-moratorium strong { color: #405b6d; }
.cw-emi-cta { margin-top: 20px; padding: 10px; text-align: center; box-shadow: none; }
.cw-emi-disclaimer { padding-top: 14px; border-top: 1px solid #e5edef; text-align: left; }
@media (max-width: 1100px) {
  .cw-emi-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, .9fr); gap: 22px; }
  .cw-emi-visual { grid-template-columns: 1fr; gap: 18px; }
  .cw-emi-chart { grid-column: auto; grid-row: auto; }
  .cw-emi-monthly { text-align: center; }
}
@media (max-width: 680px) {
  .cw-emi-layout { grid-template-columns: minmax(0, 1fr); }
  .cw-emi-controls { padding: 0; gap: 18px; }
  .cw-emi-control-head { flex-direction: row; align-items: center; }
  .cw-emi-value { width: auto; padding-inline: 7px; }
  .cw-emi-value input { width: 70px; text-align: right; }
  .cw-emi-heading h3 { font-size: 22px; }
  .cw-emi-visual { padding: 20px 16px; }
  .cw-emi-reset { width: max-content; }
}

.cw-calculator .cw-scholarship p { color: #526780; }

/* A 24px slider hit area with the same slim visual track. */
.cw-emi-range { height: 24px; margin: -7px 0; background-size: 100% 6px; background-position: center; background-repeat: no-repeat; }
