/* Overpayment Calculator Styles */

/* Hero */
.ovp-hero {
  background: linear-gradient(135deg, #1E3A5F 0%, #059669 60%, #d4a017 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}

.ovp-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.ovp-hero .lead {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.ovp-hero-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0;
}

.ovp-hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Calculator Section */
.ovp-calculator-section {
  padding: 48px 0;
  background: #f8faff;
}

/* Calculator Card */
.ovp-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ovp-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ovp-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.ovp-card-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Form Groups */
.ovp-form-group {
  margin-bottom: 1.75rem;
}

.ovp-form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
  font-size: 0.95rem;
}

.ovp-form-input {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.ovp-form-input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
  transform: translateY(-1px);
}

.ovp-form-hint {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-top: 4px;
}

.ovp-value-display {
  font-size: 0.95rem;
  font-weight: 700;
  color: #059669;
  text-align: right;
  min-width: 120px;
}

.ovp-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ovp-slider-row input[type="range"] {
  flex: 1;
}

/* Custom Range Slider */
input[type="range"].ovp-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  margin: 8px 0;
}

input[type="range"].ovp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #d4a017);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
  transition: transform 0.15s ease;
}

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

input[type="range"].ovp-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #d4a017);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
}

/* Section Divider */
.ovp-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 16px;
  margin-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* Toggle Group */
.ovp-toggle-group {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}

.ovp-toggle-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  color: #6b7280;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.ovp-toggle-btn:hover {
  color: #374151;
}

.ovp-toggle-btn.active {
  background: white;
  color: #059669;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Primary Button */
.btn-ovp-primary {
  background: linear-gradient(135deg, #059669, #d4a017);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-ovp-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

/* Disclaimer */
.ovp-disclaimer {
  background: #fff8e1;
  border: 1px solid #ffd54f;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.82rem;
  color: #5d4037;
  margin-top: 24px;
  line-height: 1.6;
}

/* Result Card */
.ovp-result-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  border: 2px solid #e5e7eb;
  margin-top: 24px;
}

/* Decision Indicator */
.ovp-decision {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 12px;
}

.ovp-decision-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ovp-decision-text {
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
}

.ovp-decision-green {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.ovp-decision-green .ovp-decision-icon {
  background: #059669;
  color: white;
}

.ovp-decision-green .ovp-decision-text {
  color: #065f46;
}

.ovp-decision-yellow {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.ovp-decision-yellow .ovp-decision-icon {
  background: #d97706;
  color: white;
}

.ovp-decision-yellow .ovp-decision-text {
  color: #92400e;
}

.ovp-decision-red {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.ovp-decision-red .ovp-decision-icon {
  background: #dc2626;
  color: white;
}

.ovp-decision-red .ovp-decision-text {
  color: #991b1b;
}

/* Main Metric */
.ovp-main-metric {
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #059669, #d4a017);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 8px 0 4px;
}

.ovp-main-metric-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 20px;
}

/* Result Stats */
.ovp-result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.ovp-result-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1E3A5F;
}

.ovp-result-stat-value.savings {
  color: #059669;
}

.ovp-result-stat-label {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Timeline Bar */
.ovp-timeline {
  margin: 24px 0 8px;
  padding: 0 4px;
}

.ovp-timeline-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.ovp-timeline-bar {
  display: flex;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.ovp-timeline-green {
  background: linear-gradient(90deg, #a7f3d0, #6ee7b7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #065f46;
  min-width: 40px;
  transition: width 0.5s ease;
}

.ovp-timeline-saved {
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #92400e;
  flex: 1;
  transition: width 0.5s ease;
}

.ovp-timeline-marker {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #374151;
  font-weight: 600;
}

.ovp-timeline-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1E3A5F;
}

/* Save & Compare */
.ovp-save-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-ovp-secondary {
  padding: 10px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: white;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.btn-ovp-secondary:hover {
  border-color: #059669;
  color: #059669;
}

/* Saved results grid */
.ovp-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.ovp-compare-card {
  background: #f8faff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  position: relative;
}

.ovp-compare-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  font-size: 1rem;
  line-height: 1;
}

.ovp-compare-remove:hover {
  color: #dc2626;
}

.ovp-compare-big {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 2px;
}

.ovp-compare-big.savings {
  color: #059669;
}

.ovp-compare-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 8px;
}

.ovp-compare-detail {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 2px;
}

/* Educational Section */
.ovp-edu-section {
  padding: 64px 0;
  background: white;
}

.ovp-edu-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 16px;
}

.ovp-edu-section p {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.ovp-edu-definition {
  background: linear-gradient(135deg, #ecfdf5 0%, #fefce8 100%);
  border-left: 4px solid #059669;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 20px 0 32px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: #1E3A5F;
}

/* Comparison table */
.ovp-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  font-size: 0.92rem;
}

.ovp-comparison-table thead th {
  background: #1E3A5F;
  color: white;
  padding: 12px 16px;
  font-weight: 700;
  text-align: left;
}

.ovp-comparison-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.ovp-comparison-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.ovp-comparison-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.ovp-comparison-table tbody tr:nth-child(even) {
  background: #f8faff;
}

/* Checklist */
.ovp-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 32px;
}

.ovp-checklist li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #374151;
}

.ovp-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
}

.ovp-check-icon.yes {
  background: #ecfdf5;
  color: #059669;
}

.ovp-check-icon.no {
  background: #fef2f2;
  color: #dc2626;
}

/* Steps */
.ovp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0 0;
}

.ovp-step-card {
  background: #f8faff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.ovp-step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #059669, #d4a017);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 12px;
}

.ovp-step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 8px;
}

.ovp-step-card p {
  color: #64748b;
  font-size: 0.88rem;
  margin: 0;
}

/* FAQ Section */
.ovp-faq-section {
  background: #f8faff;
  padding: 64px 0;
}

.ovp-faq-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1E3A5F;
  text-align: center;
  margin-bottom: 12px;
}

.ovp-faq-lead {
  text-align: center;
  color: #64748b;
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.ovp-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: white;
}

.ovp-faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1E3A5F;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.ovp-faq-question:hover {
  background: #ecfdf5;
}

.ovp-faq-answer {
  padding: 0 24px 0;
  color: #555;
  font-size: 0.93rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  line-height: 1.7;
}

.ovp-faq-answer.open {
  max-height: 1000px;
  padding: 0 24px 18px;
}

.ovp-faq-chevron {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ovp-faq-question.active .ovp-faq-chevron {
  transform: rotate(180deg);
}

/* CTA Section */
.ovp-final-cta {
  background: linear-gradient(135deg, #1E3A5F 0%, #059669 60%, #d4a017 100%);
  color: white;
  padding: 64px 0;
  text-align: center;
}

.ovp-final-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.ovp-final-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.ovp-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ovp-cta-white {
  background: white;
  color: #059669;
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ovp-cta-white:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #059669;
}

.btn-ovp-cta-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-ovp-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 991px) {
  .ovp-card {
    padding: 1.5rem;
  }

  .ovp-result-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ovp-hero h1 {
    font-size: 1.9rem;
  }

  .ovp-hero .lead {
    font-size: 1rem;
  }

  .ovp-result-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ovp-steps {
    grid-template-columns: 1fr;
  }

  .ovp-compare-grid {
    grid-template-columns: 1fr;
  }

  .ovp-decision {
    flex-direction: column;
    text-align: center;
  }

  .ovp-decision-text {
    text-align: center;
  }

  .ovp-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .ovp-toggle-group {
    flex-direction: column;
    width: 100%;
  }

  .ovp-toggle-btn {
    width: 100%;
  }

  .ovp-main-metric {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .ovp-hero h1 {
    font-size: 1.6rem;
  }
}

/* Toast notification */
.ovp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.ovp-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.ovp-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  max-width: 440px;
}
