 h1 {
  margin-bottom: 0.5rem;
}
p {
  margin-top: 0;
  padding: 10px;
  max-width: 800px;
  margin: 0 auto;
}
.calculator-container {
    background: none;
    border-radius: 10px;
padding: 10px;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: auto;
    margin-top: 30px;
    width: 90%;
}

/* Headings and descriptions */
.calc-heading {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.calc-description {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #444;
}

/* Main layout: two columns for inputs and results */
.calc-section {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #ccc;
  padding: 1rem;
  margin-bottom: 2rem;
background: #eee;
}
.calc-inputs {
  flex: 1 1 250px;
  min-width: 220px;
  margin-right: 2rem;
}
.calc-results {
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 320px;
  border: 1px solid #ccc;
  padding: 0;
background: #fff;
}

/* Results styles */
.results-heading {
  background-color: #4caf50;
  color: #fff;
  padding: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}
.results-content {
  padding: 1rem;
}

/* Input row styles */
.input-row {
  margin-bottom: 0.5rem;
}
.input-row label {
  display: inline-block;
  width: 150px;
  font-weight: normal;
}
.input-row input[type="number"] {
  width: 80px;
  padding: 3px;
  margin-left: 4px;
}
.input-row input[type="checkbox"] {
  margin-right: 4px;
  transform: scale(1.2);
  vertical-align: middle;
}

/* Buttons */
.calc-button {
  margin-top: 0.5rem;
margin-bottom: 1.5rem;
  padding: 5px 12px;
  cursor: pointer;
  background-color: #004d40;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 4px;
  margin-right: 6px;
}
.calc-button:hover {
  background-color: #00695c;
}

/* Result line */
.result-line {
  margin-bottom: 0.3rem;
}
.result-line span {
  float: right;
}

/* Disclaimer */
.disclaimer {
  margin-top: 1rem;
  font-weight: normal;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.3;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .calc-section {
    flex-direction: column;
  }
  .calc-inputs,
  .calc-results {
    margin-right: 0;
    max-width: 100%;
  }
  /* Adjust label widths in input rows to full width for better readability */
  .input-row label {
    width: 100%;
    margin-bottom: 0.3rem;
  }
  .input-row input[type="number"] {
    width: 100%;
    margin-left: 0;
  }
}