/* Savings calculator */

.savings-calculator-section {
  --sc-brand: #006847;
  --sc-brand-deep: #003625;
  --sc-text: #1e293b;
  --sc-muted: #64748b;
  --sc-muted-soft: #94a3b8;
  --sc-surface: #ffffff;
  --sc-surface-soft: #f8fafc;
  --sc-surface-active: #f0fdf4;
  --sc-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  --sc-shadow-strong: 0 10px 22px rgba(0, 104, 71, 0.15);
  padding: 56px 24px 48px;
  margin: 0 auto;
  max-width: 1100px;
}

.savings-calculator-section::before,
.savings-calculator-section::after,
.calc-kicker,
.savings-calculator-header {
  display: none;
}

.sc-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.sc-card {
  background: var(--sc-surface);
  border-radius: 22px;
  box-shadow: var(--sc-shadow);
  padding: 34px 32px;
  overflow: hidden;
}

.sc-card-header {
  margin-bottom: 28px;
}

.sc-card-header h2 {
  margin: 0 0 6px;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.95rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--sc-brand-deep);
}

.sc-card-header p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--sc-muted);
}

.cf-group {
  margin-bottom: 28px;
}

.cf-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-muted-soft);
}

.cf-radio-row,
.cf-check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--sc-text);
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.cf-check-row {
  font-size: 1.08rem;
}

.cf-radio-row:hover,
.cf-check-row:hover {
  background: var(--sc-surface-soft);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.cf-radio-row:has(input:checked),
.cf-check-row:has(input:checked) {
  background: var(--sc-surface-active);
  box-shadow: inset 0 0 0 1px rgba(0, 104, 71, 0.12);
}

.cf-radio-row input[type='radio'],
.cf-check-row input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  cursor: pointer;
  border: 1.5px solid #cbd5e1;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cf-radio-row input[type='radio'] {
  border-radius: 50%;
}

.cf-check-row input[type='checkbox'] {
  border-radius: 4px;
}

.cf-radio-row input[type='radio']::after,
.cf-check-row input[type='checkbox']::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cf-radio-row input[type='radio']::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sc-brand);
}

.cf-check-row input[type='checkbox']::after {
  width: 4px;
  height: 7px;
  border: 1.5px solid transparent;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -55%) rotate(45deg) scale(0);
}

.cf-radio-row input[type='radio']:checked,
.cf-check-row input[type='checkbox']:checked {
  border-color: var(--sc-brand);
}

.cf-radio-row input[type='radio']:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

.cf-check-row input[type='checkbox']:checked {
  background: var(--sc-brand);
}

.cf-check-row input[type='checkbox']:checked::after {
  border-color: #fff;
  transform: translate(-50%, -55%) rotate(45deg) scale(1);
}

.cf-radio-name {
  flex: 1;
  font-size: 1.08rem;
  font-weight: 500;
}

.cf-radio-row:has(input:checked) .cf-radio-name,
.cf-check-row:has(input:checked) {
  color: var(--sc-brand-deep);
}

.cf-radio-row:has(input:checked) .cf-radio-name {
  font-weight: 600;
}

.cf-radio-price {
  font-size: 1rem;
  font-weight: 500;
  color: var(--sc-muted-soft);
}

.calc-seg-group {
  display: flex;
  gap: 10px;
}

.calc-seg-btn {
  flex: 1;
  padding: 11px 0;
  border: none;
  border-radius: 10px;
  background: var(--sc-surface-soft);
  color: var(--sc-muted);
  font: 600 1.05rem 'DM Sans', sans-serif;
  text-align: center;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.calc-seg-btn:hover {
  background: var(--sc-surface-active);
  color: var(--sc-brand);
  box-shadow: inset 0 0 0 1px rgba(0, 104, 71, 0.12);
}

.calc-seg-btn.is-active {
  background: var(--sc-brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 104, 71, 0.16);
}

.sc-error,
.sc-result-note,
.sc-recalc-link {
  font-size: 1rem;
}

.sc-error {
  margin: 0 0 0 2px;
  color: #b91c1c;
}

.sc-submit-btn,
.sc-cta-btn {
  display: block;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 999px;
  background: var(--sc-brand);
  color: #fff;
  font: 700 1.05rem 'DM Sans', sans-serif;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: var(--sc-shadow-strong);
  cursor: pointer;
  transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.1s ease;
}

.sc-submit-btn {
  margin-top: 30px;
}

.sc-submit-btn:hover,
.sc-cta-btn:hover {
  background: #005538;
  box-shadow: 0 14px 24px rgba(0, 104, 71, 0.18);
  transform: translateY(-1px);
}

.sc-submit-btn:active,
.sc-cta-btn:active {
  transform: translateY(0);
}

.sc-result-rows {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.sc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.88);
}

.sc-result-label {
  font-size: 1.08rem;
  color: var(--sc-muted);
}

.sc-result-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sc-brand-deep);
}

.sc-savings-block {
  margin-bottom: 20px;
  padding: 20px 20px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  box-shadow: 0 8px 20px rgba(0, 104, 71, 0.06);
}

.sc-savings-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--sc-brand);
}

.sc-savings-line--annual {
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.2rem;
}

.sc-savings-line--annual span:last-child {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--sc-brand-deep);
}

.sc-result-note {
  margin: 0 0 24px;
  line-height: 1.6;
  color: var(--sc-muted-soft);
}

.sc-recalc-link {
  display: block;
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  color: var(--sc-muted-soft);
  text-align: center;
  text-decoration: underline;
  text-decoration-color: transparent;
  cursor: pointer;
  transition: color 0.12s ease, text-decoration-color 0.12s ease;
}

.sc-recalc-link:hover {
  color: #475569;
  text-decoration-color: #cbd5e1;
}

@media (max-width: 767px) {
  .savings-calculator-section {
    padding: 40px 12px 32px;
  }

  .sc-card {
    padding: 24px;
  }

  .sc-card-header h2 {
    font-size: 1.8rem;
  }

  .sc-card-header p,
  .cf-radio-price,
  .cf-check-row,
  .calc-seg-btn,
  .sc-result-label,
  .sc-result-note,
  .sc-submit-btn,
  .sc-cta-btn,
  .sc-recalc-link {
    font-size: 1rem;
  }

  .cf-radio-name,
  .sc-savings-line {
    font-size: 1rem;
  }

  .sc-result-value {
    font-size: 1.12rem;
  }

  .sc-savings-line--annual {
    font-size: 1.12rem;
  }

  .sc-savings-line--annual span:last-child {
    font-size: 1.34rem;
  }
}

@keyframes sc-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sc-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-6px); }
}

.sc-anim-in {
  animation: sc-fade-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sc-anim-out {
  animation: sc-fade-out 0.16s ease-in both;
}
