/* ============================================================
   EMI Calculator
   ============================================================ */
.emi { background: var(--bg); }
.emi__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}

/* ---- Left: inputs ---- */
.emi__form .eyebrow { margin-bottom: .5rem; }
.emi__disclaimer {
  margin: .75rem 0 2rem;
  max-width: 34rem;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--muted);
}
.emi-field { margin-bottom: 1.85rem; }
.emi-field:last-child { margin-bottom: 0; }
.emi-field__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}
.emi-field__top label { font-weight: var(--fw-semi); font-size: .95rem; color: var(--ink); }
.emi-input {
  display: inline-flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--field-border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.emi-input input {
  width: 7rem;
  border: 0;
  padding: .55rem .8rem;
  font-size: .95rem;
  font-weight: var(--fw-med);
  color: var(--ink);
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}
.emi-input input::-webkit-outer-spin-button,
.emi-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.emi-input input:focus { outline: none; }
.emi-input__unit {
  display: grid;
  place-items: center;
  min-width: 3rem;
  padding: 0 .8rem;
  background: var(--brand-700);
  color: #fff;
  font-size: .85rem;
  font-weight: var(--fw-med);
}
.emi-slider {
  width: 100%;
  height: 6px;
  accent-color: var(--brand-700);
  cursor: pointer;
}
.emi-scale {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
  font-size: .72rem;
  color: var(--faint);
}

/* ---- Right: result panel ---- */
.emi__result {
  display: flex;
  flex-direction: column;
  background: linear-gradient(140deg, var(--brand-900), var(--brand-700));
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--sh-card);
}
.emi__result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.emi__result-title { font-family: var(--font-serif); font-weight: var(--fw-semi); font-size: clamp(1.5rem, 2.4vw, 2rem); color: #fff; }
.emi__badge {
  white-space: nowrap;
  font-size: .72rem;
  font-weight: var(--fw-med);
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .85);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-sm);
  padding: .3rem .6rem;
}
.emi__fig-label { font-size: .8rem; color: rgba(255, 255, 255, .72); }
.emi__total {
  font-family: var(--font-serif);
  font-weight: var(--fw-semi);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: .2rem 0 1.5rem;
}
.emi__result-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
}
.emi__figures { display: flex; flex-direction: column; gap: 1.1rem; }
.emi__fig .emi__fig-label { display: flex; align-items: center; gap: .45rem; }
.emi__fig-val { display: block; font-size: 1.15rem; font-weight: var(--fw-semi); margin-top: .15rem; }
.emi__permonth { font-size: .7rem; font-weight: var(--fw-reg); color: rgba(255, 255, 255, .6); }
.emi__dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; }
.emi__dot--p { background: #eaf1fa; }
.emi__dot--i { background: #8fb0d6; }

.emi__chart { display: grid; place-items: center; }
.emi__donut { width: clamp(8rem, 13vw, 10.5rem); height: auto; }
.emi__donut-track { fill: none; stroke: #8fb0d6; stroke-width: 15; }
.emi__donut-arc {
  fill: none;
  stroke: #eaf1fa;
  stroke-width: 15;
  transition: stroke-dasharray .5s var(--ease);
}

.emi__cta { margin-top: 1.75rem; align-self: flex-start; }
