@scope (#original-content) {

#mortgage-comparison-calculator-section * {
  box-sizing: border-box;
}

#mortgage-comparison-calculator-section h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.3;
}

#mortgage-comparison-calculator-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 35px;
  margin-bottom: 15px;
  border-bottom: 3px solid #f59e0b;
  padding-bottom: 8px;
}

#mortgage-comparison-calculator-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #34495e;
  margin-top: 25px;
  margin-bottom: 12px;
}

#mortgage-comparison-calculator-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
  font-weight: 500;
}

#mortgage-comparison-calculator-section .author-date {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  font-weight: 600;
}

.mc-calculator-container {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fcd34d;
  border-radius: 12px;
  padding: 30px;
  margin: 25px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mc-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.mc-loan-section {
  background: #ffffff;
  border: 2px solid #fbbf24;
  border-radius: 10px;
  padding: 20px;
}

.mc-loan-section h4 {
  color: #d97706;
  font-weight: 800;
  margin: 0 0 20px 0;
  font-size: 18px;
  text-align: center;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
  padding: 12px;
  border-radius: 8px;
  margin: -20px -20px 20px -20px;
}

.mc-input-group {
  margin-bottom: 18px;
}

.mc-input-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #2c3e50;
  font-size: 14px;
}

.mc-input-group input,
.mc-input-group select {
  width: 100%;
 
  border: 2px solid #bdc3c7;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.3s ease;
  background-color: #ffffff;
}

.mc-input-group input:focus,
.mc-input-group select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.mc-calc-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mc-calc-button:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245,158,11,0.4);
}

.mc-results-container {
  margin-top: 25px;
  display: none;
}

.mc-results-container.show {
  display: block;
}

.mc-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 20px;
}

.mc-result-section {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
  border-radius: 10px;
  padding: 20px;
}

.mc-result-section h5 {
  color: #1e40af;
  font-weight: 800;
  margin: 0 0 15px 0;
  font-size: 17px;
  text-align: center;
  border-bottom: 2px solid #60a5fa;
  padding-bottom: 10px;
}

.mc-result-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #dbeafe;
  font-weight: 600;
}

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

.mc-result-item .label {
  color: #374151;
  font-size: 14px;
}

.mc-result-item .value {
  color: #1e40af;
  font-weight: 800;
  font-size: 15px;
}

.mc-comparison-summary {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #16a34a;
  border-radius: 10px;
  padding: 25px;
  margin-top: 20px;
}

.mc-comparison-summary h4 {
  color: #166534;
  font-weight: 800;
  margin: 0 0 20px 0;
  font-size: 20px;
  text-align: center;
}

.mc-winner-box {
  background: #ffffff;
  border: 3px solid #16a34a;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  text-align: center;
}

.mc-winner-box h6 {
  color: #166534;
  font-weight: 800;
  margin: 0 0 10px 0;
  font-size: 16px;
  text-transform: uppercase;
}

.mc-winner-box .winner-value {
  color: #16a34a;
  font-size: 28px;
  font-weight: 800;
  margin: 10px 0;
}

.formula-box {
  background-color: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  font-weight: 600;
}

.formula-box h4 {
  color: #d97706;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 18px;
}

.example-box {
  background-color: #eff6ff;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.example-box h4 {
  color: #1e40af;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

table th {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  padding: 14px;
  text-align: left;
  font-weight: 800;
  font-size: 15px;
}

table td {
  padding: 12px 14px;
  border-bottom: 1px solid #ecf0f1;
  font-weight: 600;
  color: #2c3e50;
}

table tr:hover {
  background-color: #fef3c7;
}

ul, ol {
  margin: 15px 0;
  padding-left: 25px;
}

ul li, ol li {
  margin-bottom: 10px;
  font-weight: 600;
  color: #444;
  line-height: 1.6;
}

.highlight-box {
  background-color: #fef9c3;
  border-left: 5px solid #eab308;
  padding: 18px;
  margin: 20px 0;
  border-radius: 6px;
}

.highlight-box strong {
  color: #854d0e;
  font-weight: 800;
}

.info-box {
  background-color: #fef3c7;
  border-left: 5px solid #f59e0b;
  padding: 18px;
  margin: 20px 0;
  border-radius: 6px;
}

.info-box strong {
  color: #b45309;
  font-weight: 800;
}

@media (max-width: 768px) {
  #mortgage-comparison-calculator-section h1 {
    font-size: 26px;
  }
  
  #mortgage-comparison-calculator-section h2 {
    font-size: 21px;
  }
  
  #mortgage-comparison-calculator-section h3 {
    font-size: 18px;
  }
  
  .mc-calculator-container {
    padding: 20px;
  }
  
  .mc-comparison-grid,
  .mc-results-grid {
    grid-template-columns: 1fr;
  }
  
  .mc-calc-button {
    font-size: 16px;
    padding: 14px;
  }
  
  table {
    font-size: 14px;
  }
  
  table th, table td {
    padding: 10px 8px;
  }
}

@media (max-width: 480px) {
  #mortgage-comparison-calculator-section {
    padding: 15px;
  }
  
  #mortgage-comparison-calculator-section h1 {
    font-size: 22px;
  }
}

}
