/* ==========================================================================
   FAQ MODULE STYLES
   ========================================================================== */

.faq {
  position: relative;
  padding: 120px 24px;
  background-color: #0f172a;
  color: #f8fafc;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

.faq-bg-glow {
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* HEADER */
.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #6366f1;
  border-radius: 50%;
}

.faq-header h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-sub {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ACCORDION LIST */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FAQ ITEM CARD */
.faq-item {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(30, 41, 59, 0.8);
}

.faq-item.active {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.1);
}

/* QUESTION BUTTON */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: #a5b4fc;
}

/* ICON INDICATOR */
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Rotates + into an X */
  background: #6366f1;
  border-color: transparent;
  color: #ffffff;
}

/* ANSWER BODY (SLIDE ANIMATION) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Expands smoothly */
  padding: 0 28px 24px 28px;
}

.faq-answer p {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .faq {
    padding: 80px 20px;
  }

  .faq-header h2 {
    font-size: 32px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
  }
}