.emi-form {
  margin-top: 0;
  scroll-margin-top: 120px;
}

.calc-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  /* gap: 24px; */
  align-items: start;
}

/* .calc-page {
  max-width: none;
  margin: 40px 30px 60px;
  width: auto;
} */

.calc-card {
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(11, 19, 38, 0.08);
  box-shadow: 0 14px 30px rgba(11, 19, 38, 0.08);
}

.calc-notes-link {
  color: #8e1447;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.calc-notes-link:hover {
  color: #6f0f38;
}

/*body {*/
/*  padding: 0;*/
/*  font-family: "Manrope", "Segoe UI", Arial, sans-serif;*/
/*  background:*/
/*    linear-gradient(rgba(244, 247, 255, 0.92), rgba(244, 247, 255, 0.92)),*/
/*    url("/labs/image/calculator/car.jfif") top right / 38% auto no-repeat fixed;*/
/*}*/

/*.calc-title-row {*/
/*  display: flex;*/
/*  align-items: center;*/
/*  gap: 12px;*/
/*  margin-bottom: 6px;*/
/*}*/

/*.calc-title-row h1 {*/
/*  margin-bottom: 0;*/
/*}*/

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.back-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  position: relative;
  top: 10px;
}

/* .calc-page {
  margin: 40px auto 60px;
} */
.emi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
  align-items: end;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0b1326;
}

.slider-field {
  align-items: center;
}

.field.action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: center;
}

.slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
}

.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1d4ed8;
  border: 3px solid #1d4ed8;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.2);
}

.range-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1d4ed8;
  border: 3px solid #1d4ed8;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.2);
}

.value-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 2px solid #1d4ed8;
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 120px;
  justify-content: center;
  box-shadow: 0 12px 22px rgba(29, 78, 216, 0.15);
}

.value-box input {
  width: 100%;
  max-width: 80px;
  border: none;
  outline: none;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: #1d4ed8;
  background: transparent;

}

.value-prefix,
.value-suffix {
  font-weight: 700;
  color: #1d4ed8;
}

.loan-field .value-box {
  min-width: 160px;
  padding: 10px 14px;
}

.loan-field .value-box input {
  max-width: 120px;
  font-size: 1.05rem;
}

.compact-field .value-box {
  min-width: 110px;
  padding: 6px 10px;
}

.compact-field .value-box input {
  max-width: 70px;
  font-size: 0.98rem;
}

.input-group {
  display: flex;
  align-items: center;
  border: 1px solid #cfd6e4;
  border-radius: 6px;
  height: 48px;
  background: #ffffff;
  overflow: hidden;
}

.input-group input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 1rem;
}

.input-group .prefix {
  width: 42px;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #0b1326;
  border-right: 1px solid #cfd6e4;
  background: #f7f9ff;
}

.error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #d1204d;
}

.reset-btn {
  width: 40%;
  height: 48px;
  border-radius: 10px;
  border: 2px solid rgba(216, 27, 96, 0.45);
  background: #d81b60;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 20px rgba(216, 27, 96, 0.12);
  position: relative;
  left: 25%;
}

.reset-btn:hover {
  transform: translateY(-1px);
  background: #d81b60;
  box-shadow: 0 14px 28px rgba(216, 27, 96, 0.2);
}

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 260px));
  gap: 20px;
  justify-content: start;
  justify-items: start;
      position: relative;
    bottom: 90%;
}

/* .results-card {
  margin-top: 12px;
  grid-column: 1 / -1;
  width: 100%;
} */

.schedule-section {
  margin-top: 32px;
}

.schedule-section h2 {
  font-size: 1.15rem;
  /* margin-bottom: 14px; */
  margin-top: 20px;
  color: #0b1326;
}

.table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(11, 19, 38, 0.08);
  box-shadow: 0 12px 24px rgba(11, 19, 38, 0.08);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.schedule-table thead th {
  background: #8e1447;
  color: #ffffff;
  text-align: center;
  padding: 14px 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.schedule-table tbody td {
  text-align: center;
  padding: 12px 10px;
  border-top: 1px solid rgba(11, 19, 38, 0.08);
  color: #1d2946;
  font-size: 0.95rem;
}

.schedule-table tbody tr:nth-child(even) td {
  background: #fafbff;
}

.schedule-table tbody tr.total-row td {
  font-weight: 700;
  background: #f2f4ff;
}

.table-pagination {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 0.95rem;
  color: #1d2946;
}


.yearly-chart-card {
  margin-top: 24px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(11, 19, 38, 0.08);
  box-shadow: 0 12px 24px rgba(11, 19, 38, 0.08);
  padding: 18px 18px 14px;
}

/*.yearly-chart-card h3 {*/
/*  font-size: 1rem;*/
/*  margin-bottom: 12px;*/
/*  color: #0b1326;*/
/*}*/

.yearly-chart-canvas {
  position: relative;
  width: 100%;
  height: 320px;
}

/*.calc-notes {*/
  /* margin-top: 36px; */
  /* background: linear-gradient(135deg, #ffffff 0%, #f5f7ff 55%, #ffffff 100%); */
/*  background: #ffffff;*/
/*  border: 1px solid rgba(11, 19, 38, 0.08);*/
/*  border-radius: 18px;*/
/*  padding: 28px 40px 10px;*/
/*  position: relative;*/
/*  overflow: hidden;*/
/*  text-align: left;*/
/*  width: 1200px;*/
/*  margin: 0 auto;*/
/*}*/

/*.calc-notes h2 {*/
/*  font-size: 1.8rem;*/
/*  margin-bottom: 14px;*/
/*  color: #8e1447; */
/*  letter-spacing: -0.02em;*/
/*  text-transform: uppercase;*/
/*  font-weight: 700;*/
/*  line-height: 1.2;*/
/*  text-align: center;*/
/*}*/

/*.calc-notes h3 {*/
/*  font-size: 1.25rem;*/
/*  margin-bottom: 8px;*/
/*  color: #0b1326;*/
/*  font-weight: 700;*/
/*  letter-spacing: -0.015em;*/
/*  line-height: 1.3;*/
/*  max-width: 900px;*/
/*  margin-left: 0;*/
/*  margin-right: 0;*/
/*  text-align: left;*/
/*}*/

/*.calc-notes p{*/
/*  font-size: 1.05rem;*/
/*  color: #1f2a4a;*/
/*  line-height: 1.95;*/
/*  margin: 0 0 10px 0;*/
/*  letter-spacing: 0.5px;*/
  /* max-width: 900px; */
/*  margin-left: 0;*/
/*  margin-right: 0;*/
/*  text-align: left;*/
/*}*/

/*.text-highlight {*/
/*  color: #8e1447;*/
/*  font-weight: 700;*/
/*  background: rgba(142, 20, 71, 0.08);*/
/*  padding: 0 4px;*/
/*  border-radius: 6px;*/
/*}*/

/*.whatsapp-float {*/
/*  position: fixed;*/
/*  right: 18px;*/
/*  top: 50%;*/
/*  transform: translateY(-50%);*/
/*  z-index: 1000;*/
/*  width: 52px;*/
/*  height: 52px;*/
/*  border-radius: 14px;*/
/*  display: grid;*/
/*  place-items: center;*/
  /* background: #ffffff; */
/*  box-shadow: 0 14px 30px rgba(11, 19, 38, 0.18);*/
/*  border: 1px solid rgba(11, 19, 38, 0.08);*/
/*  transition: transform 0.2s ease, box-shadow 0.2s ease;*/
/*}*/

/*.whatsapp-float img {*/
/*  width: 45px;*/
/*  height: 45px;*/
/*}*/

/*.whatsapp-float:hover {*/
/*  transform: translateY(-50%) scale(1.04);*/
/*  box-shadow: 0 18px 36px rgba(11, 19, 38, 0.22);*/
/*}*/

/*.calc-notes ul {*/
/*  max-width: 900px;*/
/*  margin: 0 0 12px 0;*/
/*  padding-left: 0;*/
/*  list-style: none;*/
/*  text-align: left;*/
/*}*/

/*.calc-notes li {*/
/*  margin-bottom: 6px;*/
/*  position: relative;*/
/*  padding-left: 22px;*/
/*}*/

/*.calc-notes li::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  left: 0;*/
/*  top: 13px;*/
/*  width: 17px;*/
/*  height: 17px;*/
/*  transform: translateY(-50%);*/
/*  background: url("/labs/image/calculator/points.svg") center / contain no-repeat;*/
/*}*/
/*.calc-notes h2::after {*/
/*  content: "";*/
/*  display: block;*/
/*  width: 56px;*/
/*  height: 3px;*/
/*  background: #0b1326;*/
/*  margin: 10px auto 0;*/
/*}*/

/*.calc-notes::before {*/
/*  content: "";*/
/*  position: absolute;*/
/*  right: -40px;*/
/*  top: -60px;*/
/*  width: 260px;*/
/*  height: 260px;*/
/*  border-radius: 50%;*/
/*  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%);*/
/*  pointer-events: none;*/
/*}*/

/*.calc-notes::after {*/
/*  content: "";*/
/*  position: absolute;*/
/*  left: -60px;*/
/*  bottom: -80px;*/
/*  width: 280px;*/
/*  height: 280px;*/
/*  border-radius: 50%;*/
/*  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 70%);*/
/*  pointer-events: none;*/
/*}*/

.notes-grid {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}

/*.note-card {*/
/*  background: none;*/
/*  border: none;*/
/*  box-shadow: none;*/
/*  border-radius: 0;*/
/*  padding: 0;*/
/*  margin-bottom: 16px;*/
/*  text-align: left;*/
/*}*/

/*.note-card h3 {*/
/*  font-size: 1.25rem;*/
/*  margin-bottom: 8px;*/
/*  color: #0b1326;*/
/*  font-weight: 700;*/
/*  letter-spacing: -0.015em;*/
/*  line-height: 1.3;*/
/*  display: inline-block;*/
/*}*/

/*.note-card h3::after {*/
/*  content: "";*/
/*  display: block;*/
/*  width: 36px;*/
/*  height: 2px;*/
/*  margin-top: 6px;*/
/*  background: linear-gradient(90deg, #2563eb, #f59e0b);*/
/*  margin-left: 0;*/
/*  margin-right: 0;*/
/*}*/

/*.note-card p {*/
/*  font-size: 1.05rem;*/
/*  color: #1f2a4a;*/
/*  line-height: 1.95;*/
  /* max-width: 72ch; */
/*  margin: 0 0 10px 0;*/
/*  letter-spacing: 0.01em;*/
/*}*/

.test-case-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.test-case {
  flex: 1 1 280px;
  background: #f9f9ff;
  border: 1px solid rgba(11, 19, 38, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
}

.test-case p:last-child {
  margin-bottom: 0;
}

.note-card code {
  background: #f2f5ff;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9rem;
}

/*.note-card ul {*/
/*  margin: 0 0 12px 0;*/
/*  padding-left: 18px;*/
/*  color: #1f2a4a;*/
/*  line-height: 1.9;*/
  /* max-width: 72ch; */
/*  font-size: 1.02rem;*/
/*  letter-spacing: 0.01em;*/
/*}*/

/*.note-card li {*/
/*  margin-bottom: 6px;*/
/*}*/

/*.calc-notes .note-card {*/
/*  padding: 12px 0 12px;*/
/*  border-bottom: 1px dashed rgba(11, 19, 38, 0.12);*/
/*}*/

/*.calc-notes .note-card:last-child {*/
/*  border-bottom: none;*/
/*}*/

/*.calc-notes .note-card:hover h3 {*/
/*  color: #1f3aa8;*/
/*  transition: color 0.2s ease;*/
/*}*/

.calc-faq {
  margin: 36px auto 0;
  /*width: 1200px;*/
  background: #ffffff;
  padding: 24px 26px;
  border-radius: 14px;
    box-shadow: 9px -18px 28px rgba(11, 19, 38, 0.06);
}

/*.calc-faq h2 {*/
/*  font-size: 1.6rem;*/
/*  margin-bottom: 14px;*/
/*  color: #8e1447;*/
/*  letter-spacing: -0.02em;*/
/*  text-transform: uppercase;*/
/*  font-weight: 700;*/
/*  line-height: 1.2;*/
/*  text-align: center;*/
/*}*/

/*.calc-faq h2::after {*/
/*  content: "";*/
/*  display: block;*/
/*  width: 44px;*/
/*  height: 3px;*/
/*  background: #0b1326;*/
/*  margin: 10px auto 0;*/
/*}*/

.faq-list {
  display: block;
}

.faq-item {
  border-bottom: 1px solid rgba(11, 19, 38, 0.08);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  font-size: 1.1rem;
  color: #0b1326;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0b1326;
  border-bottom: 2px solid #0b1326;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(-135deg);
}

.faq-body {
  padding: 0 0 14px 0;
}

.faq-body p {
  font-size: 1.02rem;
  color: #1f2a4a;
  line-height: 1.9;
  /* max-width: 72ch; */
  margin: 0;
  letter-spacing: 0.01em;
}

.page-btn {
  border: 1px solid rgba(11, 19, 38, 0.2);
  background: #ffffff;
  color: #0b1326;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: #f2f4ff;
  border-color: rgba(11, 19, 38, 0.35);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chart-card {
  position: relative;
  min-height: 360px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.chart-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin: 0 auto;
}

.chart-canvas canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.chart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.chart-center span {
  display: block;
  font-size: 0.9rem;
  color: #5b6577;
  margin-bottom: 6px;
}

.chart-center strong {
  font-size: 1.3rem;
  color: #0b1326;
}

.chart-legend {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-item span {
  display: block;
  font-size: 0.85rem;
  color: #5b6577;
}

.legend-item strong {
  display: block;
  font-size: 1rem;
  color: #0b1326;
  margin-top: 4px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.principal {
  background: #2563eb;
}

.dot.interest {
  background: #f59e0b;
}

.result-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(19, 24, 36, 0.08);
  width: 100%;
  max-width: 260px;
  box-shadow: 0 12px 24px rgba(11, 19, 38, 0.08);
  /* margin: 0  auto; */
}

.result-card span {
  display: block;
  font-size: 0.9rem;
  color: #2a3561;
  margin-bottom: 6px;
}

.result-card strong {
  font-size: 1.1rem;
  color: #0b1326;
}

.suggested-calculators {
  margin-top: 36px;
}

.suggested-calculators.outside {
  width: 100%;
  max-width: none;
  margin: 0 auto 80px;
  padding: 0 30px;
  box-sizing: border-box;
}

.suggested-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.suggested-header span {
  width: 32px;
  height: 2px;
  background: #1a2a57;
  display: inline-block;
  opacity: 0.7;
}

.suggested-header h2 {
  font-size: 1.2rem;
}

.suggested-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 16px;
}

.suggested-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(15, 26, 55, 0.08);
  box-shadow: 0 12px 26px rgba(11, 19, 38, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-height: 200px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.suggested-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(11, 19, 38, 0.16);
  border-color: rgba(15, 26, 55, 0.16);
}

.suggested-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(108, 212, 255, 0.2), rgba(139, 255, 177, 0.25));
  display: grid;
  place-items: center;
}

.suggested-icon img {
  width: 26px;
  height: 26px;
}

.suggested-card h3 {
  font-size: 1.02rem;
}

.suggested-card p {
  font-size: 0.9rem;
  color: #2a3561;
  line-height: 1.5;
}

.suggested-card span {
  margin-top: auto;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #1a2a57;
}

@media (min-width: 901px) and (max-width: 1200px) {
  .emi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .suggested-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .calc-notes,
  .calc-faq {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .emi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 20px;
  }

  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .suggested-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .calc-notes,
  .calc-faq {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (max-width: 768px) {
  .calc-title-row {
    gap: 10px;
    margin-bottom: 4px;
  }

  .back-link {
    width: 24px;
    height: 24px;
  }

  .calc-page {
    margin: 110px 16px 48px;
  }

  .emi-grid {
    grid-template-columns: 1fr;
  }

  .slider-row {
    grid-template-columns: 1fr;
  }

  .value-box {
    justify-content: center;
    width: 100%;
  }

  .calc-layout {
    grid-template-columns: 1fr;
  }

  .results {
    grid-template-columns: 1fr;
    position: static;
  }

  .yearly-chart-canvas {
    height: 260px;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .suggested-grid {
    grid-template-columns: 1fr;
  }
  .chart-center{
    top: 40%;
  }

  .calc-notes,
  .calc-faq {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 18px;
    padding-right: 18px;
  }

}