/* LTV Calculator Styles */

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

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

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

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

.ltv-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 */
.ltv-calculator-section {
  padding: 48px 0;
  background: #f8faff;
}

/* Calculator Card */
.ltv-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);
}

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

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

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

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

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

.ltv-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;
}

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

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

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

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

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

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

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

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

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

/* Section Divider */
.ltv-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;
}

/* Primary Button */
.btn-ltv-primary {
  background: linear-gradient(135deg, #059669, #1E88E5);
  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-ltv-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
}

/* Derived Display */
.ltv-derived-display {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f7ff 100%);
  border: 2px solid #a7f3d0;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 12px;
}

.ltv-derived-item {
  text-align: center;
}

.ltv-derived-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.ltv-derived-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1E3A5F;
}

.ltv-derived-value.ltv-ok {
  color: #059669;
}

.ltv-derived-value.ltv-warn {
  color: #d97706;
}

.ltv-derived-value.ltv-danger {
  color: #dc2626;
}

/* Disclaimer */
.ltv-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 */
.ltv-result-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  border: 2px solid #e5e7eb;
  margin-top: 24px;
}

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

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

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

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

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

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

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

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

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

.ltv-decision-orange {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.ltv-decision-orange .ltv-decision-icon {
  background: #ea580c;
  color: white;
}

.ltv-decision-orange .ltv-decision-text {
  color: #9a3412;
}

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

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

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

/* LTV Gauge */
.ltv-gauge {
  margin: 24px 0;
}

.ltv-gauge-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
  text-align: left;
}

.ltv-gauge-bar {
  height: 36px;
  border-radius: 18px;
  display: flex;
  overflow: hidden;
  position: relative;
}

.ltv-gauge-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  transition: width 0.3s ease;
}

.ltv-gauge-zone-green {
  background: linear-gradient(90deg, #059669, #34d399);
}

.ltv-gauge-zone-yellow {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.ltv-gauge-zone-orange {
  background: linear-gradient(90deg, #ea580c, #fb923c);
}

.ltv-gauge-zone-red {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.ltv-gauge-marker {
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ltv-gauge-marker-label {
  background: #1E3A5F;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  margin-bottom: 2px;
}

.ltv-gauge-marker-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #1E3A5F;
}

.ltv-gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.ltv-gauge-zone-labels {
  display: flex;
  margin-top: 4px;
}

.ltv-gauge-zone-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

.ltv-gauge-zone-label.green { color: #059669; }
.ltv-gauge-zone-label.yellow { color: #d97706; }
.ltv-gauge-zone-label.orange { color: #ea580c; }
.ltv-gauge-zone-label.red { color: #dc2626; }

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

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

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

.ltv-result-stat-value.warning {
  color: #d97706;
}

.ltv-result-stat-value.danger {
  color: #dc2626;
}

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

/* Savings Potential Box */
.ltv-savings-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 3px solid #059669;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: #065f46;
  line-height: 1.6;
  text-align: left;
}

.ltv-savings-icon {
  flex-shrink: 0;
  color: #059669;
  margin-top: 2px;
}

.ltv-savings-highlight {
  font-size: 1.2rem;
  font-weight: 900;
  color: #059669;
}

/* No Savings Box */
.ltv-no-savings-box {
  background: rgba(234, 88, 12, 0.06);
  border: 1px solid #fed7aa;
  border-left: 3px solid #ea580c;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: #9a3412;
  line-height: 1.6;
  text-align: left;
}

/* Comparison Table */
.ltv-comparison-section {
  margin-top: 32px;
}

.ltv-comparison-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 16px;
  text-align: center;
}

.ltv-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ltv-comparison-table thead th {
  background: #1E3A5F;
  color: white;
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
  font-size: 0.82rem;
}

.ltv-comparison-table thead th:first-child {
  border-radius: 8px 0 0 0;
  text-align: left;
}

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

.ltv-comparison-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  color: #374151;
}

.ltv-comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
}

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

.ltv-comparison-table tbody tr.active-row {
  background: rgba(5, 150, 105, 0.08);
  border: 2px solid #059669;
}

.ltv-comparison-table tbody tr.active-row td {
  font-weight: 700;
}

.ltv-comparison-table .cost-higher {
  color: #ea580c;
  font-weight: 600;
}

.ltv-comparison-table .cost-lower {
  color: #059669;
  font-weight: 600;
}

.ltv-comparison-table .no-insurance {
  color: #059669;
  font-weight: 600;
}

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

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

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

.ltv-edu-definition {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f7ff 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;
}

/* Threshold Table */
.ltv-threshold-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  font-size: 0.92rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ltv-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;
}

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

.ltv-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;
}

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

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

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

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

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

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

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

.btn-ltv-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-ltv-cta-white:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #059669;
}

.btn-ltv-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-ltv-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* Toast notification */
.ltv-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;
}

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

.ltv-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;
}

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

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

  .ltv-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

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

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

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

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

  .ltv-comparison-table {
    font-size: 0.78rem;
  }

  .ltv-comparison-table thead th,
  .ltv-comparison-table tbody td {
    padding: 8px 6px;
  }

  .ltv-derived-display {
    flex-direction: column;
    text-align: center;
  }

  .ltv-gauge-zone {
    font-size: 0;
  }
}

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