.faq-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.faq-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.faq-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.faq-item.active {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #3b82f6;
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #3b82f6;
}

.faq-item.active .faq-question {
  color: #3b82f6;
  border-bottom: 1px solid #e2e8f0;
}

.question-text {
  flex: 1;
  margin-right: 1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  color: #3b82f6;
  flex-shrink: 0;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

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

.faq-answer.open {
  max-height: 500px;
}

.answer-content {
  padding: 0 1.5rem 1.5rem;
  color: #64748b;
  line-height: 1.6;
}

.answer-content p {
  margin-bottom: 1rem;
}

.faq-features {
  margin-top: 1rem;
  padding: 1rem;
  background: #f1f5f9;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.faq-features h4 {
  margin-bottom: 0.75rem;
  color: #3b82f6;
  font-size: 0.9rem;
  font-weight: 600;
}

.faq-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-features li {
  padding: 0.25rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: #475569;
}

.faq-features li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0.25rem;
}

.faq-cta {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 3rem;
  border: 1px solid #e2e8f0;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.cta-subtitle {
  color: #64748b;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Dark theme support using CSS classes */
:root.dark .faq-section {
  background: #0f172a;
}

:root.dark .section-title {
  color: #f1f5f9;
}

:root.dark .section-subtitle {
  color: #94a3b8;
}

:root.dark .faq-item {
  background: #1e293b;
  border-color: #334155;
}

:root.dark .faq-item.active {
  border-color: #60a5fa;
}

:root.dark .faq-question {
  color: #f1f5f9;
}

:root.dark .faq-question:hover {
  color: #60a5fa;
}

:root.dark .faq-item.active .faq-question {
  color: #60a5fa;
  border-bottom-color: #334155;
}

:root.dark .faq-icon {
  color: #60a5fa;
}

:root.dark .answer-content {
  color: #94a3b8;
}

:root.dark .faq-features {
  background: #0f172a;
  border-left-color: #60a5fa;
}

:root.dark .faq-features h4 {
  color: #60a5fa;
}

:root.dark .faq-features li {
  color: #cbd5e1;
}

:root.dark .faq-cta {
  background: #1e293b;
  border-color: #334155;
}

:root.dark .cta-title {
  color: #f1f5f9;
}

:root.dark .cta-subtitle {
  color: #94a3b8;
}

/* Light theme explicit styles (optional but good for clarity) */
:root:not(.dark) .faq-section {
  background: #f8fafc;
}

:root:not(.dark) .section-title {
  color: #1e293b;
}

:root:not(.dark) .section-subtitle {
  color: #64748b;
}

:root:not(.dark) .faq-item {
  background: white;
  border-color: #e2e8f0;
}

:root:not(.dark) .faq-item.active {
  border-color: #3b82f6;
}

:root:not(.dark) .faq-question {
  color: #1e293b;
}

:root:not(.dark) .faq-question:hover {
  color: #3b82f6;
}

:root:not(.dark) .faq-item.active .faq-question {
  color: #3b82f6;
  border-bottom-color: #e2e8f0;
}

:root:not(.dark) .faq-icon {
  color: #3b82f6;
}

:root:not(.dark) .answer-content {
  color: #64748b;
}

:root:not(.dark) .faq-features {
  background: #f1f5f9;
  border-left-color: #3b82f6;
}

:root:not(.dark) .faq-features h4 {
  color: #3b82f6;
}

:root:not(.dark) .faq-features li {
  color: #475569;
}

:root:not(.dark) .faq-cta {
  background: white;
  border-color: #e2e8f0;
}

:root:not(.dark) .cta-title {
  color: #1e293b;
}

:root:not(.dark) .cta-subtitle {
  color: #64748b;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

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

  .answer-content {
    padding: 0 1rem 1rem;
  }

  .faq-cta {
    padding: 2rem 1rem;
    margin-top: 2rem;
  }

  .cta-title {
    font-size: 1.3rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .faq-question {
    padding: 0.75rem;
  }

  .answer-content {
    padding: 0 0.75rem 0.75rem;
  }

  .question-text {
    margin-right: 0.5rem;
  }
}
