/* Stekker ERE Calculator — calculator.css */

.stekker-calculator {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 64px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #000538;
  -webkit-font-smoothing: antialiased;
}

/* Hero */
.calc-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.calc-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #000538;
}

.calc-hero p {
  font-size: 1.125rem;
  color: #767676;
  margin: 0;
  line-height: 1.5;
}

/* Card */
.calc-card {
  background: #ffffff;
  border: 1px solid #cfd0d7;
  border-radius: 16px;
  box-shadow: 0 0 4px rgba(0, 5, 56, 0.04), 0 4px 16px rgba(0, 5, 56, 0.04);
  padding: 32px;
  margin-bottom: 40px;
}

.calc-section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0 0 16px;
}

/* Toggle pills (km/kWh and scenario) */
.calc-toggle {
  display: inline-flex;
  background: #f7f7fb;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 16px;
}

.calc-toggle button {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #767676;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.calc-toggle button.active {
  background: #ffffff;
  color: #000538;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 5, 56, 0.08);
}

.calc-toggle-price {
  font-weight: 400;
  opacity: 0.7;
  margin-left: 4px;
}

/* Input stepper */
.calc-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.calc-input-group button {
  width: 40px;
  height: 40px;
  border: 1px solid #cfd0d7;
  border-radius: 8px;
  background: #ffffff;
  font-size: 1.25rem;
  color: #000538;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
  flex-shrink: 0;
}

.calc-input-group button:hover {
  border-color: #0cc170;
}

.calc-input-group input {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  text-align: center;
  border: 1px solid #cfd0d7;
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
  min-width: 0;
  color: #000538;
  outline: none;
  transition: border-color 0.15s;
}

.calc-input-group input:focus {
  border-color: #0cc170;
}

.calc-hint {
  font-size: 0.875rem;
  color: #767676;
  margin: 0 0 24px;
}

/* Yes/No toggles */
.calc-toggles {
  margin-bottom: 24px;
}

.calc-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.calc-toggle-row:not(:last-child) {
  border-bottom: 1px solid #f0f0f5;
}

.calc-yn {
  display: inline-flex;
  background: #f7f7fb;
  border-radius: 6px;
  padding: 2px;
  gap: 1px;
  flex-shrink: 0;
}

.calc-yn button {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #767676;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calc-yn button.active-yes {
  background: #0cc170;
  color: #ffffff;
}

.calc-yn button.active-no {
  background: #e8443a;
  color: #ffffff;
}

.calc-yn button.inactive-no {
  color: #767676;
}

.calc-toggle-label {
  font-size: 0.9375rem;
  color: #000538;
}

/* Divider */
.calc-divider {
  height: 1px;
  background: #e8e8ed;
  margin: 24px 0;
  border: none;
}

/* Results */
.calc-results {
  text-align: center;
  padding: 8px 0;
}

.calc-results-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.calc-result-big {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  color: #0cc170;
  margin: 0;
  line-height: 1.1;
}

.calc-result-sub {
  font-size: 1.125rem;
  color: #767676;
  margin: 4px 0 24px;
}

/* Breakdown grid */
.calc-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.calc-breakdown-item {
  text-align: center;
  padding: 16px 8px;
  border-radius: 10px;
  background: #f7f7fb;
}

.calc-breakdown-amount {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.calc-breakdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #767676;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calc-breakdown-item.dah .calc-breakdown-amount { color: #0cc170; }
.calc-breakdown-item.ere .calc-breakdown-amount { color: #d4a017; }
.calc-breakdown-item.congestion .calc-breakdown-amount { color: #0071fe; }

.calc-breakdown-item.inactive {
  opacity: 0.35;
}

/* Stats row */
.calc-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.calc-stats strong {
  font-weight: 600;
}

.calc-stats-explainer {
  text-align: center;
  font-size: 0.8125rem;
  color: #767676;
  margin: 0 0 24px;
  line-height: 1.4;
}

/* FAQ / expandable sections */
.calc-faq {
  margin-bottom: 24px;
}

.calc-faq-item {
  border-top: 1px solid #e8e8ed;
}

.calc-faq-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #000538;
  cursor: pointer;
  text-align: left;
}

.calc-faq-trigger::before {
  content: '\25B8';
  font-size: 0.75rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.calc-faq-item.open .calc-faq-trigger::before {
  transform: rotate(90deg);
}

.calc-faq-content {
  display: none;
  padding: 0 0 16px 20px;
  font-size: 0.875rem;
  color: #767676;
  line-height: 1.6;
}

.calc-faq-item.open .calc-faq-content {
  display: block;
}

.calc-faq-content code {
  display: block;
  background: #f7f7fb;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.8125rem;
  white-space: pre-wrap;
  margin: 8px 0;
}

/* CTA */
.calc-cta-group {
  text-align: center;
}

.calc-cta {
  display: inline-block;
  background: #0cc170;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.calc-cta:hover {
  background: #0aad63;
  color: #ffffff;
}

.calc-cta-secondary {
  display: block;
  margin-top: 12px;
  font-size: 0.875rem;
  color: #767676;
}

.calc-cta-secondary a {
  color: #0cc170;
  text-decoration: none;
}

.calc-cta-secondary a:hover {
  text-decoration: underline;
}

/* Explainer 3-column section */
.calc-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.calc-explainer-col {
  text-align: center;
}

.calc-explainer-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.calc-explainer-icon.dah { background: #0cc170; }
.calc-explainer-icon.ere { background: #fcbf2f; }
.calc-explainer-icon.congestion { background: #0071fe; }

.calc-explainer-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0 0 8px;
}

.calc-explainer-text {
  font-size: 0.875rem;
  color: #767676;
  line-height: 1.5;
}

/* Disclaimer */
.calc-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: #999;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

/* Count-up animation */
.calc-result-big.counting {
  transition: none;
}

/* Responsive */
@media (max-width: 600px) {
  .stekker-calculator {
    padding: 0 16px 48px;
  }

  .calc-hero {
    padding: 32px 0 24px;
  }

  .calc-hero h1 {
    font-size: 1.75rem;
  }

  .calc-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .calc-result-big {
    font-size: 2.5rem;
  }

  .calc-breakdown {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calc-breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-align: left;
  }

  .calc-breakdown-amount {
    order: 2;
    margin: 0;
  }

  .calc-breakdown-label {
    order: 1;
  }

  .calc-stats {
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .calc-explainer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .calc-toggle {
    width: 100%;
  }

  .calc-toggle button {
    flex: 1;
    text-align: center;
  }
}
