/**
 * FAQ Help Center page – faq.php only
 */
:root {
  --faq-navy: #071a42;
  --faq-blue: #0b2b6f;
  --faq-accent: #0062ff;
  --faq-primary: #ffb302;
  --faq-primary-dark: #e6a000;
  --faq-muted: #5c6370;
  --faq-radius: 16px;
  --faq-shadow: 0 12px 40px rgba(11, 43, 111, 0.1);
  --section-y: clamp(64px, 8vw, 88px);
}

.page-faq main {
  overflow-x: hidden;
}

/* ── Hero ── */
.faq-hero {
  background: linear-gradient(125deg, #0040c1 0%, #0b2b6f 48%, #071a42 100%);
  padding: var(--section-y) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 85% 30%, rgba(255, 179, 2, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(7, 26, 66, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.faq-hero .container {
  position: relative;
  z-index: 1;
}

.faq-hero__badge {
  display: inline-block;
  background: rgba(255, 179, 2, 0.15);
  border: 1px solid rgba(255, 179, 2, 0.4);
  color: var(--faq-primary);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 16px;
}

.faq-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 16px;
  max-width: 600px;
  letter-spacing: -0.02em;
}

.faq-hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  margin-bottom: 18px;
}

.faq-hero__trust {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.faq-hero__trust li {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.faq-hero__trust li i {
  color: var(--faq-primary);
  font-size: 12px;
}

.faq-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.faq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.faq-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.faq-btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.faq-btn--whatsapp:hover {
  background: #1fb855;
  color: #fff;
}

.faq-btn--primary {
  background: var(--faq-primary);
  color: var(--faq-navy);
  box-shadow: 0 8px 24px rgba(255, 179, 2, 0.35);
}

.faq-btn--primary:hover {
  background: var(--faq-primary-dark);
  color: var(--faq-navy);
}

.faq-btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.faq-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.faq-hero__visual {
  position: relative;
}

.faq-hero__icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 340px;
  margin-left: auto;
}

.faq-hero__icon-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.faq-hero__icon-card i {
  font-size: 28px;
  color: var(--faq-primary);
  margin-bottom: 8px;
  display: block;
}

.faq-hero__icon-card span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

/* ── Sections ── */
.faq-section {
  padding: var(--section-y) 0;
}

.faq-section--alt {
  background: #f8f9fc;
}

.faq-section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 44px);
}

.faq-section__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faq-blue);
  margin-bottom: 10px;
}

.faq-section__head h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--faq-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.faq-section__head p {
  color: var(--faq-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Category cards ── */
.faq-cat__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .faq-cat__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .faq-cat__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.faq-cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--faq-radius) + 2px);
  padding: 20px 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 22px rgba(11, 43, 111, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: 100%;
  cursor: pointer;
}

.faq-cat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(11, 43, 111, 0.11);
  border-color: rgba(255, 179, 2, 0.3);
  text-decoration: none;
  color: inherit;
}

.faq-cat__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 98, 255, 0.12) 0%, rgba(11, 43, 111, 0.06) 100%);
  color: var(--faq-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.faq-cat h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--faq-navy);
  margin: 0 0 6px;
  line-height: 1.3;
}

.faq-cat__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--faq-muted);
  margin-top: auto;
  padding-top: 10px;
}

.faq-cat__count i {
  color: var(--faq-primary-dark);
  margin-right: 4px;
}

/* ── FAQ accordion by category ── */
.faq-groups {
  max-width: 880px;
  margin: 0 auto;
}

.faq-group {
  margin-bottom: clamp(36px, 5vw, 48px);
  scroll-margin-top: 100px;
}

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

.faq-group__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e8ecf4;
}

.faq-group__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 179, 2, 0.15);
  color: var(--faq-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.faq-group__head h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--faq-navy);
  margin: 0;
  line-height: 1.25;
}

.faq-group__head span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--faq-muted);
  margin-top: 2px;
}

.faq-acc .accordion-items {
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.faq-acc .accordion-items:hover {
  border-color: rgba(11, 43, 111, 0.15);
  box-shadow: 0 4px 16px rgba(11, 43, 111, 0.06);
}

.faq-acc .accordion-items.tp-faq-active,
.faq-acc .accordion-items:has(.accordion-buttons:not(.collapsed)) {
  border-color: rgba(255, 179, 2, 0.35);
  box-shadow: 0 6px 20px rgba(255, 179, 2, 0.08);
}

.faq-acc .accordion-buttons {
  font-size: 15px;
  font-weight: 600;
  padding: 20px 52px 20px 20px;
  color: var(--faq-navy);
  width: 100%;
  text-align: left;
  min-height: 60px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.22s ease, color 0.22s ease;
}

.faq-acc .accordion-buttons:not(.collapsed) {
  color: var(--faq-blue);
  background: rgba(11, 43, 111, 0.04);
}

.faq-acc .accordion-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--faq-muted);
  padding: 0 20px 20px;
}

.faq-acc .accordion-body strong {
  color: var(--faq-navy);
  font-weight: 700;
}

.faq-acc .accordion-body ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.faq-acc .accordion-body li {
  margin-bottom: 6px;
}

.faq-acc .accordion-collapse {
  transition: height 0.28s ease;
}

/* ── Troubleshooting ── */
.faq-trouble__grid .col-md-6,
.faq-trouble__grid .col-lg-4 {
  display: flex;
}

.faq-trouble {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--faq-radius) + 2px);
  padding: 22px 20px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 22px rgba(11, 43, 111, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.faq-trouble:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(11, 43, 111, 0.1);
}

.faq-trouble h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--faq-navy);
  margin-bottom: 12px;
}

.faq-trouble dl {
  margin: 0 0 16px;
  flex: 1;
}

.faq-trouble dt {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faq-muted);
  margin-bottom: 4px;
}

.faq-trouble dd {
  font-size: 14px;
  line-height: 1.55;
  color: var(--faq-navy);
  margin: 0 0 12px;
}

.faq-trouble__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--faq-blue);
  text-decoration: none;
  margin-top: auto;
}

.faq-trouble__link:hover {
  text-decoration: underline;
}

/* ── Still need help ── */
.faq-help {
  background: linear-gradient(135deg, var(--faq-navy) 0%, var(--faq-blue) 100%);
  border-radius: calc(var(--faq-radius) + 4px);
  padding: clamp(28px, 5vw, 40px);
  color: #fff;
  box-shadow: 0 20px 56px rgba(11, 43, 111, 0.2);
}

.faq-help__head {
  text-align: center;
  margin-bottom: 24px;
}

.faq-help__head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.faq-help__head p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.faq-help__channels {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .faq-help__channels {
    grid-template-columns: repeat(3, 1fr);
  }
}

.faq-help__channel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}

.faq-help__channel--featured {
  border-color: rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.1);
}

.faq-help__channel-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 179, 2, 0.2);
  color: var(--faq-primary);
  margin-bottom: 10px;
}

.faq-help__channel i {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.faq-help__channel--featured i { color: #25d366; }
.faq-help__channel:nth-child(2) i { color: #0088cc; }
.faq-help__channel:nth-child(3) i { color: var(--faq-primary); }

.faq-help__channel h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.faq-help__channel a {
  font-size: 14px;
  font-weight: 600;
  color: var(--faq-primary);
  text-decoration: none;
}

.faq-help__channel a:hover {
  text-decoration: underline;
}

.faq-help__note {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
}

.faq-help__note h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--faq-primary);
  margin-bottom: 10px;
}

.faq-help__note ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

@media (min-width: 576px) {
  .faq-help__note ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-help__note li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 18px;
  position: relative;
}

.faq-help__note li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  color: var(--faq-primary);
  font-size: 11px;
}

/* ── SEO content ── */
.faq-seo {
  max-width: 820px;
  margin: 0 auto;
}

.faq-seo h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--faq-navy);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.faq-seo h2:first-child {
  margin-top: 0;
}

.faq-seo h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--faq-navy);
  margin: 24px 0 10px;
}

.faq-seo p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--faq-muted);
  margin-bottom: 12px;
}

.faq-seo a {
  color: var(--faq-blue);
  font-weight: 600;
}

/* ── Final CTA ── */
.faq-cta {
  background: linear-gradient(135deg, var(--faq-navy) 0%, var(--faq-blue) 55%, #1a4a9e 100%);
  padding: clamp(56px, 8vw, 72px) 0;
  color: #fff;
}

.faq-cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.faq-cta h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.faq-cta p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.faq-cta__trust {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--faq-primary);
  margin-bottom: 22px;
}

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

.faq-cta__actions .faq-btn {
  flex: 1 1 200px;
  max-width: 280px;
}

/* ── Floating buttons ── */
.page-faq .floating-contact {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-faq .floating-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease;
}

.page-faq .floating-contact a:hover {
  transform: translateY(-3px);
}

.page-faq .floating-contact .btn-whatsapp { background: #25d366; }
.page-faq .floating-contact .btn-telegram { background: #0088cc; }

.page-faq .floating-contact.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.page-faq .back-to-top-wrapper.back-to-top-btn-show {
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 124px);
  z-index: 999;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
  .faq-hero__actions {
    flex-direction: column;
  }

  .faq-hero__actions .faq-btn {
    width: 100%;
  }

  .faq-hero__visual {
    display: none;
  }

  .faq-cta__actions .faq-btn {
    max-width: none;
    width: 100%;
  }

  .faq-cat__grid {
    grid-template-columns: 1fr;
  }
}