@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

/* ==========================================================================
   SalesRoute.ai - FAQ Page Stylesheet
   Matches design mockup with responsive layout, fluid typography,
   micro-interactions, and accessibility support.
   ========================================================================== */

:root {
  --faq-primary: #0060DF;
  --faq-primary-dark: #004CB3;
  --faq-primary-light: #EBF3FF;
  --faq-navy: #0B132B;
  --faq-coral: #FF6633;
  --faq-coral-hover: #E85524;
  --faq-text-dark: #0F172A;
  --faq-text-body: #334155;
  --faq-text-muted: #64748B;
  --faq-text-subtle: #94A3B8;
  --faq-bg-light: #F8FAFC;
  --faq-border: #E8EEF5;
  --faq-border-active: #CBD5E1;
  --faq-card-radius: 14px;
  --faq-transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-page-wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: #F8FAFC;
  color: var(--faq-text-dark);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* ==========================================================================
   1. HERO SECTION (Deep Blue Gradient)
   ========================================================================== */
.faq-hero-section {
  width: 100%;
  background: linear-gradient(180deg, #1473E6 0%, #0B5DD7 60%, #004CB3 100%);
  color: #FFFFFF;
  padding: 1.75rem 1.25rem 3.5rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 76, 179, 0.15);
}

.faq-hero-container {
  max-width: 58rem;
  margin: 0 auto;
  position: relative;
}

/* Back to home nav */
.faq-back-nav {
  margin-bottom: 1.5rem;
}

.faq-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--faq-transition);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
}

.faq-back-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-3px);
}

.faq-back-link svg {
  transition: transform 0.2s ease;
}

.faq-back-link:hover svg {
  transform: translateX(-2px);
}

/* Hero Center Content */
.faq-hero-content {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}

/* Help Centre Badge Pill */
.faq-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 1.15rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-badge-pill svg {
  stroke: #FFFFFF;
}

/* Hero Titles */
.faq-hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}

.faq-hero-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
  margin: 0 auto 2rem;
  max-width: 36rem;
}

/* Search Box Container */
.faq-search-box-wrapper {
  max-width: 38rem;
  margin: 0 auto;
}

.faq-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 0.75rem 1.125rem;
  gap: 0.75rem;
  transition: var(--faq-transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-search-box:focus-within {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.faq-search-icon {
  color: rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.faq-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 0.975rem;
  font-family: inherit;
}

.faq-search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.faq-search-clear {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--faq-transition);
}

.faq-search-clear:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* ==========================================================================
   2. FILTER PILLS BAR
   ========================================================================== */
.faq-filter-section {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--faq-border);
  padding: 1.125rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.faq-filter-container {
  max-width: 58rem;
  margin: 0 auto;
}

.faq-filter-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.faq-filter-scroll::-webkit-scrollbar {
  display: none;
}

.faq-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: var(--faq-text-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--faq-transition);
  user-select: none;
  white-space: nowrap;
}

.faq-pill-btn:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
  color: var(--faq-text-dark);
}

.faq-pill-icon {
  color: var(--faq-text-muted);
  transition: var(--faq-transition);
}

.faq-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 9999px;
  background: #F1F5F9;
  color: var(--faq-text-muted);
  transition: var(--faq-transition);
}

/* Active State for Filter Pills */
.faq-pill-btn.active {
  background: var(--faq-primary);
  border-color: var(--faq-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 96, 223, 0.25);
}

.faq-pill-btn.active .faq-pill-icon {
  color: #FFFFFF;
}

.faq-pill-btn.active .faq-pill-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

/* ==========================================================================
   3. MAIN CONTENT: ACCORDIONS & CATEGORY GROUPS
   ========================================================================== */
.faq-main-section {
  max-width: 58rem;
  margin: 2.5rem auto 4.5rem;
  padding: 0 1.25rem;
}

.faq-accordion-container {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

/* Category Block */
.faq-category-block {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

/* Category Title Header */
.faq-category-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 0.25rem;
}

.faq-category-icon-wrap {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EBF3FF;
  color: var(--faq-primary);
  flex-shrink: 0;
}

.faq-category-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--faq-text-dark);
  margin: 0;
  line-height: 1.2;
}

.faq-category-subcount {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--faq-text-muted);
}

/* Cards Stack */
.faq-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Single Accordion Card */
.faq-accordion-item {
  background: #FFFFFF;
  border: 1px solid var(--faq-border);
  border-radius: var(--faq-card-radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.faq-accordion-item:hover {
  border-color: #D5DFEB;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.faq-accordion-item.is-open {
  border-color: #C3D5EC;
  box-shadow: 0 4px 14px rgba(0, 96, 223, 0.08);
}

/* Accordion Trigger Button */
.faq-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.faq-accordion-trigger:focus-visible {
  outline: 2px solid var(--faq-primary);
  outline-offset: -2px;
}

.faq-trigger-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

/* Number Badge (01, 02... 09, 10, 11) - Circular with monospaced slashed zero matching reference */
.faq-number-badge {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border-radius: 50%;
  background-color: #EFF2F6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', 'SF Mono', Consolas, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: #7E8E9F;
  letter-spacing: -0.01em;
  font-variant-numeric: slashed-zero tabular-nums;
  font-feature-settings: "zero" 1;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: none;
  user-select: none;
}

/* Question Headline */
.faq-question-text {
  font-size: 1.025rem;
  font-weight: 600;
  color: var(--faq-text-dark);
  line-height: 1.4;
  margin: 0;
}

/* Toggle Circle Icon */
.faq-trigger-icon-wrap {
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: var(--faq-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-accordion-item.is-open .faq-trigger-icon-wrap {
  transform: rotate(45deg);
  background: var(--faq-primary);
  border-color: var(--faq-primary);
  color: #FFFFFF;
}

/* Panel Body */
.faq-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-accordion-inner {
  padding: 0 1.35rem 1.35rem;
}

.faq-answer-content {
  color: var(--faq-text-body);
  font-size: 0.95rem;
  line-height: 1.68;
  border-top: 1px solid #F1F5F9;
  padding-top: 1rem;
}

.faq-answer-content p {
  margin: 0 0 0.75rem;
}

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

.faq-answer-content a {
  color: var(--faq-primary);
  text-decoration: underline;
  font-weight: 500;
}

.faq-answer-content a:hover {
  color: var(--faq-primary-dark);
}

/* ==========================================================================
   4. EMPTY SEARCH RESULTS STATE
   ========================================================================= */
.faq-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: var(--faq-card-radius);
  margin-top: 1rem;
}

.faq-empty-icon {
  margin-bottom: 1rem;
}

.faq-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--faq-text-dark);
  margin: 0 0 0.5rem;
}

.faq-empty-desc {
  font-size: 0.95rem;
  color: var(--faq-text-muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.faq-btn-clear-search {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.4rem;
  background: var(--faq-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--faq-transition);
}

.faq-btn-clear-search:hover {
  background: var(--faq-primary-dark);
  box-shadow: 0 4px 12px rgba(0, 96, 223, 0.25);
}

/* ==========================================================================
   5. SUPPORT CTA CARD ("STILL NEED HELP?")
   ========================================================================= */
.faq-cta-wrapper {
  margin-top: 4.5rem;
}

.faq-cta-card {
  background: var(--faq-navy);
  border-radius: 20px;
  padding: 2.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #FFFFFF;
  box-shadow: 0 12px 32px rgba(11, 19, 43, 0.15);
}

.faq-cta-content {
  flex: 1;
}

.faq-cta-tagline {
  display: block;
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--faq-text-subtle);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.faq-cta-heading {
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.faq-cta-note {
  font-size: 0.925rem;
  color: var(--faq-text-subtle);
  margin: 0;
}

.faq-cta-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}

/* Email us pill button */
.faq-cta-btn-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFFFF;
  color: var(--faq-text-dark);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.7rem 1.45rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: var(--faq-transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.faq-cta-btn-email:hover {
  background: #F1F5F9;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Live chat pill button matching reference */
.faq-cta-btn-chat {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #FF5C28;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.65rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: var(--faq-transition);
  box-shadow: 0 2px 10px rgba(255, 92, 40, 0.28);
  font-family: inherit;
  letter-spacing: -0.01em;
}

.faq-cta-btn-chat:hover {
  background: #F04F1A;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 92, 40, 0.42);
}

.faq-chat-speech-icon {
  display: block;
  flex-shrink: 0;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 992px) {
  .faq-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.25rem 2rem;
    gap: 1.75rem;
  }

  .faq-cta-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .faq-hero-section {
    padding: 1.25rem 1rem 2.5rem;
  }

  .faq-hero-title {
    font-size: 2.15rem;
  }

  .faq-hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .faq-search-box {
    padding: 0.65rem 0.95rem;
  }

  .faq-filter-section {
    padding: 0.85rem 1rem;
  }

  .faq-filter-scroll {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .faq-main-section {
    margin: 1.75rem auto 3.5rem;
    padding: 0 1rem;
  }

  .faq-accordion-trigger {
    padding: 0.95rem 1.1rem;
  }

  .faq-question-text {
    font-size: 0.95rem;
  }

  .faq-accordion-inner {
    padding: 0 1.1rem 1.1rem;
  }

  .faq-cta-card {
    padding: 1.75rem 1.5rem;
  }

  .faq-cta-heading {
    font-size: 1.35rem;
  }

  .faq-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .faq-cta-btn-email,
  .faq-cta-btn-chat {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .faq-hero-title {
    font-size: 1.85rem;
  }

  .faq-trigger-left {
    gap: 0.85rem;
  }

  .faq-number-badge {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    font-size: 0.85rem;
  }
}
