/* ============================================================
   AltivisOne — FAQs Page Styles
   Minimal Black & White Theme with Inter Font & Brand Accents
   ============================================================ */

.faqs-page {
  background-color: #ffffff;
  padding-top: 76px;
}

/* Hero Section */
.faqs-hero-section {
  padding: 5rem 0 3.5rem;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.faqs-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.faqs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(223, 120, 0, 0.08);
  border: 1px solid rgba(223, 120, 0, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary, #DF7800);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.faqs-badge .badge-icon {
  font-size: 0.9rem;
}

.faqs-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #000000;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.faqs-hero-title .highlight-text {
  color: var(--color-primary, #DF7800);
}

.faqs-hero-para {
  font-size: 1.15rem;
  color: #4b5563;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* Search & Filter Bar */
.faqs-controls {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faqs-search-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.faqs-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.faqs-search-icon svg,
.faqs-search-icon i {
  width: 20px;
  height: 20px;
  stroke: #9ca3af;
  transition: stroke var(--transition-fast, 150ms ease);
}

.faqs-search-wrapper:focus-within .faqs-search-icon svg,
.faqs-search-wrapper:focus-within .faqs-search-icon i {
  stroke: var(--color-primary, #DF7800);
}

.faqs-search-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-size: 1rem;
  font-family: var(--font-sans, inherit);
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-lg, 16px);
  background: #ffffff;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  outline: none;
  transition: all var(--transition-fast, 150ms ease);
}

.faqs-search-input:focus {
  border-color: var(--color-primary, #DF7800);
  box-shadow: 0 0 0 4px rgba(223, 120, 0, 0.12);
}

.faqs-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.faq-cat-btn {
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  transition: all var(--transition-fast, 150ms ease);
}

.faq-cat-btn:hover {
  border-color: #d1d5db;
  color: #111827;
  background: #f9fafb;
}

.faq-cat-btn.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* FAQ Body Section */
.faqs-body-section {
  padding: 4.5rem 0 6rem;
  background-color: #ffffff;
}

.faqs-container {
  max-width: 860px;
  margin: 0 auto;
}

.faqs-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.faqs-count-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
}

.faq-toggle-all-btn {
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary, #DF7800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 150ms ease;
}

.faq-toggle-all-btn:hover {
  background: rgba(223, 120, 0, 0.08);
}

/* Accordion Group */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  transition: all 250ms ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.faq-item.active {
  border-color: var(--color-primary, #DF7800);
  box-shadow: 0 6px 20px rgba(223, 120, 0, 0.08);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.faq-question-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.faq-num-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-primary, #DF7800);
  background: rgba(223, 120, 0, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}

.faq-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.faq-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #4b5563;
  transition: all 250ms ease;
}

.faq-item.active .faq-icon-wrapper {
  background: var(--color-primary, #DF7800);
  color: #ffffff;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(0.4, 0, 0.2, 1), padding 350ms ease;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  max-height: 1200px;
  padding: 0 1.75rem 1.75rem 1.75rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 0.25rem;
}

.faq-answer-inner {
  padding-top: 1.25rem;
  font-size: 1.025rem;
  color: #374151;
  line-height: 1.7;
}

.faq-answer-inner p {
  margin-bottom: 1rem;
  color: #374151;
}

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

.faq-bullets {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-bullets li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1rem;
  color: #374151;
  line-height: 1.6;
}

.faq-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 900;
  color: var(--color-primary, #DF7800);
}

/* No Results Box */
.faqs-no-results {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  background: #fafafa;
  border: 1px dashed #d1d5db;
  border-radius: var(--radius-lg, 16px);
}

.faqs-no-results i {
  width: 48px;
  height: 48px;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.faqs-no-results h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #111827;
}

.faqs-no-results p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

/* CTA Card at Bottom */
.faq-support-card {
  margin-top: 4.5rem;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  border-radius: var(--radius-xl, 24px);
  padding: 3.5rem 2.5rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.1));
}

.faq-support-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(223, 120, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.faq-support-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.faq-support-desc {
  font-size: 1.05rem;
  color: #9ca3af;
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.faq-support-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.faq-support-actions .btn-primary {
  background: var(--color-primary, #DF7800);
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 150ms ease;
}

.faq-support-actions .btn-primary:hover {
  background: var(--color-primary-hover, #c66a00);
  transform: translateY(-2px);
}

.faq-support-actions .btn-secondary-light {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 26px;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 150ms ease;
}

.faq-support-actions .btn-secondary-light:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .faqs-hero-section {
    padding: 3.5rem 0 2.5rem;
  }
  .faq-question {
    padding: 1.25rem;
  }
  .faq-answer {
    padding: 0 1.25rem;
  }
  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
  .faq-support-card {
    padding: 2.5rem 1.5rem;
  }
}
