@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap");

/* =========================================================
   EMI CALCULATOR - ROOT VARIABLES
========================================================= */
:root {
  --emi-blue: #0754a5;
  --emi-blue-dark: #003f7d;
  --emi-blue-deep: #002b55;
  --emi-blue-light: #eaf4ff;
  --emi-blue-soft: #f5faff;
  --emi-dark: #14213d;
  --emi-muted: #68778d;
  --emi-border: #e2eaf3;
  --emi-white: #ffffff;
  --emi-shadow: 0 25px 65px rgba(7, 84, 165, 0.1);
  --emi-shadow-soft: 0 18px 35px rgba(7, 84, 165, 0.09);
}

/* =========================================================
   HERO SECTION
========================================================= */
.emi-hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 118px;
  background:
    radial-gradient(circle at 88% 18%, rgba(7, 84, 165, 0.12), transparent 22%),
    linear-gradient(135deg, #f8fcff, #e9f5ff);
}

.emi-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 70px;
  align-items: center;
}

/* =========================================================
   HERO BADGE
========================================================= */
.emi-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid rgba(7, 84, 165, 0.14);
  border-radius: 30px;
  background: var(--emi-white);
  color: var(--emi-blue);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.emi-badge i {
  font-size: 12px;
}

/* =========================================================
   HERO HEADING
========================================================= */
.emi-hero h1 {
  max-width: 650px;
  margin: 20px 0 16px;
  color: var(--emi-dark);
  font-family: "Poppins", sans-serif;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.8px;
}

.emi-hero h1 span {
  color: var(--emi-blue);
}

.emi-hero p {
  max-width: 580px;
  margin: 0;
  color: var(--emi-muted);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.85;
}

/* =========================================================
   HERO TRUST
========================================================= */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 27px;
  color: #52647c;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.hero-trust i {
  margin-right: 5px;
  color: var(--emi-blue);
}

/* =========================================================
   HERO ORBS
========================================================= */
.hero-orb {
  position: absolute;
  border: 1px solid rgba(7, 84, 165, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.orb-one {
  width: 400px;
  height: 400px;
  top: -225px;
  right: -210px;
}

.orb-two {
  width: 280px;
  height: 280px;
  left: -160px;
  bottom: -190px;
  background: rgba(7, 84, 165, 0.035);
}

/* =========================================================
   HERO MINI CARD
========================================================= */
.hero-mini-card {
  position: relative;
  justify-self: end;
  width: 280px;
  padding: 32px;
  border: 1px solid rgba(7, 84, 165, 0.1);
  border-radius: 22px;
  background: var(--emi-white);
  box-shadow: 0 25px 55px rgba(7, 84, 165, 0.14);
}

.mini-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
  background: var(--emi-blue-light);
  color: var(--emi-blue);
  font-size: 18px;
}

.hero-mini-card > span,
.results-head > span,
.panel-heading > span,
.schedule-card > div > span,
.section-intro > span {
  display: block;
  color: var(--emi-blue);
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.25px;
}

.hero-mini-card strong {
  display: block;
  margin: 5px 0;
  color: var(--emi-dark);
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.hero-mini-card small {
  color: var(--emi-muted);
  font-family: "Inter", sans-serif;
  font-size: 11px;
}

/* =========================================================
   MINI BAR CHART
========================================================= */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 43px;
  margin-top: 20px;
}

.mini-bars i {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to bottom, #7db9ec, var(--emi-blue));
}

.mini-bars i:nth-child(1) { height: 35%; }
.mini-bars i:nth-child(2) { height: 55%; }
.mini-bars i:nth-child(3) { height: 42%; }
.mini-bars i:nth-child(4) { height: 75%; }
.mini-bars i:nth-child(5) { height: 62%; }

.mini-bars i:nth-child(6) {
  height: 100%;
  background: linear-gradient(to bottom, #4d98d8, var(--emi-blue-dark));
}

/* =========================================================
   CALCULATOR SECTION
========================================================= */
.calculator-section {
  position: relative;
  margin-top: -58px;
  padding-bottom: 100px;
}

.calculator-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--emi-border);
  border-radius: 25px;
  background: var(--emi-white);
  box-shadow: var(--emi-shadow);
}

.calculator-panel,
.results-panel {
  padding: 42px;
}

.calculator-panel {
  border-right: 1px solid var(--emi-border);
}

/* =========================================================
   PANEL HEADINGS
========================================================= */
.panel-heading h2,
.results-head h2,
.schedule-card h2 {
  margin: 6px 0 8px;
  color: var(--emi-dark);
  font-family: "Poppins", sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
}

.panel-heading p {
  margin: 0 0 25px;
  color: var(--emi-muted);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

/* =========================================================
   LOAN TABS
========================================================= */
.loan-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 31px;
  padding: 5px;
  border-radius: 11px;
  background: #f2f7fb;
}

.loan-tab {
  flex: 1;
  padding: 10px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--emi-muted);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s ease;
}

.loan-tab:hover {
  color: var(--emi-blue);
}

.loan-tab.active {
  background: var(--emi-white);
  color: var(--emi-blue);
  box-shadow: 0 3px 9px rgba(7, 84, 165, 0.1);
}

/* =========================================================
   CONTROL GROUP
========================================================= */
.control-group {
  margin-top: 27px;
}

.control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.control-label label {
  color: var(--emi-dark);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.control-label label small {
  color: var(--emi-muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 400;
}

.control-label output {
  color: var(--emi-blue);
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

/* =========================================================
   RANGE SLIDER
========================================================= */
input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  border-radius: 10px;
  outline: none;
  background: linear-gradient(90deg, var(--emi-blue), #68a8e4);
  accent-color: var(--emi-blue);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  border: 3px solid var(--emi-white);
  border-radius: 50%;
  background: var(--emi-blue);
  box-shadow: 0 2px 7px rgba(7, 84, 165, 0.3);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--emi-white);
  border-radius: 50%;
  background: var(--emi-blue);
  box-shadow: 0 2px 7px rgba(7, 84, 165, 0.3);
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: #94a4b6;
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

/* =========================================================
   QUICK AMOUNTS
========================================================= */
.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.quick-amounts button,
.tenure-switch button {
  padding: 7px 10px;
  border: 1px solid var(--emi-border);
  border-radius: 20px;
  background: var(--emi-white);
  color: var(--emi-muted);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: 0.25s ease;
}

.quick-amounts button:hover,
.quick-amounts button.selected,
.tenure-switch button.active {
  border-color: var(--emi-blue);
  background: var(--emi-blue-light);
  color: var(--emi-blue);
}

/* =========================================================
   TENURE SWITCH
========================================================= */
.tenure-group {
  position: relative;
}

.tenure-switch {
  position: absolute;
  right: 0;
  bottom: -31px;
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 20px;
  background: #f1f6fa;
}

.tenure-switch button {
  border: 0;
  padding: 6px 10px;
}

/* =========================================================
   RESULTS PANEL
========================================================= */
.results-panel {
  background: linear-gradient(140deg, #f9fcff, #edf7ff);
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.reset-btn {
  border: 0;
  background: transparent;
  color: var(--emi-blue);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.reset-btn:hover {
  color: var(--emi-blue-dark);
}

.reset-btn i {
  margin-right: 5px;
}

/* =========================================================
   EMI HIGHLIGHT
========================================================= */
.emi-highlight {
  margin: 26px 0 25px;
  padding: 23px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--emi-blue-deep), var(--emi-blue));
  color: var(--emi-white);
  box-shadow: 0 15px 26px rgba(7, 84, 165, 0.2);
}

.emi-highlight span,
.emi-highlight small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Inter", sans-serif;
  font-size: 11px;
}

.emi-highlight strong {
  display: block;
  margin: 5px 0;
  color: var(--emi-white);
  font-family: "Poppins", sans-serif;
  font-size: 31px;
  font-weight: 700;
}

/* =========================================================
   CHART SUMMARY
========================================================= */
.chart-summary {
  display: flex;
  align-items: center;
  gap: 26px;
}

/* =========================================================
   DONUT CHART
========================================================= */
.donut-chart {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--emi-blue) 0 77%, #7eb7e7 77% 100%);
}

.donut-chart > div {
  width: 105px;
  height: 105px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: #f7fbff;
  text-align: center;
}

.donut-chart strong {
  color: var(--emi-dark);
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.donut-chart span {
  color: var(--emi-muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

/* =========================================================
   CHART LEGEND
========================================================= */
.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 17px;
  width: 100%;
}

.chart-legend > div {
  display: flex;
  gap: 8px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  margin-top: 4px;
  border-radius: 50%;
}

.principal-dot {
  background: var(--emi-blue);
}

.interest-dot {
  background: #7eb7e7;
}

.chart-legend p {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: var(--emi-muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

.chart-legend strong {
  color: var(--emi-dark);
  font-size: 14px;
}

/* =========================================================
   SUMMARY TOTAL
========================================================= */
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 26px;
  padding-top: 19px;
  border-top: 1px solid #dce8f2;
  color: var(--emi-muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
}

.summary-total strong {
  color: var(--emi-dark);
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

/* =========================================================
   APPLY BUTTON
========================================================= */
.calculator-apply {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 19px;
  padding: 14px;
  border-radius: 9px;
  background: var(--emi-blue);
  color: var(--emi-white);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: 0.25s ease;
}

.calculator-apply:hover {
  transform: translateY(-2px);
  background: var(--emi-blue-dark);
  box-shadow: 0 9px 18px rgba(7, 84, 165, 0.25);
}

/* =========================================================
   SCHEDULE CARD
========================================================= */
.schedule-card {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 42px;
  border-top: 1px solid var(--emi-border);
  background: var(--emi-white);
}

.schedule-card h2 {
  margin: 6px 0 0;
  font-size: 21px;
}

.schedule-card button {
  align-self: center;
  border: 0;
  background: transparent;
  color: var(--emi-blue);
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.schedule-card button:hover {
  color: var(--emi-blue-dark);
}

.schedule-card button i {
  margin-left: 5px;
  transition: 0.2s ease;
}

.schedule-card button.open i {
  transform: rotate(180deg);
}

/* =========================================================
   SCHEDULE TABLE
========================================================= */
.schedule-table-wrap {
  display: none;
  flex-basis: 100%;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.schedule-table-wrap.open {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--emi-muted);
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf2f6;
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--emi-dark);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

/* =========================================================
   HELP SECTION
========================================================= */
.emi-help {
  padding: 0 0 105px;
}

.section-intro {
  max-width: 660px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-intro h2 {
  margin: 11px 0;
  color: var(--emi-dark);
  font-family: "Poppins", sans-serif;
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 700;
  line-height: 1.2;
}

.section-intro em {
  color: var(--emi-blue);
  font-style: normal;
}

.section-intro p {
  margin: 0;
  color: var(--emi-muted);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   HELP GRID
========================================================= */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}

.help-grid article {
  padding: 30px;
  border: 1px solid var(--emi-border);
  border-radius: 17px;
  background: var(--emi-white);
  transition: 0.25s ease;
}

.help-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(7, 84, 165, 0.2);
  box-shadow: var(--emi-shadow-soft);
}

.help-grid i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--emi-blue-light);
  color: var(--emi-blue);
  font-size: 18px;
}

.help-grid h3 {
  margin: 18px 0 8px;
  color: var(--emi-dark);
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.help-grid p {
  margin: 0;
  color: var(--emi-muted);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.75;
}

/* =========================================================
   NEW RESPONSIVE SYSTEM
========================================================= */

/* Large tablets / small desktops */
@media (max-width: 1199px) {
  .emi-hero {
    padding: 80px 0 105px;
  }

  .emi-hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 45px;
  }

  .calculator-section {
    margin-top: -48px;
  }

  .calculator-panel,
  .results-panel {
    padding: 34px;
  }

  .schedule-card {
    padding: 28px 34px;
  }
}

/* Tablets */
@media (max-width: 991px) {
  .emi-hero {
    padding: 70px 0 85px;
  }

  .emi-hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .emi-hero h1,
  .emi-hero p {
    max-width: 760px;
  }

  .hero-mini-card {
    justify-self: start;
    width: min(100%, 360px);
  }

  .calculator-section {
    margin-top: -40px;
    padding-bottom: 80px;
  }

  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .calculator-panel {
    border-right: 0;
    border-bottom: 1px solid var(--emi-border);
  }

  .chart-summary {
    gap: 24px;
  }

  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .emi-help {
    padding-bottom: 85px;
  }
}

/* Small tablets / large mobiles */
@media (max-width: 767px) {
  .emi-hero {
    padding: 55px 0 70px;
  }

  .emi-hero h1 {
    margin-top: 17px;
    font-size: clamp(34px, 8vw, 48px);
    letter-spacing: -1px;
  }

  .emi-hero p {
    font-size: 13px;
    line-height: 1.75;
  }

  .hero-trust {
    gap: 11px 16px;
    margin-top: 22px;
  }

  .hero-mini-card {
    width: min(100%, 330px);
    padding: 26px;
  }

  .calculator-section {
    margin-top: -28px;
    padding-bottom: 65px;
  }

  .calculator-shell {
    border-radius: 19px;
  }

  .calculator-panel,
  .results-panel {
    padding: 27px 23px;
  }

  .panel-heading h2,
  .results-head h2 {
    font-size: 24px;
  }

  .panel-heading p {
    font-size: 13px;
    margin-bottom: 21px;
  }

  .loan-tabs {
    gap: 6px;
    margin-bottom: 26px;
  }

  .loan-tab {
    min-width: 0;
    padding: 9px 6px;
    font-size: 13px;
  }

  .control-group {
    margin-top: 24px;
  }

  .control-label label {
    font-size: 13px;
  }

  .control-label output {
    font-size: 14px;
  }

  .chart-summary {
    align-items: center;
    gap: 20px;
  }

  .donut-chart {
    width: 125px;
    height: 125px;
  }

  .donut-chart > div {
    width: 94px;
    height: 94px;
  }

  .schedule-card {
    align-items: flex-start;
    padding: 24px 23px;
  }

  .schedule-card > div {
    width: 100%;
  }

  .schedule-card button {
    align-self: flex-start;
  }

  .help-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .help-grid article {
    padding: 24px;
  }

  .section-intro {
    margin-bottom: 30px;
  }

  .section-intro h2 {
    font-size: clamp(28px, 7vw, 38px);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .emi-hero {
    padding: 44px 0 58px;
  }

  .emi-badge {
    padding: 8px 12px;
    font-size: 10px;
  }

  .emi-hero h1 {
    font-size: clamp(31px, 9.5vw, 42px);
    line-height: 1.16;
  }

  .emi-hero p {
    font-size: 12.5px;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    font-size: 11px;
  }

  .hero-mini-card {
    width: 100%;
    padding: 23px;
    border-radius: 18px;
  }

  .hero-mini-card strong {
    font-size: 25px;
  }

  .calculator-section {
    margin-top: -20px;
    padding-bottom: 52px;
  }

  .calculator-panel,
  .results-panel {
    padding: 22px 17px;
  }

  .panel-heading h2,
  .results-head h2 {
    font-size: 21px;
  }

  .results-head {
    gap: 10px;
  }

  .reset-btn {
    flex-shrink: 0;
    font-size: 12px;
  }

  .loan-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 23px;
  }

  .loan-tab {
    width: 100%;
    font-size: 12px;
  }

  .control-label {
    align-items: flex-start;
  }

  .control-label label small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
  }

  .quick-amounts {
    gap: 6px;
  }

  .quick-amounts button {
    padding: 6px 9px;
    font-size: 11px;
  }

  .tenure-switch {
    position: static;
    width: max-content;
    max-width: 100%;
    margin-top: 10px;
  }

  .emi-highlight {
    margin: 20px 0;
    padding: 19px;
  }

  .emi-highlight strong {
    font-size: 26px;
  }

  .chart-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .donut-chart {
    margin: 0 auto;
  }

  .chart-legend {
    gap: 12px;
  }

  .chart-legend p {
    font-size: 12px;
  }

  .summary-total {
    font-size: 12px;
  }

  .summary-total strong {
    font-size: 16px;
  }

  .calculator-apply {
    font-size: 14px;
    padding: 13px;
  }

  .schedule-card {
    padding: 21px 17px;
  }

  .schedule-card h2 {
    font-size: 19px;
  }

  .schedule-card button {
    font-size: 12px;
  }

  .schedule-table-wrap {
    margin-top: 8px;
  }

  table {
    min-width: 520px;
    font-size: 12px;
  }

  th,
  td {
    padding: 10px 8px;
  }

  .emi-help {
    padding-bottom: 60px;
  }

  .section-intro h2 {
    font-size: 28px;
  }

  .section-intro p {
    font-size: 12.5px;
  }
}

/* Extra small mobile */
@media (max-width: 400px) {
  .emi-hero {
    padding: 38px 0 48px;
  }

  .emi-hero h1 {
    font-size: 30px;
    letter-spacing: -0.7px;
  }

  .emi-hero p {
    font-size: 12px;
  }

  .hero-mini-card {
    padding: 20px;
  }

  .mini-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
  }

  .hero-mini-card strong {
    font-size: 23px;
  }

  .calculator-section {
    margin-top: -14px;
  }

  .calculator-panel,
  .results-panel {
    padding: 19px 14px;
  }

  .panel-heading h2,
  .results-head h2 {
    font-size: 20px;
  }

  .panel-heading p {
    font-size: 12px;
  }

  .loan-tabs {
    grid-template-columns: 1fr;
  }

  .loan-tab {
    padding: 9px;
  }

  .control-group {
    margin-top: 21px;
  }

  .control-label label,
  .control-label output {
    font-size: 12px;
  }

  .range-scale {
    font-size: 10px;
  }

  .quick-amounts button {
    font-size: 10px;
    padding: 6px 8px;
  }

  .emi-highlight {
    padding: 17px;
  }

  .emi-highlight strong {
    font-size: 23px;
  }

  .chart-legend p {
    flex-direction: column;
    gap: 2px;
  }

  .summary-total {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .help-grid article {
    padding: 21px;
  }

  .help-grid h3 {
    font-size: 16px;
  }

  .help-grid p {
    font-size: 12px;
  }
}

/* Very small screens */
@media (max-width: 350px) {
  .emi-hero h1 {
    font-size: 28px;
  }

  .emi-badge {
    font-size: 9px;
  }

  .hero-mini-card strong {
    font-size: 21px;
  }

  .calculator-panel,
  .results-panel {
    padding: 17px 12px;
  }

  .panel-heading h2,
  .results-head h2 {
    font-size: 18px;
  }

  .emi-highlight strong {
    font-size: 21px;
  }

  .donut-chart {
    width: 115px;
    height: 115px;
  }

  .donut-chart > div {
    width: 86px;
    height: 86px;
  }

  .donut-chart strong {
    font-size: 16px;
  }

  .donut-chart span {
    font-size: 11px;
  }
}

/* =========================================================
   ACCESSIBILITY / MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
