/* =====================================================
   FAQ SECTION - Frequently Asked Questions
   Accordion-style Q&A with smooth animations
   ===================================================== */

.faq {
  background: white;
  padding: var(--spacing-3xl) 0;
}

/* FAQ Container */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ Grid */
.faq-grid {
  margin-top: var(--spacing-2xl);
}

/* FAQ Item */
.faq-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.faq-item:hover {
  border-color: var(--primary-light);
}

.faq-item.active {
  background: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* FAQ Question (Button) */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
  transition: all var(--transition-base);
}

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

.faq-item.active .faq-question {
  color: var(--primary);
  padding-bottom: var(--spacing-md);
}

/* FAQ Icon */
.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.faq-item.active .faq-icon {
  background: var(--primary);
  transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height var(--transition-slow) ease-in;
}

.faq-answer-content {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.faq-answer-content p {
  margin-bottom: var(--spacing-sm);
}

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

.faq-answer-content strong {
  color: var(--gray-900);
  font-weight: 600;
}

.faq-answer-content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

.faq-answer-content a:hover {
  color: var(--primary-dark);
}

/* FAQ CTA */
.faq-cta {
  margin-top: var(--spacing-2xl);
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
}

.faq-cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
}

.faq-cta-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.faq-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
  .faq-question {
    font-size: 1rem;
    padding: var(--spacing-md);
  }
  
  .faq-item.active .faq-question {
    padding-bottom: var(--spacing-sm);
  }
  
  .faq-icon {
    width: 28px;
    height: 28px;
    font-size: 1.125rem;
  }
  
  .faq-answer-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
    font-size: 0.875rem;
  }
  
  .faq-cta {
    padding: var(--spacing-lg);
  }
  
  .faq-cta-title {
    font-size: 1.25rem;
  }
  
  .faq-cta-buttons {
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .faq-cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .faq-question {
    font-size: 0.9375rem;
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }
  
  .faq-answer-content {
    padding: 0 var(--spacing-sm) var(--spacing-sm);
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeInUp 0.6s ease-out;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }
