/*==============================================================================
FAQ PAGE — statSCALAR Enterprise Design System
Scope   : resources/views/front/faq.blade.php
Depends : root.css (site-wide :root variables, reset, .container, .ss-btn,
          .ss-badge, .ss-card, typography) — already loaded globally, so it
          is NOT duplicated here.
Note    : This file is a page-scoped extract of sections 95–100 from the
          master custom.css ("Smart Knowledge Search" through "Enterprise
          Help Banner"), cleaned up and extended with a small number of new
          rules (clearly marked) to support the search box and category
          filter pills now wired up in the improved blade.
==============================================================================*/

/* NEW — accessible label helper for the search field (kept local to this
   page in case the global stylesheet doesn't already ship one) */
.visually-hidden{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/*==================================================
94. FAQ HERO
==================================================*/
.ss-faq-hero{
  position:relative;
  overflow:hidden;
  padding:64px 0 20px;
  background:
    radial-gradient(circle at top right, rgba(0,168,107,.08), transparent 38%),
    linear-gradient(180deg,#fbfefd 0%,#ffffff 100%);
}
.ss-faq-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(15,23,42,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(15,23,42,.03) 1px,transparent 1px);
  background-size:34px 34px;
  opacity:.35;
  pointer-events:none;
}
.ss-faq-hero-content{
  position:relative;
  z-index:2;
  max-width:700px;
}
.ss-faq-hero-content h1{
  margin:24px 0;
  font-size:48px;
  line-height:1.12;
  letter-spacing:1px;
}
.ss-faq-hero-content h1 span{
  display:block;
  color:var(--ss-primary);
}
.ss-faq-hero-content p{
  font-size:18px;
  line-height:1.9;
  max-width:620px;
  margin-bottom:26px;
  color:var(--ss-muted);
}
.ss-faq-actions{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:48px;
}
.ss-faq-trust{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
}
/* .ss-faq-trust prefix (this component's own containing wrapper): subscribe-
   blade.css also defines a bare .ss-trust-item, as a flex icon-card with
   left-aligned text, and loads after this file, so this page's own centered
   stat-box design was being replaced by that layout. display/gap are
   explicit resets -- this file's own rule never declared them, so raising
   specificity alone wouldn't neutralize subscribe's flex layout. */
.ss-faq-trust .ss-trust-item{
  display:block;
  gap:0;
  padding:22px;
  background:#fff;
  border:1px solid var(--ss-border);
  border-radius:18px;
  box-shadow:var(--ss-shadow-sm);
  text-align:center;
  transition:var(--ss-transition);
}
.ss-faq-trust .ss-trust-item:hover{
  transform:translateY(-5px);
  box-shadow:var(--ss-shadow);
}
.ss-faq-trust .ss-trust-item strong{
  display:block;
  font-size:26px;
  font-weight:800;
  color:var(--ss-heading);
  margin-bottom:8px;
}
.ss-faq-trust .ss-trust-item span{
  font-size:14px;
  color:var(--ss-muted);
}
.ss-faq-hero-card{
  position:relative;
  z-index:2;
  height:100%;
}
.ss-faq-hero-card .ss-card-body{
  padding:42px;
}
.ss-faq-hero-card h3{
  margin:24px 0 30px;
  font-size:30px;
  line-height:1.3;
}
.ss-faq-feature-list{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.ss-faq-feature-list li{
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:600;
  color:var(--ss-heading);
}
.ss-faq-feature-list li::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--ss-primary);
  flex-shrink:0;
}

/*==================================================
95. SMART KNOWLEDGE SEARCH
==================================================*/
.ss-faq-search{
  padding:20px 0 10px;
}
.ss-faq-search-box{
  max-width:900px;
  margin:auto;
  text-align:center;
}
.ss-faq-search-box h2{
  margin:20px 0 15px;
}
.ss-faq-search-box p{
  max-width:700px;
  margin:0 auto 35px;
  color:var(--ss-muted);
}
.ss-faq-search-input{
  display:flex;
  align-items:center;
  background:#fff;
  border:1px solid var(--ss-border);
  border-radius:20px;
  padding:0 24px;
  height:72px;
  box-shadow:var(--ss-shadow-sm);
  transition:var(--ss-transition);
}
.ss-faq-search-input:hover,
.ss-faq-search-input:focus-within{
  border-color:var(--ss-primary);
  box-shadow:0 10px 30px rgba(0,168,107,.12);
}
.ss-faq-search-input i{
  font-size:20px;
  color:var(--ss-primary);
  margin-right:18px;
}
.ss-faq-search-input input{
  flex:1;
  border:none;
  background:none;
  font-size:17px;
  color:var(--ss-heading);
}
.ss-faq-search-input input::placeholder{
  color:#94A3B8;
}
.ss-faq-categories{
  padding:20px 0 70px;
}
.ss-faq-category-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:16px;
}
.ss-faq-category{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 24px;
  background:#fff;
  border:1px solid var(--ss-border);
  border-radius:999px;
  font-weight:600;
  color:var(--ss-heading);
  transition:var(--ss-transition);
  box-shadow:var(--ss-shadow-sm);
  cursor:pointer;
}
.ss-faq-category:hover{
  background:var(--ss-primary);
  color:#fff;
  border-color:var(--ss-primary);
  transform:translateY(-3px);
}
/* NEW — active state for the selected category pill (JS toggles this) */
.ss-faq-category.active{
  background:var(--ss-primary);
  color:#fff;
  border-color:var(--ss-primary);
}
/* NEW — result count + empty state for the live search/filter */
.ss-faq-result-count{
  max-width:980px;
  margin:0 auto 18px;
  font-size:14px;
  color:var(--ss-muted);
}
.ss-faq-empty{
  display:none;
  max-width:980px;
  margin:20px auto 0;
  padding:40px;
  text-align:center;
  background:#fff;
  border:1px dashed var(--ss-border);
  border-radius:20px;
  color:var(--ss-muted);
}
.ss-faq-empty.active{
  display:block;
}
@media(max-width:768px){
  .ss-faq-search-input{
    height:60px;
    padding:0 18px;
  }
  .ss-faq-search-input input{
    font-size:15px;
  }
  .ss-faq-category{
    width:100%;
    justify-content:center;
  }
}

/*==================================================
96. PREMIUM FAQ ACCORDION
==================================================*/
.faq-page{
  padding:0 0 20px;
}
.faq-wrapper{
  max-width:980px;
  margin:auto;
}
.faq-item{
  background:#fff;
  border:1px solid var(--ss-border);
  border-radius:20px;
  overflow:hidden;
  margin-bottom:12px;
  box-shadow:var(--ss-shadow-sm);
  transition:all .35s ease;
}
.faq-item:hover{
  transform:translateY(-3px);
  box-shadow:var(--ss-shadow);
}
/* NEW — hidden state used by the search/category filter */
.faq-item.is-hidden{
  display:none;
}
.faq-question{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 34px;
  background:#F8FAFC;
  border:none;
  cursor:pointer;
  font-size:18px;
  font-weight:700;
  color:var(--ss-heading);
  text-align:left;
  transition:all .30s ease;
}
.faq-question:hover{
  background:#F1F5F9;
}
.faq-question:focus-visible{
  outline:2px solid var(--ss-primary);
  outline-offset:-2px;
}
.faq-toggle{
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--ss-primary-light);
  color:var(--ss-primary);
  font-size:26px;
  font-weight:700;
  transition:all .35s ease;
  flex-shrink:0;
}
.faq-question.open .faq-toggle{
  background:var(--ss-primary);
  color:#fff;
  transform:rotate(45deg);
}
.faq-answer{
  max-height:0;
  overflow:hidden;
  background:#fff;
  transition:max-height .45s ease;
}
.faq-answer p{
  margin:0;
  padding:0 34px 30px;
  font-size:16px;
  line-height:1.9;
  color:var(--ss-text);
}
@media(max-width:768px){
  .faq-question{
    padding:22px;
    font-size:17px;
  }
  .faq-answer p{
    padding:0 22px 24px;
  }
  .faq-toggle{
    width:36px;
    height:36px;
    font-size:22px;
  }
}

/*==================================================
97. POPULAR TOPICS & QUICK LINKS
==================================================*/
.ss-faq-topics{
  padding:30px 0;
  background:var(--ss-bg);
}
.ss-topic-card{
  display:block;
  height:100%;
  padding:34px;
  background:#fff;
  border:1px solid var(--ss-border);
  border-radius:22px;
  box-shadow:var(--ss-shadow-sm);
  transition:all .35s ease;
  text-align:left;
}
.ss-topic-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--ss-shadow-lg);
  border-color:rgba(0,168,107,.25);
}
.ss-topic-icon{
  width:72px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:var(--ss-primary-light);
  margin-bottom:24px;
}
.ss-topic-icon i{
  font-size:28px;
  color:var(--ss-primary);
}
.ss-topic-card h4{
  margin-bottom:14px;
  font-size:22px;
  font-weight:700;
  color:var(--ss-heading);
}
.ss-topic-card p{
  margin:0;
  font-size:15px;
  line-height:1.8;
  color:var(--ss-muted);
}
@media(max-width:991px){
  .ss-faq-topics{
    padding:70px 0;
  }
  .ss-topic-card{
    padding:28px;
  }
}
@media(max-width:767px){
  .ss-topic-card{
    text-align:center;
  }
  .ss-topic-icon{
    margin:0 auto 22px;
  }
}

/*==================================================
98. CONTACT SUPPORT CTA
==================================================*/
.ss-faq-support{
  padding:0 0 20px;
  background:var(--ss-bg);
}
.ss-faq-support-box{
  position:relative;
  overflow:hidden;
  padding:20px;
  text-align:center;
  background:
    radial-gradient(circle at right top, rgba(0,168,107,.10), transparent 35%),
    linear-gradient(135deg,#ffffff,#f8fcfa);
  border:1px solid var(--ss-border);
  border-radius:28px;
  box-shadow:var(--ss-shadow);
}
.ss-faq-support-box::before{
  content:"";
  position:absolute;
  top:-120px;
  right:-120px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:rgba(0,168,107,.06);
}
.ss-faq-support-box>*{
  position:relative;
  z-index:2;
}
.ss-faq-support-box h2{
  margin:22px 0 20px;
  font-size:42px;
}
.ss-faq-support-box p{
  max-width:760px;
  margin:0 auto 36px;
  font-size:18px;
  line-height:1.9;
  color:var(--ss-muted);
}
.ss-faq-support-actions{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:45px;
}
.ss-faq-support-features{
  display:flex;
  justify-content:center;
  gap:70px;
  flex-wrap:wrap;
  padding-top:30px;
  border-top:1px solid var(--ss-border);
}
.ss-faq-support-features div{
  text-align:center;
}
.ss-faq-support-features strong{
  display:block;
  font-size:22px;
  font-weight:800;
  color:var(--ss-heading);
  margin-bottom:8px;
}
.ss-faq-support-features span{
  color:var(--ss-muted);
  font-size:15px;
}
@media(max-width:991px){
  .ss-faq-support{
    padding:0 0 80px;
  }
  .ss-faq-support-box{
    padding:50px 35px;
  }
  .ss-faq-support-box h2{
    font-size:34px;
  }
  .ss-faq-support-features{
    gap:35px;
  }
}
@media(max-width:767px){
  .ss-faq-support-box{
    padding:35px 25px;
  }
  .ss-faq-support-box h2{
    font-size:28px;
  }
  .ss-faq-support-box p{
    font-size:16px;
  }
  .ss-faq-support-actions{
    flex-direction:column;
  }
  .ss-faq-support-actions .ss-btn{
    width:100%;
  }
  .ss-faq-support-features{
    flex-direction:column;
    gap:20px;
  }
}

/*==================================================
99. ENTERPRISE HELP BANNER
==================================================*/
.ss-help-banner{
  padding:0 0 20px;
  background:var(--ss-bg);
}
.ss-help-banner .container{
  background:linear-gradient(135deg,#0F172A,#1E293B);
  border-radius:28px;
  padding:40px;
  overflow:hidden;
  position:relative;
}
.ss-help-banner .container::before{
  content:"";
  position:absolute;
  right:-120px;
  top:-120px;
  width:280px;
  height:280px;
  border-radius:50%;
  background:rgba(255,255,255,.05);
}
.ss-help-content{
  position:relative;
  z-index:2;
}
.ss-help-content .ss-badge{
  margin-bottom:24px;
}
.ss-help-content h2{
  color:#fff;
  font-size:36px;
  margin-bottom:22px;
  line-height:1.2;
}
.ss-help-content p{
  color:rgba(255,255,255,.82);
  font-size:17px;
  line-height:1.9;
  max-width:720px;
  margin:0;
}
.ss-help-stats{
  display:flex;
  flex-direction:column;
  gap:15px;
  position:relative;
  z-index:2;
}
.ss-help-stat{
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:24px;
  min-height:60px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}
.ss-help-stat strong{
  display:block;
  font-size:36px;
  font-weight:700;
  color:#fff;
  margin:0 0 12px;
  line-height:1.1;
}
.ss-help-stat span{
  display:block;
  color:rgba(255,255,255,.78);
  font-size:18px;
  line-height:1.5;
}
@media(max-width:991px){
  .ss-help-banner .container{
    padding:45px 35px;
  }
  .ss-help-content{
    margin-bottom:35px;
    text-align:center;
  }
  .ss-help-content h2{
    font-size:34px;
  }
  .ss-help-stats{
    max-width:500px;
    margin:auto;
  }
}
@media(max-width:767px){
  .ss-help-banner{
    padding:0 0 80px;
  }
  .ss-help-banner .container{
    padding:35px 24px;
  }
  .ss-help-content h2{
    font-size:28px;
  }
  .ss-help-content p{
    font-size:16px;
  }
  .ss-help-stat{
    text-align:center;
  }
}

/*==================================================
100. FAQ RESPONSIVE POLISH
==================================================*/
@media(min-width:1400px){
  .ss-faq-hero-content{
    max-width:720px;
  }
  .ss-faq-search-box{
    max-width:940px;
  }
  .faq-wrapper{
    max-width:1220px;
  }
}
@media(max-width:1199px){
  .ss-faq-hero{
    padding:80px 0 70px;
  }
  .ss-faq-hero-content h1{
    font-size:50px;
  }
  .ss-faq-support-box,
  .ss-help-banner .container{
    padding:55px;
  }
}
@media(max-width:991px){
  .ss-faq-hero{
    padding:70px 0;
    text-align:center;
  }
  .ss-faq-hero-content{
    text-align:center;
    margin-bottom:40px;
    max-width:100%;
  }
  .ss-faq-hero-card{
    margin-top:40px;
  }
  .ss-faq-actions{
    justify-content:center;
  }
  .ss-faq-trust{
    grid-template-columns:repeat(2,1fr);
  }
  .ss-faq-hero-content h1{
    font-size:42px;
  }
  .ss-faq-search{
    padding-top:10px;
  }
  .ss-topic-card{
    height:auto;
  }
  .ss-help-banner .row{
    row-gap:30px;
  }
}
@media(max-width:767px){
  .ss-faq-hero{
    padding:60px 0;
  }
  .ss-faq-hero-content h1{
    font-size:34px;
    line-height:1.25;
  }
  .ss-faq-hero-content p{
    font-size:16px;
  }
  .ss-faq-hero-card .ss-card-body{
    padding:30px;
  }
  .ss-faq-search-box h2{
    font-size:28px;
  }
  .ss-faq-search-box p{
    font-size:15px;
  }
  .ss-faq-search-input{
    border-radius:16px;
  }
  .faq-question{
    line-height:1.5;
  }
  .ss-topic-card h4{
    font-size:20px;
  }
  .ss-help-content h2,
  .ss-faq-support-box h2{
    line-height:1.3;
  }
}
@media(max-width:575px){
  .ss-faq-trust{
    grid-template-columns:1fr;
  }
  .ss-faq-actions .ss-btn{
    width:100%;
  }
  .ss-faq-search-input{
    padding:0 16px;
  }
  .ss-faq-category{
    padding:12px 18px;
    font-size:14px;
  }
  .ss-topic-card{
    padding:24px;
  }
  .faq-question{
    padding:20px;
    font-size:16px;
  }
  .faq-answer p{
    padding:0 20px 22px;
  }
  .ss-help-banner .container{
    border-radius:22px;
  }
  .ss-faq-support-box{
    border-radius:22px;
  }
}
