.mortgage-calculator-container {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;

  color: var(--e-global-color-lcolor1);
  font-family: var(--e-global-typography-ltext1-font-family);
  font-weight: var(--e-global-typography-ltext1-font-weight);
  line-height: var(--e-global-typography-ltext1-line-height);
  letter-spacing: var(--e-global-typography-ltext1-letter-spacing);
  text-transform: var(--e-global-typography-ltext1-text-transform);
  font-style: var(--e-global-typography-ltext1-font-style);
  -webkit-text-decoration: var(--e-global-typography-ltext1-text-decoration);
  text-decoration: var(--e-global-typography-ltext1-text-decoration);
}

.mortgage-calculator-container select,
.mortgage-calculator-container option {
  font-weight: 600;
  font-family: var(--e-global-typography-lheading3-font-family);
  text-transform: var(--e-global-typography-lheading3-text-transform);
  font-style: var(--e-global-typography-lheading3-font-style);
  -webkit-text-decoration: var(--e-global-typography-lheading3-text-decoration);
  text-decoration: var(--e-global-typography-lheading3-text-decoration);
}

.mortgage-calculator-container h3 {
  font-weight: 600;
  font-family: var(--e-global-typography-lheading3-font-family);
  letter-spacing: var(--e-global-typography-lheading3-letter-spacing);
  text-transform: var(--e-global-typography-lheading3-text-transform);
  font-style: var(--e-global-typography-lheading3-font-style);
  -webkit-text-decoration: var(--e-global-typography-lheading3-text-decoration);
  text-decoration: var(--e-global-typography-lheading3-text-decoration);
}

.mortgage-calculator-container h2 {
  font-weight: 700;
  font-family: var(--e-global-typography-lheading2-font-family);
  letter-spacing: var(--e-global-typography-lheading2-letter-spacing);
  text-transform: var(--e-global-typography-lheading2-text-transform);
  font-style: var(--e-global-typography-lheading2-font-style);
  -webkit-text-decoration: var(--e-global-typography-lheading2-text-decoration);
  text-decoration: var(--e-global-typography-lheading2-text-decoration);
}

.mortgage-results {
  flex: 1;
  padding: 30px;
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
}

.mortgage-calculator {
  flex: 1;
  padding: 30px;
  background: #ffffff;
}

.results-title,
.calculator-title {
  font-size: 24px;
  font-weight: 600;
  color: black;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.results-title:after,
.calculator-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: #4695ff;
  border-radius: 3px;
}

.result-card,
.tax-deduction-card,
.program-info-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tax-deduction-card {
  border-left: 4px solid #4695ff;
}

.program-info-card {
  background: #f0f5ff;
  border: 1px solid #e0e8ff;
}

.deduction-title,
.program-title {
  font-size: 18px;
  font-weight: 600;
  color: black;
  margin-top: 0;
  margin-bottom: 15px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.result-item.total {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px dashed #d1d5db;
  font-weight: 600;
}

.result-label {
  color: #4a5568;
}

.result-value {
  color: black;
  font-weight: 500;
}

.input-group {
  margin-bottom: 25px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #4a5568;
  font-size: 14px;
}

.modern-input,
.modern-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: black;
  background: #ffffff;
  transition: all 0.3s ease;
}

.modern-input:focus,
.modern-select:focus {
  outline: none;
  border-color: #4695ff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.modern-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

.slider-container {
  position: relative;
  margin-bottom: 10px;
}

.modern-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  margin: 15px 0;
}

.modern-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4695ff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modern-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.value-display {
  font-size: 15px;
  font-weight: 500;
  color: #4a5568;
  margin: 5px 0;
}

@media (max-width: 768px) {
  .mortgage-calculator-container {
    flex-direction: column;
  }

  .mortgage-results {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
}
