/* ============================================
   NEXBOND CRM — FAQ (100% Light Professional Theme)
   ============================================ */

/* ── Hero Section ── */
.faq-hero {
  padding-top: calc(var(--nav-height, 76px) + var(--space-16));
  padding-bottom: var(--space-16);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(6, 182, 212, 0.03) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.faq-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.faq-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-6);
}

.faq-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
  display: inline-block;
}

.faq-hero h1 {
  font-family: var(--disp);
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--tx);
  margin-bottom: var(--space-5);
}

.faq-hero .subtitle {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--tx-mute);
  max-width: 720px;
  margin: 0 auto var(--space-8);
}

/* ── Live FAQ Search Box ── */
.faq-search-box {
  max-width: 580px;
  margin: 0 auto var(--space-6);
}

.faq-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 16px 6px 20px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base);
}

.faq-search-input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 10px 28px -4px rgba(37, 99, 235, 0.18), 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
  color: var(--tx-dim);
  margin-right: 12px;
  flex-shrink: 0;
}

.faq-search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--tx);
  background: transparent;
}

.faq-search-input-wrap input::placeholder {
  color: var(--tx-dim);
  font-weight: 400;
}

.clear-search-btn {
  background: var(--paper-2);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tx-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
  transition: all var(--transition-base);
}

.clear-search-btn:hover {
  background: var(--line);
  color: var(--tx);
}

/* Category Filter Pills */
.faq-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
}

.faq-pill {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tx-mute);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.faq-pill:hover {
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.3);
}

.faq-pill.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ── FAQ Accordion Section ── */
.faq-content-section {
  padding: var(--space-20) 0;
  background: #ffffff;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.faq-item.active {
  border-color: var(--blue);
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.12);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  gap: var(--space-4);
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  outline: none;
}

.faq-q-text {
  font-family: var(--disp);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tx);
  line-height: 1.35;
  transition: color var(--transition-base);
}

.faq-item.active .faq-q-text {
  color: var(--blue);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--tx-mute);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.active .faq-icon {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

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

.faq-answer-content {
  padding: 0 var(--space-6) var(--space-6);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--tx-mute);
  border-top: 1px solid var(--line-light);
  padding-top: var(--space-4);
}

.faq-answer-content p {
  margin-bottom: var(--space-3);
}

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

.faq-answer-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
  margin-bottom: var(--space-3);
}

.faq-answer-content li {
  font-size: 0.88rem;
  line-height: 1.6;
}

.faq-answer-content strong {
  color: var(--tx);
}

/* ── Empty State ── */
.no-faq-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  background: var(--paper-2);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-2xl);
  max-width: 860px;
  margin: var(--space-8) auto;
}

.no-faq-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-3);
}

.no-faq-state h3 {
  font-family: var(--disp);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tx);
  margin-bottom: var(--space-2);
}

.no-faq-state p {
  font-size: 0.88rem;
  color: var(--tx-mute);
  max-width: 480px;
  margin: 0 auto var(--space-5);
}

/* ── Direct Help Desk Card ── */
.faq-helpdesk-card {
  max-width: 860px;
  margin: var(--space-16) auto 0;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.04);
}

.helpdesk-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.helpdesk-text {
  flex: 1;
}

.helpdesk-text h3 {
  font-family: var(--disp);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--tx);
  margin-bottom: 4px;
}

.helpdesk-text p {
  font-size: 0.86rem;
  color: var(--tx-mute);
  margin: 0;
}

.helpdesk-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ── Responsive Rules ── */
@media (max-width: 768px) {
  .faq-hero {
    padding-top: 80px !important;
    padding-bottom: 20px !important;
  }
  .faq-hero-badge {
    margin-bottom: 10px !important;
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
  }
  .faq-hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }
  .faq-hero .subtitle {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
  }
  .faq-search-box {
    margin-bottom: 14px !important;
  }
  .faq-search-input-wrap {
    padding: 4px 12px !important;
  }
  .faq-search-input-wrap input {
    font-size: 0.84rem !important;
    padding: 6px 8px !important;
  }
  .faq-category-pills {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 6px !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
  }
  .faq-pill {
    padding: 5px 12px !important;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .faq-item {
    border-radius: 12px !important;
    margin-bottom: 8px !important;
  }
  .faq-question {
    padding: 12px 14px !important;
  }
  .faq-q-text {
    font-size: 0.88rem !important;
  }
  .faq-chevron {
    width: 24px !important;
    height: 24px !important;
  }
  .faq-answer {
    padding: 0 14px 12px !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }
  .faq-helpdesk-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 18px 16px !important;
    border-radius: 14px !important;
    margin-top: 28px !important;
    gap: 12px !important;
  }
  .helpdesk-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .helpdesk-actions .btn {
    width: 100% !important;
  }
}
