/* RRSO Calculator Styles */

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

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

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

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

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

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

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

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

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

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

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

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

.rrso-form-input:focus {
  outline: none;
  border-color: var(--ai-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  transform: translateY(-1px);
}

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

.rrso-form-hint a {
  color: var(--primary-blue);
  text-decoration: underline;
}

.rrso-value-display {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-align: right;
  min-width: 120px;
}

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

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

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

input[type="range"].rrso-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.4);
  transition: transform 0.15s ease;
}

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

input[type="range"].rrso-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-gradient);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.4);
}

/* Primary Button */
.btn-rrso-primary {
  background: var(--primary-gradient);
  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-rrso-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.btn-rrso-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.rrso-result-big {
  font-size: 3.2rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 4px;
}

.rrso-result-label {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.rrso-result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

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

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

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

.btn-rrso-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-rrso-secondary:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

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

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

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

.rrso-compare-remove:hover {
  color: var(--error-red);
}

.rrso-compare-rrso {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

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

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

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

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

.rrso-edu-definition {
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
  border-left: 4px solid var(--primary-blue);
  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 (educational) */
.rrso-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
  font-size: 0.92rem;
}

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

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

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

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

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

.rrso-cell-yes {
  color: var(--success-green);
  font-weight: 700;
}

.rrso-cell-no {
  color: var(--error-red);
  font-weight: 700;
}

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

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

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

.rrso-check-icon.yes {
  background: #ecfdf5;
  color: var(--success-green);
}

.rrso-check-icon.no {
  background: #fef2f2;
  color: var(--error-red);
}

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

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

.rrso-step-num {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 12px;
}

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

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

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

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

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

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

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

.rrso-faq-question:hover {
  background: #f0f7ff;
}

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

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

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

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

/* CTA Section */
.rrso-final-cta {
  background: var(--primary-gradient);
  color: white;
  padding: 64px 0;
  text-align: center;
}

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

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

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

.btn-rrso-cta-white {
  background: white;
  color: var(--primary-blue);
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-rrso-cta-white:hover {
  background: #f0f7ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: var(--primary-blue);
}

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

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

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

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

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

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

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

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

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

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

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

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