/* Rental Profitability Calculator Styles - HipotekaAI */

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

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

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

.rpc-hero-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

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

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

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

/* Explainer */
.rpc-explainer {
  background: linear-gradient(135deg, #f0f4ff 0%, #ecfdf5 100%);
  border: 1px solid #d1fae5;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 2rem;
}

.rpc-explainer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1E3A5F;
  font-size: 1rem;
  margin-bottom: 10px;
}

.rpc-explainer-text {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Section headings */
.rpc-section-heading {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpc-section-heading:first-of-type {
  margin-top: 0;
}

/* Form groups */
.rpc-form-group {
  margin-bottom: 1.5rem;
}

.rpc-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.rpc-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  background: #f9fafb;
  transition: border-color 0.2s, background 0.2s;
  font-family: 'Inter', sans-serif;
}

.rpc-form-input:focus {
  outline: none;
  border-color: #059669;
  background: white;
}

select.rpc-form-input {
  cursor: pointer;
}

.rpc-slider-row {
  margin-top: 8px;
}

.rpc-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #059669 0%, #1E88E5 100%);
  outline: none;
  -webkit-appearance: none;
  margin: 12px 0 6px;
}

.rpc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 3px solid #059669;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rpc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: 3px solid #059669;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.rpc-value-display {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 4px;
}

.rpc-form-hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.5;
}

.rpc-form-hint-with-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.rpc-form-hint-with-source > span:first-child {
  background: #f3f4f6;
  color: #1f2937;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
}

.rpc-price-source {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.rpc-price-source-city {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #86efac;
}

.rpc-price-source-manual {
  background: #eff6ff;
  color: #1E40AF;
  border: 1px solid #bfdbfe;
}

.rpc-price-source-default {
  background: #fef9c3;
  color: #713F12;
  border: 1px solid #fde68a;
}

/* Tax options */
.rpc-tax-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .rpc-tax-options {
    grid-template-columns: 1fr;
  }
}

.rpc-tax-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #f9fafb;
}

.rpc-tax-option:hover {
  border-color: #059669;
  background: #ecfdf5;
}

.rpc-tax-option input[type="radio"] {
  margin-right: 6px;
}

.rpc-tax-option:has(input[type="radio"]:checked) {
  border-color: #059669;
  background: #ecfdf5;
}

.rpc-tax-option-title {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.95rem;
}

.rpc-tax-option-sub {
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Loan toggle */
.rpc-loan-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.rpc-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.rpc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.rpc-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 26px;
}

.rpc-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.rpc-switch input:checked + .rpc-switch-slider {
  background-color: #059669;
}

.rpc-switch input:checked + .rpc-switch-slider:before {
  transform: translateX(20px);
}

.rpc-switch-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rpc-switch-label strong {
  color: #1f2937;
  font-size: 0.95rem;
}

.rpc-switch-sub {
  color: #6b7280;
  font-size: 0.82rem;
}

.rpc-loan-fields {
  margin-top: 12px;
}

/* Primary CTA button */
.btn-rpc-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  font-weight: 700;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  margin-top: 1rem;
}

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

.btn-rpc-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  color: #059669;
  font-weight: 700;
  padding: 12px 24px;
  border: 2px solid #059669;
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-rpc-secondary:hover {
  background: #ecfdf5;
  color: #047857;
}

/* Result card */
.rpc-result-card {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px dashed #e5e7eb;
}

/* Traffic light */
.rpc-traffic-light {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.rpc-tl-green {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #059669;
}

.rpc-tl-green .rpc-traffic-icon { color: #059669; }
.rpc-tl-green .rpc-traffic-title { color: #065f46; }

.rpc-tl-yellow {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #F59E0B;
}

.rpc-tl-yellow .rpc-traffic-icon { color: #D97706; }
.rpc-tl-yellow .rpc-traffic-title { color: #92400E; }

.rpc-tl-red {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #DC2626;
}

.rpc-tl-red .rpc-traffic-icon { color: #DC2626; }
.rpc-tl-red .rpc-traffic-title { color: #991B1B; }

.rpc-traffic-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpc-traffic-text {
  flex: 1;
}

.rpc-traffic-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.rpc-traffic-sub {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
}

/* Metrics group label */
.rpc-metrics-group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #059669;
  margin: 6px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d1fae5;
  flex-wrap: wrap;
}

.rpc-metrics-group-label-investor {
  color: #1E88E5;
  border-bottom-color: #bfdbfe;
  margin-top: 18px;
}

.rpc-metrics-group-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: none;
  letter-spacing: 0;
  margin-left: auto;
}

/* Explainer for metrics loan-independence */
.rpc-metrics-explainer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #1E88E5;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 2rem;
  color: #0c4a6e;
  font-size: 0.88rem;
  line-height: 1.55;
}

.rpc-metrics-explainer i {
  color: #1E88E5;
  margin-top: 2px;
}

.rpc-metrics-explainer strong {
  color: #075985;
  display: block;
  margin-bottom: 4px;
}

/* Metrics grid */
.rpc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 1.2rem;
}

@media (max-width: 992px) {
  .rpc-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .rpc-metrics-grid { grid-template-columns: 1fr; }
}

.rpc-metric {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rpc-metric-primary {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #059669;
}

.rpc-metric-label {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rpc-metric-primary .rpc-metric-label {
  color: #059669;
}

.rpc-metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.1;
}

.rpc-metric-primary .rpc-metric-value {
  color: #065f46;
}

.rpc-metric-sub {
  font-size: 0.72rem;
  color: #9ca3af;
}

.rpc-metric-disabled {
  opacity: 0.5;
}

.rpc-cf-positive { color: #059669 !important; }
.rpc-cf-negative { color: #DC2626 !important; }
.rpc-cf-neutral  { color: #F59E0B !important; }

/* Breakdown section */
.rpc-breakdown-section,
.rpc-yield-chart-section {
  margin-bottom: 2rem;
  padding: 20px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.rpc-breakdown-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rpc-breakdown-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 768px) {
  .rpc-breakdown-content {
    grid-template-columns: 1fr;
  }
}

.rpc-donut-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rpc-donut-svg {
  width: 220px;
  height: 220px;
}

.rpc-donut-center-label {
  font-size: 11px;
  fill: #6b7280;
  font-weight: 600;
}

.rpc-donut-center-value {
  font-size: 16px;
  fill: #1f2937;
  font-weight: 800;
}

.rpc-donut-legend {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
  width: 100%;
  font-size: 0.8rem;
}

.rpc-donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.rpc-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.rpc-legend-label {
  flex: 1;
  color: #374151;
}

.rpc-legend-value {
  color: #6b7280;
  font-weight: 600;
}

.rpc-legend-value em {
  font-style: normal;
  color: #9ca3af;
  font-weight: 500;
}

.rpc-chart-empty {
  padding: 40px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Breakdown table */
.rpc-breakdown-table-inner {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.rpc-breakdown-table-inner td {
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
}

.rpc-breakdown-table-inner tr:last-child td {
  border-bottom: none;
}

.rpc-row-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rpc-row-income { color: #059669; font-weight: 600; }
.rpc-row-cost   { color: #374151; }
.rpc-row-cost .rpc-row-value { color: #DC2626; }

.rpc-row-subtotal {
  background: #f9fafb;
  font-weight: 700;
}

.rpc-row-total {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  font-weight: 800;
  color: #065f46;
}

.rpc-row-total .rpc-row-value {
  color: #065f46;
}

/* Yield bar chart */
.rpc-yield-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpc-yield-bar-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  align-items: center;
}

@media (max-width: 500px) {
  .rpc-yield-bar-row { grid-template-columns: 1fr; gap: 4px; }
}

.rpc-yield-bar-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}

.rpc-yield-bar-track {
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  height: 32px;
  position: relative;
}

.rpc-yield-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  transition: width 0.5s ease;
  min-width: 60px;
}

.rpc-yield-bar-value {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* Save row */
.rpc-save-row {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Disclaimer */
.rpc-disclaimer {
  margin-top: 1.5rem;
  padding: 16px 20px;
  background: #fef9c3;
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
  color: #713F12;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Saved results */
.rpc-saved-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 16px;
}

.rpc-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.rpc-compare-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  font-size: 0.88rem;
}

.rpc-compare-remove {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.rpc-compare-remove:hover {
  color: #DC2626;
  background: #fee2e2;
}

.rpc-compare-header {
  padding-right: 28px;
  margin-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 8px;
}

.rpc-compare-city {
  font-weight: 700;
  color: #1f2937;
}

.rpc-compare-price {
  color: #6b7280;
  font-size: 0.82rem;
}

.rpc-compare-primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  background: #ecfdf5;
  border-radius: 8px;
}

.rpc-compare-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rpc-compare-metric-label {
  font-size: 0.7rem;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.rpc-compare-metric strong {
  font-size: 0.95rem;
  color: #065f46;
  font-weight: 800;
}

.rpc-compare-detail {
  color: #4b5563;
  padding: 2px 0;
  font-size: 0.82rem;
}

.rpc-compare-detail strong {
  color: #1f2937;
}

/* Toast */
.rpc-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #1f2937;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  max-width: 90vw;
}

.rpc-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rpc-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

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

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

.rpc-edu-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1E3A5F;
  margin: 28px 0 14px;
}

.rpc-edu-definition {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left: 4px solid #059669;
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  color: #064E3B;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.rpc-edu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.rpc-edu-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
  color: #374151;
}

.rpc-edu-list li:before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 10px;
  color: #059669;
  font-weight: 900;
}

.rpc-edu-list-cons li:before {
  content: "✗";
  color: #DC2626;
}

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

@media (max-width: 768px) {
  .rpc-steps { grid-template-columns: 1fr; }
}

.rpc-step-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.rpc-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.rpc-step-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.rpc-step-card p {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0;
}

/* Expert CTA */
.rpc-expert-cta {
  margin-top: 32px;
  padding: 28px;
  background: linear-gradient(135deg, #1E3A5F 0%, #059669 100%);
  border-radius: 16px;
  color: white;
  text-align: center;
}

.rpc-expert-cta h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.rpc-expert-cta p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 18px;
}

.rpc-expert-cta .btn-rpc-secondary {
  background: white;
  color: #059669;
  border-color: white;
}

.rpc-expert-cta .btn-rpc-secondary:hover {
  background: #ecfdf5;
}

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

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

.rpc-faq-lead {
  text-align: center;
  color: #64748b;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

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

.rpc-faq-question {
  padding: 16px 20px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  transition: background 0.2s;
}

.rpc-faq-question:hover { background: #f9fafb; }

.rpc-faq-question.active {
  background: #ecfdf5;
  color: #065f46;
}

.rpc-faq-chevron {
  transition: transform 0.25s;
  color: #6b7280;
  flex-shrink: 0;
}

.rpc-faq-question.active .rpc-faq-chevron {
  transform: rotate(180deg);
  color: #059669;
}

.rpc-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #4b5563;
  line-height: 1.65;
  font-size: 0.92rem;
  padding: 0 20px;
}

.rpc-faq-answer.open {
  max-height: 2000px;
  padding: 12px 20px 18px;
}

/* Related calculators */
.rpc-related-section {
  padding: 60px 0;
  background: white;
}

.rpc-related-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1E3A5F;
  margin-bottom: 28px;
}

.rpc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 992px) { .rpc-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .rpc-related-grid { grid-template-columns: 1fr; } }

.rpc-related-card {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.rpc-related-card:hover {
  border-color: #059669;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.15);
  color: inherit;
  text-decoration: none;
}

.rpc-related-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.rpc-related-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.rpc-related-card p {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

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

.rpc-final-cta h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.rpc-final-cta p {
  font-size: 1rem;
  opacity: 0.92;
  margin-bottom: 24px;
}

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

.btn-rpc-cta-white,
.btn-rpc-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.98rem;
}

.btn-rpc-cta-white {
  background: white;
  color: #059669;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-rpc-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: #047857;
}

.btn-rpc-cta-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-rpc-cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .rpc-hero { padding: 60px 0 44px; }
  .rpc-hero h1 { font-size: 1.9rem; }
  .rpc-card { padding: 1.5rem; }
  .rpc-calculator-section { padding: 32px 0; }
  .rpc-traffic-light { padding: 16px 18px; gap: 12px; }
  .rpc-traffic-title { font-size: 1rem; }
  .rpc-traffic-sub { font-size: 0.82rem; }
  .rpc-metric-value { font-size: 1.15rem; }
  .rpc-final-cta h2 { font-size: 1.45rem; }
}
