@scope (#original-content) {

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

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

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

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

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

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

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

.calc-mode-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  justify-content: center;
}

.mode-btn {
  padding: 12px 20px;
  background-color: #ffffff;
  border: 2px solid #3498db;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #3498db;
  transition: all 0.3s ease;
}

.mode-btn:hover {
  background-color: #3498db;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52,152,219,0.3);
}

.mode-btn.active {
  background-color: #3498db;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(52,152,219,0.3);
}

.input-group {
  margin-bottom: 20px;
}

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

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

.input-group input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

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

.calc-button:hover {
  background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(52,152,219,0.4);
}

.results-container {
  margin-top: 25px;
  padding: 25px;
  background: linear-gradient(135deg, #d5f4e6 0%, #bfe9db 100%);
  border: 2px solid #27ae60;
  border-radius: 10px;
  display: none;
}

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

.result-item {
  padding: 15px;
  margin-bottom: 12px;
  background-color: #ffffff;
  border-left: 5px solid #27ae60;
  border-radius: 6px;
  font-weight: 700;
  font-size: 16px;
  color: #2c3e50;
}

.result-value {
  color: #27ae60;
  font-size: 20px;
  font-weight: 800;
}

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

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

.example-box {
  background-color: #f0f8ff;
  border: 2px solid #3498db;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.example-box h4 {
  color: #2980b9;
  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, #3498db 0%, #2980b9 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: #f8f9fa;
}

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: #fff3cd;
  border-left: 5px solid #ffc107;
  padding: 18px;
  margin: 20px 0;
  border-radius: 6px;
}

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

@media (max-width: 768px) {
  #price-calculator-section h1 {
    font-size: 26px;
  }
  
  #price-calculator-section h2 {
    font-size: 21px;
  }
  
  #price-calculator-section h3 {
    font-size: 18px;
  }
  
  .calculator-container {
    padding: 20px;
  }
  
  .mode-btn {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .calc-button {
    font-size: 16px;
    padding: 14px;
  }
  
  table {
    font-size: 14px;
  }
  
  table th, table td {
    padding: 10px 8px;
  }
}

@media (max-width: 480px) {
  #price-calculator-section {
    padding: 15px;
  }
  
  #price-calculator-section h1 {
    font-size: 22px;
  }
  
  .mode-btn {
    width: 100%;
  }
}

}
