/* --------------------------------------------------------------------------------- */
/* Cost & Benefit Calculator Styles                                                   */
/* The calculator section helps visitors estimate their savings compared to external  */
/* consulting. It is designed to be responsive and accessible.                        */

.calculator {
  padding: 4rem 2rem;
  /* Default background and text colour for light mode */
  background: #f7f8fa;
  color: #0b0f19;
}

/* Override calculator colours in dark mode: dark background with light text */
body:not(.light) .calculator {
  background: var(--bg-dark);
  color: var(--text-light);
}
body.light .calculator-results {
  background: var(--bg-dark);
  color: var(--text-light);
}
.calculator .container {
  max-width: 1000px;
  margin: 0 auto;
}
.calculator h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: inherit;
}
.calculator .calc-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: inherit;
}
.calculator-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.calculator-form,
.calculator-results {
  flex: 1 1 300px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.calculator-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  /* Default text colour for labels in light mode */
  color: #0b0f19;
}
.calculator-form input,
.calculator-form select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  background: #fff;
  color: #000;
}
.calculator-form input[type="range"] {
  margin-bottom: 0.3rem;
}
.calculator-form #calc-hours-value {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--brand2);
}
/* Results card uses gradient background matching the brand */
.calculator-results {
  position: relative;
  /* background: linear-gradient(90deg, var(--brand1), var(--brand2)); */
  background: linear-gradient(to bottom, rgba(64, 74, 94, 0.7), rgba(0, 10, 29, 0.322));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calculator-results .results-content {
  text-align: center;
}
.calculator-results .save-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.calculator-results .save-text span#calc-save-value {
  font-size: 2.5rem;
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--brand2);
}
.result-details p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}
.calculator-bar {
  display: flex;
  height: 1rem;
  margin: 1rem auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
}
.calculator-bar .consulting {
  background: #e74c3c;
  height: 100%;
}
.calculator-bar .euaiditor {
  background: #2ecc71;
  height: 100%;
}
.break-even {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
.calculator-results .btn {
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .calculator-container {
    flex-direction: column;
  }
  .calculator-form,
  .calculator-results {
    flex: 1 1 100%;
  }
}

/* Override calculator label colours in light mode */
body.light .calculator-form label {
  /* In light mode the default above already sets dark text; override not needed */
  color: #0b0f19;
}

/* In dark mode use light text for labels */
body:not(.light) .calculator-form label {
  color: var(--text-light);
}
