/* Modern Compact FAQ Styles */
.faq-page {
  min-height: calc(100vh - 64px);
  padding: 48px 0 64px;background: var(--bg-primary);
}

.faq-container-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.faq-header h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.faq-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.faq-header p a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.2s;
}

.faq-header p a:hover {
  border-bottom-color: var(--accent-primary);
}

/* Search Box */
.faq-search-box {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 14px 48px 14px 48px;
  font-size: 15px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  background: var(--surface);
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.faq-clear-search {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: none;
  transition: color 0.2s;
}

.faq-clear-search:hover {
  color: var(--text-secondary);
}

/* Category Filters */
.faq-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.faq-category-btn {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1.5px solid var(--border-light);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.faq-category-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-medium);
}

.faq-category-btn.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* FAQ Items */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}

.faq-item.active .faq-question-btn {
  color: var(--accent-primary);
}

.faq-question-text {
  flex: 1;
  line-height: 1.5;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  color: var(--text-tertiary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 24px 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* Empty State */
.faq-empty {
  text-align: center;
  padding: 64px 20px;
}

.faq-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--border-medium);
}

.faq-empty h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.faq-empty p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 24px 0;
}

/* Contact CTA */
.faq-cta {
  margin-top: 64px;
  padding: 32px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  border-radius: 16px;
  text-align: center;
  color: var(--text-inverse);
}

.faq-cta h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.faq-cta p {
  font-size: 15px;
  margin: 0 0 24px 0;
  opacity: 0.95;
}

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

.faq-cta .btn {
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.faq-cta .btn-primary {
  background: var(--surface);
  color: var(--accent-primary);
}

.faq-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.faq-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Responsive */
@media (max-width: 768px) {
  .faq-page {
    padding: 32px 0 48px;
  }
  
  .faq-header {
    margin-bottom: 32px;
  }
  
  .faq-search-box {
    margin-bottom: 24px;
  }
  
  .faq-categories {
    gap: 6px;
    margin-bottom: 24px;
  }
  
  .faq-category-btn {
    padding: 6px 16px;
    font-size: 13px;
  }
  
  .faq-question-btn {
    padding: 16px 20px;
    font-size: 14px;
  }
  
  .faq-answer-content {
    padding: 0 20px 20px 20px;
    font-size: 13px;
  }
  
  .faq-cta {
    margin-top: 48px;
    padding: 24px 20px;
  }
  
  .faq-cta-buttons {
    flex-direction: column;
  }
  
  .faq-cta .btn {
    width: 100%;
  }
}

/* Highlight Search Results */
mark {
  background: var(--warning-light);
  color: var(--warning);
  padding: 2px 4px;
  border-radius: 3px;
}
