/* ===================================
   Calculator Styles
====================================== */

/* Breadcrumb Navigation */
.calculator-breadcrumb {
  padding: 100px 0 20px;
  background: #fff;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0047CC;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.breadcrumb-link:hover {
  transform: translateX(-6px);
  box-shadow: 0 6px 20px rgba(0, 71, 204, 0.15);
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border-color: #0047CC;
  color: #002D8E;
  text-decoration: none;
}

.breadcrumb-link i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.breadcrumb-link:hover i {
  transform: translateX(-3px);
}

/* Calculator Trust Section (individual pages) */
.calculator-trust-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.calculator-trust-section .trust-stats {
  max-width: 900px;
  margin: 0 auto;
}

/* Related Calculators Section */
.related-calculators-section {
  padding: 80px 0;
  background: #fff;
}

.related-calculators-section .calculator-card {
  height: 100%;
}

/* Calculator Hero (individual pages) */
.calculator-hero-section {
  padding: 140px 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  position: relative;
  overflow: hidden;
}

.calculator-hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(31, 74, 182, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.calculator-hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.calculator-hero-icon {
  font-size: 48px;
  color: #0808EE;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.calculator-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.calculator-hero-subtitle {
  font-size: 1.15rem;
  color: #4a5568;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* Industry Presets */
.industry-presets {
  background: #f8fafc;
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 24px;
  border: 1px solid #e8ecf1;
}

.industry-presets h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  text-align: center;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.preset-btn {
  padding: 10px 22px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s ease;
}

.preset-btn:hover {
  border-color: #0808EE;
  color: #0808EE;
  background: rgba(8, 8, 238, 0.04);
}

.preset-btn.active {
  background: linear-gradient(135deg, #0808EE, #6366F1);
  border-color: transparent;
  color: #fff;
}

/* Calculator Info Banner */
.calculator-info-banner {
  background: #f0f4ff;
  border-left: 4px solid #0808EE;
  padding: 20px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.calculator-info-banner i {
  font-size: 24px;
  color: #0808EE;
  flex-shrink: 0;
}

.calculator-info-banner p {
  margin: 0;
  color: #1a1a2e;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

/* Input Help Text */
.input-help {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Range Input Value Display */
.range-value {
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  color: #0808EE;
  margin-top: 12px;
  background: #f8fafc;
  padding: 10px 16px;
  border-radius: 10px;
  display: inline-block;
  min-width: 100px;
  border: 1px solid #e8ecf1;
}

/* Slider Styling */
input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  transition: all 0.3s ease;
}

input[type="range"]:hover {
  background: #cbd5e1;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0808EE, #6366F1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 8, 238, 0.3);
  transition: all 0.3s ease;
  border: 3px solid #fff;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0808EE, #6366F1);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(8, 8, 238, 0.3);
  transition: all 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Channel Selection */
.channel-selection {
  background: #f8fafc;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #e8ecf1;
}

.channel-selection h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
  text-align: center;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.channel-toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.channel-toggle-btn i {
  font-size: 28px;
  color: #64748b;
  transition: color 0.25s ease;
}

.channel-toggle-btn span {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  transition: color 0.25s ease;
}

.channel-toggle-btn:hover {
  border-color: #0808EE;
}

.channel-toggle-btn:hover i,
.channel-toggle-btn:hover span {
  color: #0808EE;
}

.channel-toggle-btn.active {
  background: linear-gradient(135deg, #0808EE, #6366F1);
  border-color: transparent;
}

.channel-toggle-btn.active i,
.channel-toggle-btn.active span {
  color: #fff;
}


/* ============================================
   CALCULATORS INDEX PAGE
============================================ */

/* Hero Section */
.calculators-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  text-align: center;
}

.calculators-main-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 16px;
}

.calculators-main-subtitle {
  font-size: 1.15rem;
  color: #4a5568;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* Trust Indicators — compact inline row */
.trust-section {
  padding: 48px 0;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.trust-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-stat {
  text-align: center;
}

.trust-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #0808EE;
  display: block;
  margin-bottom: 4px;
  line-height: 1.2;
}

.trust-stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* Calculators Grid */
.calculators-grid-wrapper {
  padding: 60px 0;
  max-width: 1140px;
  margin: 0 auto;
}

.calculator-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  height: 100%;
  border: 1px solid #eee;
  position: relative;
  overflow: hidden;
}

.calculator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-color, #0808EE), var(--card-color-light, #6366F1));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.calculator-card:hover::before {
  transform: scaleX(1);
}

.calculator-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  border-color: transparent;
}

.calculator-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.calculator-card:hover .calculator-card-icon {
  transform: scale(1.08);
}

.calculator-card-icon i {
  font-size: 24px;
  color: #fff;
}

.calculator-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.calculator-card:hover .calculator-card-title {
  color: #0808EE;
}

.calculator-card-description {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
  line-height: 1.6;
}

.calculator-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: #0808EE;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}

.calculator-card:hover .calculator-card-cta {
  gap: 12px;
}

.calculator-card-cta i {
  transition: transform 0.3s ease;
}

.calculator-card:hover .calculator-card-cta i {
  transform: translateX(4px);
}

/* Benefits Section */
.calculators-benefits-section {
  padding: 80px 0;
  background: #fafbfc;
}

.benefit-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #0808EE, #6366F1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.08);
}

.benefit-icon i {
  font-size: 24px;
  color: #fff;
}

.benefit-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a2e;
}

.benefit-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* FAQ Section — scoped to override dark-mode bleeds from other CSS */
.calculators-faq-section {
  padding: 80px 0;
  background: #fff;
}

.calculators-faq-section .faq-item {
  background: #fff !important;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #e8ecf1 !important;
  transition: all 0.25s ease;
  overflow: hidden;
  color: #1a1a2e !important;
  padding: 0;
}

.calculators-faq-section .faq-item:hover {
  border-color: #d0d5dd !important;
}

.calculators-faq-section .faq-item.active {
  border-color: #0808EE !important;
  box-shadow: 0 4px 16px rgba(8, 8, 238, 0.08);
}

.calculators-faq-section .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  line-height: 1.4;
  margin: 0;
  outline: none;
}

.calculators-faq-section .faq-question:hover {
  color: #0808EE !important;
}

.calculators-faq-section .faq-toggle {
  font-size: 20px;
  color: #94a3b8;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.calculators-faq-section .faq-item.active .faq-toggle {
  color: #0808EE;
  transform: rotate(45deg);
}

.calculators-faq-section .faq-answer {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: #4a5568 !important;
  font-size: 14px;
  line-height: 1.7;
  padding: 0 24px;
  margin: 0;
}

.calculators-faq-section .faq-item.active .faq-answer {
  max-height: 400px !important;
  padding: 0 24px 20px;
}

/* Mini CTA Cards */
.mini-cta-section {
  padding: 48px 0;
}

.mini-cta-card {
  background: linear-gradient(135deg, #0808EE, #6366F1);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
}

.mini-cta-card h4 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.mini-cta-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.mini-cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #fff;
  color: #0808EE;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mini-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: #0808EE;
  text-decoration: none;
}

/* CTA Section */
.calculators-cta-section {
  background: linear-gradient(135deg, #0808EE, #6366F1);
  padding: 48px 32px;
  border-radius: 20px;
  color: #fff;
}

.calculators-cta-section h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.calculators-cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
}

.calculators-cta-section .hero-blue-btns + p {
  color: #fff !important;
}

/* Calculator Page CTA Terms */
.calculator-page .hero-blue-btns + p {
  color: #fff !important;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .calculator-hero-section,
  .calculators-hero {
    padding: 120px 20px 60px;
  }

  .calculator-hero-title,
  .calculators-main-title {
    font-size: 2rem;
  }

  .calculator-hero-subtitle,
  .calculators-main-subtitle {
    font-size: 1rem;
  }

  .industry-presets,
  .channel-selection {
    padding: 24px 20px;
  }

  .preset-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .channel-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }

  .channel-toggle-btn {
    padding: 14px 10px;
  }

  .channel-toggle-btn i {
    font-size: 22px;
  }

  .channel-toggle-btn span {
    font-size: 12px;
  }

  .calculator-card {
    padding: 24px;
  }

  .calculator-card-title {
    font-size: 16px;
  }

  .calculator-card-icon {
    width: 48px;
    height: 48px;
  }

  .calculator-card-icon i {
    font-size: 20px;
  }

  .calculators-cta-section {
    padding: 36px 24px;
  }

  .calculators-cta-section h3 {
    font-size: 20px;
  }

  .calculators-cta-section p {
    font-size: 14px;
  }

  .trust-section {
    padding: 36px 0;
  }

  .trust-stats {
    gap: 24px;
  }

  .trust-stat-number {
    font-size: 24px;
  }

  .trust-stat-label {
    font-size: 13px;
  }

  .calculators-benefits-section {
    padding: 48px 0;
  }

  .benefit-card {
    padding: 24px 20px;
  }

  .benefit-icon {
    width: 48px;
    height: 48px;
  }

  .benefit-icon i {
    font-size: 20px;
  }

  .benefit-card h4 {
    font-size: 15px;
  }

  .calculators-faq-section {
    padding: 48px 0;
  }

  .calculators-faq-section .faq-question {
    font-size: 14px;
    padding: 16px 20px;
  }

  .calculators-faq-section .faq-toggle {
    font-size: 18px;
    width: 24px;
    height: 24px;
  }

  .calculators-faq-section .faq-answer {
    padding: 0 20px;
  }

  .calculators-faq-section .faq-item.active .faq-answer {
    padding: 0 20px 16px;
  }

  .mini-cta-section {
    padding: 36px 0;
  }

  .mini-cta-card {
    padding: 32px 24px;
  }

  .mini-cta-card h4 {
    font-size: 18px;
  }

  .mini-cta-card p {
    font-size: 14px;
  }

  .mini-cta-btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .calculator-info-banner {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .range-value {
    font-size: 18px;
    padding: 8px 14px;
  }

  input[type="range"]::-webkit-slider-thumb,
  input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }

  .calculator-breadcrumb {
    padding: 80px 0 15px;
  }

  .breadcrumb-link {
    font-size: 14px;
    padding: 10px 20px;
    gap: 10px;
  }

  .calculator-trust-section {
    padding: 40px 0;
  }

  .related-calculators-section {
    padding: 48px 0;
  }

  .related-calculators-section h2 {
    font-size: 22px;
  }
}
