body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

#sdream-emi-heading {
  text-align: center;
  color: #80134d;
  margin: 30px 0;
}

.sdream-emi-wrapper {
  padding: 20px;
}

.sdream-emi-calculator {
  max-width: 1100px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.sdream-emi-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sdream-emi-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sdream-emi-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sdream-emi-label-row label {
  font-weight: 600;
  color: #80134d;
}

.sdream-emi-input-wrapper {
  position: relative;
  width: 130px;
}

.sdream-emi-input-wrapper .rupee-sign {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #80134d;
  font-weight: 600;
}

.sdream-emi-input-wrapper input,
.sdream-emi-label-row input[type="number"] {
  width: 130px;
  padding: 8px 8px 8px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #80134d;
  border: 1px solid #ccc;
}

.sdream-emi-slider {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: #ccc;
  appearance: none;
  outline: none;
}

.sdream-emi-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #e91064;
  border-radius: 50%;
  cursor: pointer;
}

.sdream-emi-result h3 {
  text-align: center;
  font-size: 18px;
  color: #333;
}

.sdream-emi-result h3 span {
  color: #e91064;
  font-weight: bold;
}

.sdream-emi-chart {
  width: 140px;
  height: 140px;
  margin: 20px auto;
  border-radius: 50%;
  background: conic-gradient(#e91064 0% 50%, #d276a1 50% 100%);
  position: relative;
}

.sdream-emi-chart::after {
  content: "";
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sdream-emi-summary h4 {
  margin: 8px 0;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.summary-label img {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.tooltip-box {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 220px;
  background: #fff;
  color: #444;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 99;
}

.summary-label:hover .tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

.summary-amount {
  color: #80134d;
  font-weight: 600;
}

.schedule-toggle {
  text-align: center;
  margin-top: 30px;
}

.sdream-toggle {
  color: #80134d !important;
  text-decoration: underline !important;
  font-weight: bold;
  cursor: pointer;
}

.sdream-toggle:hover {
  color: #e91064 !important;
}

.repayment-table {
  max-width: 1100px;
  margin: 30px auto 0;
  display: none;
}

.repayment-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.repayment-table th,
.repayment-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: right;
}

.repayment-table th {
  background: #f1f1f1;
}

@media (max-width: 768px) {
  .sdream-emi-calculator {
    grid-template-columns: 1fr;
  }
}
