/* FAQ Section Styles and Animations */

.faq-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  position: relative;
  overflow: visible;
  border-color: #b7adff;
  background-color: rgba(98, 84, 241, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.4s ease-out forwards;
  margin: 0;
  transform-origin: center;
}

.faq-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(98, 84, 241, 0.2);
}

.faq-item:nth-child(1) { animation-delay: 0s; }
.faq-item:nth-child(2) { animation-delay: 0.05s; }
.faq-item:nth-child(3) { animation-delay: 0.1s; }
.faq-item:nth-child(4) { animation-delay: 0.15s; }
.faq-item:nth-child(5) { animation-delay: 0.2s; }
.faq-item:nth-child(6) { animation-delay: 0.25s; }

.faq-item.faq-hover {
  background-color: rgba(98, 84, 241, 0.16);
  border-color: #c5bfff;
}

.faq-button {
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  width: 100%;
}

.faq-button:focus-visible {
  outline: 2px solid #b7adff;
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-button:hover {
  opacity: 0.9;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(0deg);
  color: white;
}

.faq-item.faq-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.faq-item.faq-open .faq-answer {
  opacity: 1;
}

/* Enhanced animation for smooth expand/collapse */
.faq-answer {
  transition: 
    max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .faq-item {
    padding: 12px 12px;
  }

  .faq-button > div:first-child p {
    font-size: 18px;
    line-height: 24px;
  }

  .faq-answer p {
    font-size: 16px;
    line-height: 24px;
  }
}

/* Accessibility improvements */
.faq-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Animation for initial page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
