/* ════════════════════════════════════════════════════════════════════════════
   FAQ & Help Center Styles - UMKM Batam Marketplace
   ════════════════════════════════════════════════════════════════════════════ */

.faq-page-wrapper {
  background-color: #f8fafc;
  min-height: calc(100vh - 200px);
}

/* ── Hero Banner ─────────────────────────────────────────────────────────── */
.faq-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #06503f 0%, #00826b 50%, #004d40 100%);
  color: #ffffff;
  padding: 56px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 130, 107, 0.15);
}

/* Organic Ambient Circles */
.faq-hero-ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.faq-hero-ambient-1 {
  width: 380px;
  height: 380px;
  bottom: -140px;
  left: -80px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0.05) 60%, transparent 80%);
}

.faq-hero-ambient-2 {
  width: 320px;
  height: 320px;
  top: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.28) 0%, rgba(52, 211, 153, 0.04) 60%, transparent 80%);
}

.faq-hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 10px;
}

.faq-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 30px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Bar */
.faq-search-box {
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 6px 8px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-search-box:focus-within {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(244, 162, 97, 0.4);
}

.faq-search-icon {
  color: #94a3b8;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
}

.faq-search-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 500;
  background: transparent;
}

.faq-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.faq-clear-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.95rem;
  border-radius: 50%;
  display: none;
}

.faq-clear-btn:hover {
  color: #64748b;
  background-color: #f1f5f9;
}

.faq-search-btn {
  background: #f4a261;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.faq-search-btn:hover {
  background: #e76f51;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 111, 81, 0.35);
}

/* ── Category Cards Grid ─────────────────────────────────────────────────── */
.faq-category-card {
  background: #ffffff;
  border: 1.5px solid #edf2f7;
  border-radius: 20px;
  padding: 26px 18px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  user-select: none;
  position: relative;
}

.faq-category-card:hover {
  transform: translateY(-5px);
  border-color: #00826b;
  box-shadow: 0 14px 28px rgba(0, 130, 107, 0.08);
}

.faq-category-card.active {
  border-color: #00826b;
  background: #f4fbf9;
  box-shadow: 0 10px 24px rgba(0, 130, 107, 0.12);
}

.faq-cat-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  transition: transform 0.25s ease;
}

.faq-category-card:hover .faq-cat-icon-wrapper {
  transform: scale(1.08);
}

.faq-cat-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.faq-cat-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

/* ── Active Filter Bar ───────────────────────────────────────────────────── */
.faq-filter-status-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 20px;
}

/* ── Main Section ────────────────────────────────────────────────────────── */
.faq-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #0f172a;
  margin-bottom: 20px;
}

/* ── Accordion List ──────────────────────────────────────────────────────── */
.faq-accordion-item {
  background: #ffffff;
  border: 1.5px solid #edf2f7;
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-accordion-item:hover {
  border-color: #cbd5e1;
}

/* Expanded state matching the mockup */
.faq-accordion-item.active {
  background: #f0fbf7;
  border-color: #86efac;
  box-shadow: 0 8px 20px rgba(0, 130, 107, 0.07);
}

.faq-accordion-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

.faq-accordion-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.faq-q-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: #e6f6f3;
  color: #00826b;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.faq-accordion-item.active .faq-q-badge {
  background: #d1fae5;
  color: #00826b;
}

.faq-question-text {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.45;
  margin: 0;
  letter-spacing: -0.2px;
}

.faq-accordion-chevron {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.15rem;
  transition: transform 0.25s ease, color 0.2s ease;
}

.faq-accordion-item.active .faq-accordion-chevron {
  transform: rotate(180deg);
  color: #00826b;
}

.faq-accordion-body {
  padding: 0 22px 20px 68px;
  display: none;
  animation: faqFadeSlide 0.25s ease-out;
}

.faq-accordion-item.active .faq-accordion-body {
  display: block;
}

.faq-answer-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin: 0;
}

/* Micro-feedback inside answer */
.faq-helpful-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(0, 130, 107, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #64748b;
}

.faq-helpful-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.8rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-helpful-btn:hover {
  background: #00826b;
  color: #ffffff;
  border-color: #00826b;
}

@keyframes faqFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Support & Help Card (Right Column) ──────────────────────────────────── */
.faq-support-card {
  background: #ffffff;
  border: 1.5px solid #edf2f7;
  border-radius: 24px;
  padding: 30px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 100px;
}

.faq-support-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.faq-support-subtitle {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 24px;
}

.faq-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  cursor: pointer;
}

.faq-contact-item:last-child {
  margin-bottom: 0;
}

.faq-contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.faq-contact-item.contact-chat:hover {
  border-color: #00826b;
  background: #f4fbf9;
}

.faq-contact-item.contact-wa:hover {
  border-color: #f59e0b;
  background: #fffdf5;
}

.faq-contact-item.contact-email:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.faq-contact-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.faq-contact-info {
  display: flex;
  flex-direction: column;
}

.faq-contact-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.faq-contact-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

/* ── Empty State ─────────────────────────────────────────────────────────── */
.faq-empty-state {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px dashed #cbd5e1;
}

.faq-empty-icon {
  font-size: 2.5rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

/* ── Responsive Refinements ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .faq-hero-card {
    padding: 38px 18px;
    border-radius: 20px;
  }
  .faq-hero-title {
    font-size: 1.75rem;
  }
  .faq-hero-subtitle {
    font-size: 0.95rem;
  }
  .faq-accordion-body {
    padding-left: 22px;
  }
  .faq-support-card {
    position: static;
    margin-top: 24px;
  }
}
