/* Eco Impact Calculator Styles */

#tool-header {
  padding: 140px 0 50px;
  background: #f9f9f9;
}

#calculator-section {
  padding: 50px 0 100px;
  background: #fff;
}

/* Calculator Card */
.calculator-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}

.calculator-card h3 {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 20px;
  border-bottom: 2px solid #749c30;
  padding-bottom: 15px;
  display: inline-block;
}

.form-label {
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  color: #333;
}

/* Fix for dropdown misalignment on mobile/emulators */
@media (max-width: 991px) {
    .calculator-card, .form-group {
        position: static !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
}

.form-group {
    margin-bottom: 20px;
    clear: both;
}

select.form-control {
  cursor: pointer;
  background-color: #fff !important;
  color: #333 !important;
  display: block;
  width: 100%;
  position: relative;
}

select.form-control {
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    height: 45px !important;
    line-height: normal !important;
}

.form-control {
  height: 45px;
  border-radius: 4px;
}

/* Radio Cards for Garden Size */
.radio-cards {
  display: flex;
  gap: 10px;
  margin-top: 40px; /* added margin to push below label */
  width: 100%;
}

.radio-card {
  flex: 1;
  position: relative;
  cursor: pointer;
  margin: 0;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.card-content {
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 15px 5px;
  text-align: center;
  transition: all 0.2s;
}

.card-content i {
  font-size: 24px;
  color: #999;
  display: block;
  margin-bottom: 5px;
}

.card-content span {
  display: block;
  font-weight: 600;
  color: #555;
}

.card-content small {
  font-size: 10px;
  color: #999;
}

.radio-card input:checked + .card-content {
  border-color: #749c30;
  background: #f0fae4;
}

.radio-card input:checked + .card-content i {
  color: #749c30;
}

/* Button Group Styling */
.btn-group .btn-default {
  border: 2px solid #eee;
  background: #fff;
  color: #666;
  padding: 10px;
}

.btn-group .btn-default.active {
  background: #749c30;
  border-color: #749c30;
  color: #fff;
  box-shadow: none;
}

/* Results Panel */
.results-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
  height: 100%;
}

.results-header h3 {
  color: #749c30;
  margin-top: 0;
}

.metric-box {
  background: #f9f9f9;
  padding: 20px 10px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.metric-box h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 10px 0 5px;
  color: #333;
}

.metric-box h4 {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Score Circle */
.score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #749c30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  background: #fff;
}

.section-title {
    margin-bottom: 0px !important;
}

.score-circle span {
  font-size: 28px;
  font-weight: 700;
  color: #749c30;
  line-height: 1;
}

.score-circle small {
  font-size: 10px;
  color: #999;
}

/* Detailed Insight Items */
.insight-item {
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 3px solid #ddd;
}

.insight-item h5 {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.recommendation-box {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid #4caf50;
  margin-top: 30px;
}

.recommendation-box h5 {
  color: #2e7d32;
  font-weight: 700;
  margin-top: 0;
}

.disclaimer-small {
  font-size: 11px;
  color: #999;
  margin-top: 30px;
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .radio-cards {
    flex-direction: column;
  }
}
