/**
 * PCTechComVn — FAQ CSS
 * Child Theme CSS Module
 * Version: 1.0.0 (Sprint 12)
 *
 * FAQ Accordion styles.
 */

/* ═══════════════════════════════════════════════
   1. FAQ LIST & ITEM
   ═══════════════════════════════════════════════ */
.faq-list {
  max-width: none;
  margin: 0;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
  background: var(--white);
}

.faq-item.open {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(13, 61, 122, 0.05);
}

/* ═══════════════════════════════════════════════
   2. FAQ QUESTION (Trigger)
   ═══════════════════════════════════════════════ */
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue-dark);
  text-align: left;
  gap: 16px;
}

.faq-q .arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
  background: var(--orange);
  color: var(--white);
}

/* ═══════════════════════════════════════════════
   3. FAQ ANSWER
   ═══════════════════════════════════════════════ */
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  /* Using a sufficiently large max-height for CSS animation */
  max-height: 600px;
  padding: 0 24px 20px;
}

/* ═══════════════════════════════════════════════
   4. FAQ CONTACT CARD (Optional 2-col layout)
   ═══════════════════════════════════════════════ */
.faq-contact-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: var(--radius);
  padding: 32px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.faq-contact-card h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.faq-contact-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
