/* Modern EMI Calculator CSS (no hdfc) */
.emi-section {
  background: #f6f8fa;
  min-height: 100vh;
  padding: 2.5rem 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.emi-heading {
  font-size: 2.1rem;
  color: #007bff;
  font-weight: 700;
  margin-bottom: 2.2rem;
  text-align: center;
}
.emi-flex {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1100px;
}
.emi-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 2.2rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 400px;
  flex: 1 1 340px;
  margin-bottom: 1.5rem;
}
.emi-slider-group {
  margin-bottom: 2.1rem;
}
.emi-slider-group label {
  font-size: 1.08rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.7rem;
  display: block;
}
.emi-slider-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.emi-slider-row input[type="range"] {
  flex: 1 1 70%;
  accent-color: #007bff;
  height: 3px;
  margin: 0 0.5rem 0 0;
}
.emi-slider-value {
  min-width: 90px;
  font-size: 1.08rem;
  color: #007bff;
  font-weight: 600;
  text-align: right;
}
.emi-slider-value-top {
  display: inline-block;
  min-width: 60px;
  font-size: 0.98rem;
  color: #007bff;
  font-weight: 600;
  background: #f0f6ff;
  border-radius: 0.6rem;
  padding: 0.18em 0.7em;
  margin-bottom: 0.3em;
  margin-top: 0.1em;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,123,255,0.06);
}
/* Manual Entry Block */
.emi-manual-group {
  margin-top: 2.2rem;
  padding: 1.2rem 1rem 0.5rem 1rem;
  background: #f8fafc;
  border-radius: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.emi-manual-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.emi-manual-row label {
  font-size: 0.98rem;
  font-weight: 500;
  color: #444;
}
.emi-manual-row input[type="number"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  border: 1.5px solid #e0e7ef;
  border-radius: 0.6rem;
  background: #fff;
  margin-bottom: 0.1rem;
  transition: border 0.2s;
}
.emi-manual-row input[type="number"]:focus {
  border-color: #007bff;
  outline: none;
}
.emi-result-card {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: 2.2rem 2rem 2rem 2rem;
  min-width: 320px;
  max-width: 400px;
  flex: 1 1 340px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.emi-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 1.08rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}
.emi-result-row.total {
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
  border-radius: 0.5rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  padding: 0.8rem 1rem;
  border-bottom: none;
}
.emi-result-label {
  color: #444;
  font-weight: 600;
}
.emi-result-row.total .emi-result-label,
.emi-result-row.total .emi-result-value {
  color: #fff;
}
.emi-result-value {
  font-weight: 600;
  color: #007bff;
  font-size: 1.08rem;
}
.emi-chart-wrap {
  width: 220px;
  height: 220px;
  margin: 1.2rem auto 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 300px) {
  .emi-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }
  .emi-card, .emi-result-card {
    max-width: 100%;
    min-width: 0;
    margin: 0 auto 1.5rem auto;
  }
  .emi-chart-wrap {
    width: 180px;
    height: 180px;
  }
}
@media (max-width: 600px) {
  .emi-section {
    padding: 1.2rem 0.2rem 0.5rem 0.2rem;
  }
  .emi-heading {
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
  }
  .emi-card, .emi-result-card {
    padding: 1.1rem 0.5rem 1.2rem 0.5rem;
  }
  .emi-result-row {
    font-size: 0.98rem;
    margin-bottom: 0.7rem;
    padding-bottom: 0.3rem;
  }
  .emi-result-row.total {
    font-size: 1.05rem;
    padding: 0.6rem 0.5rem;
  }
  .emi-chart-wrap {
    width: 120px;
    height: 120px;
  }
  .emi-manual-group {
    padding: 0.7rem 0.3rem 0.3rem 0.3rem;
  }
}
