.loan-calculator {
  max-width: 480px;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: sans-serif;
  --main-color: #f9b233;
  --accent-color: #f95c2e;
}

.loan-calculator label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.loan-calculator input[type="range"] {
  width: 100%;
  margin-top: 0.5rem;
  -webkit-appearance: none;
  height: 6px;
  background: var(--main-color);
  border-radius: 3px;
}

.loan-calculator input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  cursor: pointer;
}

.amount-display {
  text-align: right;
  font-weight: bold;
  margin-top: 0.5rem;
}

.loan-calculator input[type="text"],
.loan-calculator input[type="date"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.loan-calculator button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--main-color);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.summary {
  background: var(--accent-color);
  color: white;
  padding: 1rem;
  border-radius: 0 0 12px 12px;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
}

.repayment-options {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

.repayment-option {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: #333;
}

.repayment-option input[type="radio"] {
  display: none;
}

.repayment-option span {
  display: block;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.repayment-option input[type="radio"]:checked + span {
  font-weight: 700;
  color: var(--accent-color);
  border-color: var(--main-color);
}
