/* ==========================================================================
   VEYRA MEDS — FAQ Page (Full Build)
   Scoped under .fpq-* classes. Accordion markup reuses the shared
   .faq-item/.faq-question/.faq-answer engine classes (veyra-home.js) with
   page-scoped visual overrides — the global homepage FAQ styles are untouched.
   ========================================================================== */

/* ===== SHARED CONTAINER ===== */
.fpq-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ===== 2. HERO ===== */
.fpq-hero {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  min-height: 430px;
  padding: 76px 0 70px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 82% 32%,
      rgba(9, 158, 248, 0.13) 0%,
      transparent 36%),
    radial-gradient(circle at 92% 45%,
      rgba(107, 13, 216, 0.10) 0%,
      transparent 34%),
    linear-gradient(
      110deg,
      #FFFFFF 0%,
      #F8FCFF 56%,
      #F7F3FF 100%
    );
}
.fpq-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.fpq-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #099EF8;
  margin: 0 0 14px;
}
.fpq-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #040D2E;
  margin: 0 0 20px;
}
.fpq-grad {
  background: linear-gradient(90deg, #099EF8 0%, #315CF4 35%, #6B0DD8 70%, #8B2EE8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.fpq-hero-body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #526581;
  max-width: 650px;
  margin: 0;
}

/* Hero visual — approved 3D help-center composition (transparent PNG) */
.fpq-hero-visual {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fpq-hero-visual-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
}

/* ===== 3. CATEGORY NAVIGATION ===== */
.fpq-cats-bar {
  width: 100%;
  box-sizing: border-box;
  padding: 22px 0;
  background: #FFFFFF;
  border-bottom: 1px solid #E5ECF5;
}
.fpq-cats {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.fpq-cats::-webkit-scrollbar { display: none; }
.fpq-cat-btn {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E5ECF5;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #040D2E;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.fpq-cat-btn:hover,
.fpq-cat-btn.active {
  background: linear-gradient(90deg, #099EF8, #6B0DD8);
  border-color: transparent;
  color: #FFFFFF;
}
.fpq-cat-btn:focus-visible {
  outline: 2px solid #099EF8;
  outline-offset: 2px;
}

/* ===== 4. FAQ CONTENT ===== */
.fpq-main {
  width: 100%;
  box-sizing: border-box;
  padding: 88px 0 96px;
}
.fpq-group {
  scroll-margin-top: 200px;
}
.fpq-group + .fpq-group {
  margin-top: 72px;
}
.fpq-cat-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #099EF8;
  margin: 0 0 8px;
}
.fpq-cat-h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  color: #040D2E;
  margin: 0;
}
.fpq-accordion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  margin-top: 28px;
}

/* ----- Accordion cards (page-scoped overrides of the shared engine classes) ----- */
.fpq-accordion .faq-item {
  background: #FFFFFF;
  border: 1px solid #E5ECF5;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(4, 13, 46, 0.045);
  overflow: hidden;
  align-self: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fpq-accordion .faq-item.open {
  border-color: #C7D4EA;
  box-shadow: 0 14px 32px rgba(4, 13, 46, 0.08);
}
.fpq-accordion .faq-question {
  width: 100%;
  min-height: 72px;
  padding: 20px 22px;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #040D2E;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.15s ease;
  box-sizing: border-box;
}
.fpq-accordion .faq-q-text {
  display: block;
}
.fpq-accordion .faq-question:hover {
  background: #F8FAFD;
}
.fpq-accordion .faq-question:focus-visible {
  outline: 2px solid #099EF8;
  outline-offset: -2px;
}
.fpq-accordion .faq-question .chevron {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #099EF8;
  border-bottom: 2.5px solid #099EF8;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}
.fpq-accordion .faq-item.open .chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}

/* Dynamic answer height — replaces the shared 300px max-height cap.
   grid-template-rows 0fr → 1fr animates to content height, so no answer can clip. */
.fpq-accordion .faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  overflow: hidden;
  transition: grid-template-rows 0.35s ease;
}
.fpq-accordion .faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  max-height: none;
}
.fpq-accordion .faq-answer-inner {
  min-height: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: #526581;
  padding: 0 22px 22px;
}
.fpq-accordion .faq-answer-inner p {
  margin: 0;
}

/* ===== 5. STILL NEED HELP CTA ===== */
.fpq-cta-wrap {
  width: 100%;
  box-sizing: border-box;
  padding: 0 0 104px;
}
.fpq-cta {
  background: linear-gradient(100deg, #040D2E 0%, #061155 55%, #6B0DD8 100%);
  border-radius: 22px;
  padding: 42px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.fpq-cta-text { max-width: 640px; }
.fpq-cta-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #099EF8;
  margin: 0 0 10px;
}
.fpq-cta-h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin: 0 0 12px;
}
.fpq-cta-body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: #B8C8E8;
  margin: 0;
}
.fpq-cta-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  border-radius: 13px;
  background: #FFFFFF;
  color: #040D2E;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fpq-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.fpq-cta-btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .fpq-h1 { font-size: 48px; }
  .fpq-hero-visual-glow { width: 280px; height: 280px; }
}

@media (max-width: 768px) {
  .fpq-container { padding: 0 20px; }
  .fpq-hero { min-height: 360px; padding: 56px 0 54px; }
  .fpq-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .fpq-h1 { font-size: 40px; }
  .fpq-hero-body { font-size: 17px; }
  .fpq-hero-visual { min-height: 0; margin-top: 8px; }
  .fpq-hero-visual-img { max-width: 340px; margin: 0 auto; }
  .fpq-accordion { grid-template-columns: 1fr; gap: 16px; }
  .fpq-cat-h2 { font-size: 30px; }
  .fpq-main { padding: 64px 0 72px; }
  .fpq-group + .fpq-group { margin-top: 56px; }
  .fpq-cta-wrap { padding: 0 0 72px; }
  .fpq-cta { flex-direction: column; align-items: flex-start; padding: 34px 28px; gap: 26px; }
  .fpq-cta-btn { width: 100%; max-width: 360px; }
}

@media (max-width: 430px) {
  .fpq-h1 { font-size: 40px; }
  .fpq-cat-h2 { font-size: 30px; }
  .fpq-accordion .faq-question { font-size: 17px; }
  .fpq-accordion .faq-answer-inner { font-size: 16px; }
  .fpq-cta-h2 { font-size: 26px; }
  .fpq-cta { padding: 30px 22px; }
}
