.calculator {
  padding: 80px 0;
  background-color: #ffffff;
}

.calculator-form {
  max-width: 520px;
  margin: 0 auto;
}

.calculator-subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #000000;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #000000;
  margin-bottom: 8px;
}

.input-group {
  position: relative;
}

.form-select {
  width: 100%;
  padding: 15px;
  border: 1px solid #828282;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  background-color: #ffffff;
  appearance: none;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: #00B330;
}

.form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #828282;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  background-color: #ffffff;
}

.form-input:focus {
  outline: none;
  border-color: #00B330;
}

.slider-container {
  position: relative;
  margin: 24px 0;
}

.slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #d9d9d9;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #134048;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #134048;
  cursor: pointer;
}

.slider-value {
  position: absolute;
  top: -30px;
  left: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  color: #000000;
  text-align: right;
}

.calculation-results {
  margin: 32px 0;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.result-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #000000;
}

.result-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  color: #00B330;
}

.button-container {
  display: flex;
  gap: 10px;
  /* Adjust the space between buttons as needed */
  padding: 20px;
  /* Example padding */
}

.button {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  /* Slightly rounded corners */
  font-size: 16px;
  cursor: pointer;
  background-color: #fff;
  color: #333;
  font-weight: bold;
  /* Make the text bold as in the image */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.button.active {
  background-color: #5cb85c;
  /* Green color for active button */
  color: #fff;
  border-color: #5cb85c;
}

.button:not(.active):hover {
  background-color: #f0f0f0;
  /* Light gray background on hover for inactive button */
}

/* Responsive Design */
@media (max-width: 768px) {
  .calculator-form {
    padding: 0 20px;
  }

  .form-select,
  .form-input {
    padding: 12px;
    font-size: 14px;
  }

  .calculator-subtitle {
    font-size: 14px;
    line-height: 20px;
  }

  .result-label,
  .result-value {
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 480px) {
  .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}