/* Property Value Calculator Styles */

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

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

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

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

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

.pvc-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);
}

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

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

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

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

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

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

.pvc-form-input:focus {
  outline: none;
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  transform: translateY(-1px);
}

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

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

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

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

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

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

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

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

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

/* Derived display — monthly payment auto-calc */
.pvc-derived-display {
  background: linear-gradient(135deg, #eef2ff 0%, #f0f7ff 100%);
  border: 2px solid #c7d2fe;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

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

/* Scenario buttons */
.pvc-scenario-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pvc-scenario-btn {
  flex: 1;
  min-width: 120px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.pvc-scenario-btn:hover {
  border-color: #8B5CF6;
  transform: translateY(-1px);
}

.pvc-scenario-btn.active {
  border-color: #8B5CF6;
  background: linear-gradient(135deg, rgba(30,136,229,0.08), rgba(139,92,246,0.08));
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

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

.pvc-scenario-label {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
}

.pvc-scenario-btn.active .pvc-scenario-value {
  color: #8B5CF6;
}

.pvc-custom-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-top: 8px;
  flex-wrap: wrap;
}

.pvc-custom-row .pvc-form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

/* Primary Button */
.btn-pvc-primary {
  background: linear-gradient(135deg, #1E88E5, #8B5CF6);
  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-pvc-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

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

.pvc-result-header {
  text-align: center;
  margin-bottom: 24px;
}

.pvc-result-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 4px;
}

.pvc-result-subtitle {
  font-size: 0.88rem;
  color: #64748b;
}

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

.pvc-result-stat {
  text-align: center;
}

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

.pvc-result-stat-value.property { color: #1E88E5; }
.pvc-result-stat-value.equity { color: #059669; }
.pvc-result-stat-value.debt { color: #ea580c; }

.pvc-result-stat-label {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
  font-weight: 600;
}

/* Abbreviation tooltip (UNWW, LTV) — applies anywhere on the page */
abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  cursor: help;
}

/* Milestone cards */
.pvc-milestones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.pvc-milestone-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0f7ff 100%);
  border: 1px solid #a7f3d0;
  border-left: 4px solid #059669;
  border-radius: 0 12px 12px 0;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pvc-milestone-card.not-reached {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #dc2626;
}

.pvc-milestone-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #059669;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pvc-milestone-card.not-reached .pvc-milestone-icon {
  background: #dc2626;
}

.pvc-milestone-text {
  flex: 1;
}

.pvc-milestone-title {
  font-weight: 800;
  color: #065f46;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.pvc-milestone-card.not-reached .pvc-milestone-title {
  color: #991b1b;
}

.pvc-milestone-desc {
  color: #374151;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Chart container */
.pvc-chart-container {
  margin-top: 28px;
  background: #fafbfc;
  border-radius: 12px;
  padding: 20px 12px 12px;
  border: 1px solid #e5e7eb;
}

.pvc-chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 10px;
  text-align: center;
}

.pvc-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.pvc-chart-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.82rem;
  color: #374151;
  font-weight: 600;
}

.pvc-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pvc-chart-legend-swatch {
  width: 14px;
  height: 4px;
  border-radius: 2px;
}

.pvc-chart-legend-swatch.equity {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  opacity: 0.35;
}

/* Projection table */
.pvc-projection-section {
  margin-top: 28px;
}

.pvc-projection-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1E3A5F;
  margin-bottom: 12px;
  text-align: center;
}

.pvc-projection-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.pvc-projection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 560px;
}

.pvc-projection-table thead th {
  background: #1E3A5F;
  color: white;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: right;
}

.pvc-projection-table thead th:first-child {
  text-align: left;
}

.pvc-projection-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  text-align: right;
}

.pvc-projection-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #1E3A5F;
}

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

.pvc-projection-table .milestone-row {
  background: rgba(5, 150, 105, 0.08) !important;
  font-weight: 700;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.pvc-faq-question:hover {
  background: #eef2ff;
}

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

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

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

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

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

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

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

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

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

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

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

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

.pvc-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) {
  .pvc-card {
    padding: 1.5rem;
  }

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

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

  .pvc-milestones {
    grid-template-columns: 1fr;
  }
}

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

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

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

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

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

  .pvc-scenario-group {
    flex-direction: column;
  }

  .pvc-scenario-btn {
    min-width: auto;
  }

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

  .pvc-projection-table {
    font-size: 0.78rem;
  }

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

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