/* FAQ Page Styles */

.faq-page {
  min-height: calc(100vh - 200px);
}

.hero-section {
  background: linear-gradient(135deg, rgba(24,45,130,.08) 0%, rgba(6,147,227,.05) 100%);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--rippa-blue);
}

.hero-section .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0;
}

.faq-content {
  padding: 32px 0 60px 0;
  background: #fff;
}

.faq-category {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}

.faq-category:hover {
  box-shadow: 0 4px 12px rgba(24,45,130,.08);
}

.faq-category-header {
  width: 100%;
  background: white;
  border: none;
  border-radius: 12px 12px 0 0;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 3px solid var(--rippa-blue);
}

.faq-category-header:hover {
  background: var(--card-bg);
}

.faq-category-header[aria-expanded="true"] {
  background: var(--card-bg);
}

.faq-category-header h2 {
  font-size: 1.75rem;
  color: var(--rippa-blue);
  margin: 0;
  padding: 0;
  border: none;
  font-weight: 700;
  flex: 1;
  text-align: left;
}

.faq-category-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.faq-category-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--rippa-blue);
}

.faq-category-header[aria-expanded="true"] .faq-category-icon {
  transform: rotate(180deg);
}

.faq-category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding-top 0.3s ease, padding-bottom 0.3s ease;
  padding: 0 30px;
}

.faq-category-content.active {
  max-height: 10000px;
  padding: 0 30px 30px 30px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--rippa-blue);
}

.faq-question span {
  flex: 1;
  padding-right: 20px;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--rippa-blue);
}

.faq-question[aria-expanded="true"] {
  color: var(--rippa-blue);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 0;
}

.faq-answer.active {
  max-height: 1500px;
  padding: 0 0 20px 0;
}

.faq-answer p {
  margin: 0 0 16px 0;
  line-height: 1.7;
  color: var(--text);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  margin: 12px 0;
  padding-left: 24px;
  line-height: 1.7;
}

.faq-answer li {
  margin-bottom: 10px;
  color: var(--text);
}

.faq-answer strong {
  color: var(--rippa-blue);
  font-weight: 600;
}

.faq-answer a {
  color: var(--rippa-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.faq-answer a:hover {
  color: var(--rippa-blue-bright);
  text-decoration: underline;
}

.faq-cta {
  background: linear-gradient(135deg, var(--rippa-blue) 0%, var(--rippa-blue-bright) 100%);
  color: white;
  padding: 50px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 8px 24px rgba(24,45,130,.2);
}

.faq-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

.faq-cta p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: rgba(255,255,255,.9);
}

.faq-cta .btn {
  background: white;
  color: var(--rippa-blue);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  border: 2px solid white;
}

.faq-cta .btn:hover {
  background: var(--card-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 20px 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1.1rem;
  }

  .faq-content {
    padding: 24px 0 40px 0;
  }

  .faq-category {
    padding: 0;
    margin-bottom: 16px;
  }

  .faq-category-header {
    padding: 20px;
    flex-wrap: wrap;
  }

  .faq-category-header h2 {
    font-size: 1.3rem;
    flex-basis: 100%;
    margin-bottom: 8px;
  }

  .faq-category-count {
    font-size: 0.85rem;
  }

  .faq-category-content {
    padding: 0 20px;
  }

  .faq-category-content.active {
    padding: 0 20px 20px 20px;
  }

  .faq-question {
    font-size: 1rem;
    padding: 16px 0;
  }

  .faq-answer {
    font-size: 0.95rem;
  }

  .faq-cta {
    padding: 30px 20px;
  }

  .faq-cta h2 {
    font-size: 1.5rem;
  }

  .faq-cta p {
    font-size: 1rem;
  }
}

/* Print Styles */
@media print {
  .hero-section {
    background: none;
  }

  .hero-section h1 {
    color: black;
  }

  .faq-question {
    page-break-inside: avoid;
  }

  .faq-answer {
    max-height: none !important;
    display: block !important;
  }

  .faq-icon {
    display: none;
  }

  .faq-cta {
    display: none;
  }
}
