/* Calculator Container */
.calculator-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* Calculator Sections */
.calculator-section,
.results-section {
  padding: 30px;
  flex: 1;
}

.calculator-section {
  border-right: 1px solid #eee;
}

h2 {
  color: #444;
  margin-bottom: 25px;
  font-weight: 500;
}

h3 {
  color: #555;
  margin: 15px 0;
  font-weight: 500;
  font-size: 18px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-weight: 500;
}

input[type="text"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  background-color: #f9f9f9;
  color: #333;
}

.select-wrapper {
  position: relative;
}

.select-wrapper:after {
  content: "\25BC";
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 12px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Dual Input */
.dual-input {
  display: flex;
  gap: 10px;
}

.dual-input input {
  flex: 1;
}

/* Sliders */
.slider-container {
  margin-top: 10px;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #372D83;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #372D83;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Buttons */
button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.advanced-button {
  display: flex;
  align-items: center;
  background: none;
  color: #372D83;
  padding: 8px 0;
  font-size: 16px;
}

.plus-icon {
  margin-right: 5px;
  font-size: 18px;
}

.hide-button {
  background: none;
  color: #999;
  padding: 5px 10px;
  font-size: 14px;
}

.details-button {
  background-color: #666;
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  width: 100%;
  margin-top: 10px;
}

.details-button:hover {
  background-color: #555;
}

/* Advanced Section */
.advanced-section {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

/* Results Section */
.view-toggle {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.view-toggle button {
  background: none;
  color: #999;
  padding: 10px 15px;
  font-size: 14px;
  border-bottom: 3px solid transparent;
}

.view-toggle button.active {
  color: #372D83;
  border-bottom: 3px solid #372D83;
}

/* Donut Chart */
.donut-chart-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.donut-chart {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: conic-gradient(#372D83 0% 73%, #BF872E 73% 85%, #2ecc71 85% 90%, #e74c3c 90% 100%);
}

.donut-hole {
  position: absolute;
  width: 70%;
  height: 70%;
  background-color: white;
  border-radius: 50%;
  top: 15%;
  left: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-total {
  text-align: center;
}

.payment-total p {
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.payment-total h2 {
  color: #333;
  font-size: 28px;
  margin: 0;
}

/* Payment Breakdown */
.payment-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.payment-item {
  flex-basis: 48%;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
}

.principal .color-indicator {
  background-color: #372D83;
}

.taxes .color-indicator {
  background-color: #BF872E;
}

.hazard .color-indicator {
  background-color: #2ecc71;
}

.mortgage .color-indicator {
  background-color: #e74c3c;
}

.payment-label {
  flex: 1;
  font-size: 14px;
  color: #666;
}

.payment-amount {
  font-weight: 500;
  color: #333;
}

.payment-amount::before {
  content: "$";
}

/* Overview List */
.overview-list {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.overview-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

.overview-label {
  display: flex;
  align-items: center;
}

.overview-label .color-indicator {
  margin-right: 10px;
}

.overview-amount {
  font-weight: 500;
}

.overview-divider {
  height: 1px;
  background-color: #ddd;
  margin: 10px 0;
}

.overview-item.total {
  font-weight: 700;
  font-size: 18px;
}

/* Responsive Design */
@media (max-width: 900px) {
  .calculator-container {
    flex-direction: column;
  }

  .calculator-section {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 600px) {
  .payment-item {
    flex-basis: 100%;
  }
}