:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
}

.emi-page { background: #fff; }
.emi-container { width: min(900px, calc(100% - 48px)); }
.emi-intro { padding: 38px 0 58px; background: #fff; }
.emi-back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 31px; color: #647087; font-size: 12px; font-weight: 600; }
.emi-back-link:hover { color: var(--blue); }
.emi-back-link span { font-size: 16px; }
.emi-intro > .container > .section-kicker { margin-bottom: 8px; }
.emi-intro h1 { margin: 0 0 9px; color: var(--ink); font-family: var(--font-heading); font-size: clamp(33px, 5vw, 42px); font-weight: 800; letter-spacing: -1.7px; }
.emi-lede { margin-bottom: 25px; color: #748098; font-size: 14px; line-height: 1.6; }
.emi-calculator-card { padding: 27px; border: 1px solid #e8edf5; border-radius: 14px; background: #fff; box-shadow: 0 14px 40px rgba(34,58,108,.07); }
.emi-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.emi-heading-icon { width: 44px; height: 44px; display: grid; flex: none; place-items: center; border: 1px solid #e1eaff; border-radius: 11px; color: var(--blue); background: #f2f6ff; }
.emi-heading-icon svg { width: 25px; height: 25px; }
.emi-card-heading h2 { margin: 0 0 4px; font-family: var(--font-heading); font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.emi-card-heading p { margin: 0; color: #8490a2; font-size: 11px; }
.emi-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.emi-field { min-width: 0; }
.field-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.field-heading label { color: #536078; font-size: 12px; font-weight: 700; }
.field-value { color: #34425e; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.number-field, .tenure-fields { min-height: 44px; display: flex; align-items: center; border: 1px solid #dfe5ef; border-radius: 8px; background: #fff; }
.number-field:focus-within, .tenure-fields:focus-within { border-color: #9ab5ff; box-shadow: 0 0 0 3px #edf2ff; }
.number-field input, .tenure-fields input, .tenure-fields select { width: 100%; min-width: 0; min-height: 42px; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 13px; }
.number-field input { padding: 0 10px; }
.number-field input::-webkit-inner-spin-button, .number-field input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.number-field input[type=number] { -moz-appearance: textfield; }
.field-prefix, .field-suffix { flex: none; padding: 0 11px; color: #788398; font-size: 13px; }
.field-prefix { border-right: 1px solid #edf0f5; }
.field-suffix { padding-right: 13px; }
.tenure-fields { gap: 0; }
.tenure-fields input { padding: 0 11px; }
.tenure-fields select { width: 112px; flex: none; padding: 0 10px; border-left: 1px solid #edf0f5; cursor: pointer; }
.range-input { --range-progress: 50%; width: 100%; height: 5px; display: block; margin: 15px 0 8px; border-radius: 8px; outline: 0; appearance: none; background: linear-gradient(to right, var(--blue) 0 var(--range-progress), #e7edf7 var(--range-progress) 100%); cursor: pointer; }
.range-input::-webkit-slider-thumb { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; appearance: none; background: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 1px 3px rgba(31,53,92,.2); }
.range-input::-moz-range-thumb { width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 1px 3px rgba(31,53,92,.2); }
.range-input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px #dce7ff; }
.range-labels { display: flex; justify-content: space-between; color: #929bad; font-size: 9px; }
.emi-error { min-height: 16px; margin: 14px 0 0; color: #c34848; font-size: 11px; }
.emi-error:empty { min-height: 0; margin-top: 0; }
.emi-form-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0f5; }
.emi-form-footer p { margin: 0; color: #929bad; font-size: 10px; line-height: 1.5; }
.emi-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font: inherit; font-size: 11px; font-weight: 700; transition: background .18s ease, border-color .18s ease; }
.emi-button-reset { flex: none; border-color: #e4e9f1; color: #66738a; background: #fff; }
.emi-button-reset:hover { background: #f7f9fc; }
.emi-results { margin-top: 26px; padding-top: 24px; border-top: 1px solid #edf0f5; }
.results-topline { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.results-topline .section-kicker { margin-bottom: 5px; }
.results-topline h2 { margin: 0; font-family: var(--font-heading); font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.result-badge { padding: 6px 9px; border: 1px solid #dce8ff; border-radius: 20px; color: #3764c8; background: #f5f8ff; font-size: 9px; font-weight: 700; }
.emi-amount { margin: 12px 0 3px; color: var(--blue); font-family: var(--font-heading); font-size: clamp(32px, 5vw, 40px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.emi-caption { margin: 0; color: #8490a2; font-size: 11px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 21px; }
.summary-card { min-width: 0; min-height: 75px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 13px; border: 1px solid #edf0f5; border-radius: 9px; background: #fff; }
.summary-card span { color: #8490a2; font-size: 10px; }
.summary-card strong { color: #273653; font-family: var(--font-heading); font-size: clamp(13px, 2vw, 17px); font-weight: 800; letter-spacing: -.3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.summary-card-total { border-color: #e3ebff; background: #f7f9ff; }
.summary-card-total strong { color: var(--blue); }
.breakdown-section { display: grid; grid-template-columns: 1fr 180px; align-items: center; gap: 25px; margin-top: 24px; padding: 21px; border: 1px solid #edf0f5; border-radius: 11px; background: #fff; }
.breakdown-copy h3, .formula-note h3 { margin: 0 0 5px; font-family: var(--font-heading); font-size: 14px; font-weight: 800; }
.breakdown-copy > p { margin: 0; color: #8490a2; font-size: 10px; line-height: 1.5; }
.chart-legend { display: grid; gap: 11px; margin-top: 22px; }
.legend-row { display: grid; grid-template-columns: 9px minmax(65px, 1fr) auto; align-items: center; gap: 8px; color: #718097; font-size: 10px; }
.legend-row strong { color: #34425e; font-size: 11px; font-variant-numeric: tabular-nums; }
.legend-swatch { width: 8px; height: 8px; border-radius: 3px; }
.principal-swatch { background: var(--blue); }
.interest-swatch { background: #f2a74b; }
.donut-chart { --principal-share: 50%; width: 164px; height: 164px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--blue) 0 var(--principal-share), #f2a74b var(--principal-share) 100%); }
.donut-center { width: 112px; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 50%; background: #fff; text-align: center; }
.donut-center span { color: #929bad; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.donut-center strong { max-width: 100%; padding: 0 4px; color: #273653; font-family: var(--font-heading); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.formula-note { margin-top: 14px; padding: 16px; border-radius: 9px; background: #f7f9fc; }
.formula-note h3 { font-size: 12px; }
.formula-note p { margin: 7px 0 4px; color: #34425e; font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.formula-note span { color: #8490a2; font-size: 10px; line-height: 1.6; }
.emi-download-row { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.emi-download-row p { margin: 0 auto 0 0; color: #218c68; font-size: 10px; }
.emi-download-row p:empty { display: none; }
.emi-button-download { min-height: 40px; color: #fff; background: var(--blue); }
.emi-button-download:hover { background: var(--blue-dark); }
.emi-button-download:disabled { cursor: not-allowed; opacity: .55; }
.emi-button-download svg { width: 17px; height: 17px; }
.emi-privacy { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 15px 0 0; color: #7e899c; font-size: 10px; }
.emi-privacy .status-dot { width: 6px; height: 6px; }
.emi-faq-section { padding: 48px 0 72px; border-top: 1px solid #f0f2f6; background: #fff; }
.emi-faq-section > .container > .section-kicker { margin-bottom: 7px; }
.emi-faq-section h2 { margin: 0 0 21px; font-family: var(--font-heading); font-size: 25px; font-weight: 800; letter-spacing: -.8px; }
.emi-faq-list { border-top: 1px solid #edf0f5; }
.emi-faq-item { border-bottom: 1px solid #edf0f5; }
.emi-faq-item summary { position: relative; padding: 17px 32px 17px 0; color: #26334c; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.emi-faq-item summary::-webkit-details-marker { display: none; }
.emi-faq-item summary::after { position: absolute; top: 14px; right: 3px; color: var(--blue); content: "+"; font-size: 19px; font-weight: 500; }
.emi-faq-item[open] summary::after { content: "−"; }
.emi-faq-item p { max-width: 700px; margin: -3px 30px 17px 0; color: #788398; font-size: 12px; line-height: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  .emi-container { width: min(100% - 36px, 540px); }
}

@media (max-width: 560px) {
  .emi-container { width: calc(100% - 32px); }
  .emi-intro { padding: 27px 0 42px; }
  .emi-back-link { margin-bottom: 23px; }
  .emi-lede { margin-bottom: 20px; font-size: 13px; }
  .emi-calculator-card { padding: 20px 16px; border-radius: 12px; }
  .emi-fields { grid-template-columns: 1fr; gap: 20px; }
  .emi-form-footer { align-items: start; }
  .emi-form-footer p { max-width: 190px; }
  .summary-grid { gap: 6px; }
  .summary-card { min-height: 69px; padding: 9px 7px; }
  .summary-card span { font-size: 9px; }
  .summary-card strong { font-size: 12px; }
  .breakdown-section { grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; padding: 15px 11px; }
  .donut-chart { width: 112px; height: 112px; }
  .donut-center { width: 78px; height: 78px; }
  .donut-center strong { font-size: 10px; }
  .legend-row { grid-template-columns: 8px minmax(0, 1fr) auto; gap: 5px; font-size: 9px; }
  .legend-row strong { font-size: 9px; }
  .chart-legend { gap: 9px; margin-top: 17px; }
  .formula-note { padding: 13px; }
  .emi-download-row { flex-wrap: wrap; }
  .emi-download-row p { width: 100%; }
  .emi-button-download { width: 100%; }
  .emi-faq-section { padding: 38px 0 54px; }
  .emi-faq-section h2 { font-size: 22px; }
  .emi-faq-item summary { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .emi-button { transition-duration: .01ms; }
}
