/* ==============================================
   MYSA FAQ SECTION — MAIN PAGE (5 FAQs preview)
   Brand: Navy #1A2B4A | Purple #7C5DFA | Green #10B981
   ============================================== */
.mysa-faq-section {
  padding: 80px 24px;
  background: linear-gradient(180deg, #F5F7FA 0%, #FFFFFF 100%);
  font-family: var(--font-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.mysa-faq-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(124, 93, 250, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.faq-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  /* Neutralize a stray top:77px inherited from the old sticky-header rule in
     css/sections/faq.css — position:relative turns it into a 77px downward
     shift, which was the bulk of the excess space above "Got Questions?". */
  top: 0;
  z-index: 1;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7C5DFA;
  background: rgba(124, 93, 250, 0.08);
  border: 1px solid rgba(124, 93, 250, 0.2);
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.faq-header h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: #1A2B4A;
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.faq-header p {
  font-size: 17px;
  color: #6B7280;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Guarantee the homepage FAQ header — "Got Questions?" badge, the heading and the
   subtitle — stays centered, with higher specificity so it can never be overridden
   by the legacy left/2-column .faq-header rules in css/sections/faq.css. */
.mysa-faq-section .faq-header,
.mysa-faq-section .faq-header h2,
.mysa-faq-section .faq-header p {
  text-align: center;
}
.mysa-faq-section .faq-header .faq-badge {
  display: inline-flex;
}

.faq-container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  /* Center each row. Without this, the legacy `align-items: start` from
     css/sections/faq.css leaks in and makes the (shrink-to-content) header stick
     to the LEFT while the full-width cards stay centered — the "header left,
     cards centered" mismatch. */
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* Keep the FAQ cards and actions full-width inside the now-centered container. */
.mysa-faq-section .faq-list,
.mysa-faq-section .faq-actions {
  width: 100%;
}

/* ─── FAQ Item ─── */
.faq-item {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(26, 43, 74, 0.05), 0 1px 2px rgba(26, 43, 74, 0.03);
  border: 1px solid rgba(26, 43, 74, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease, border-color 0.25s ease;
  contain: layout style;
}

.faq-item.faq-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:hover {
  box-shadow: 0 8px 28px rgba(26, 43, 74, 0.1);
  border-color: rgba(124, 93, 250, 0.15);
  transition-delay: 0s !important;
  will-change: transform;
}

.faq-item.active {
  border-color: rgba(124, 93, 250, 0.2);
  box-shadow: 0 4px 20px rgba(124, 93, 250, 0.08);
}

/* ─── Question Button ─── */
.faq-question-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  color: #1A2B4A;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.25s ease;
  gap: 16px;
}

.faq-question-btn:hover {
  color: #7C5DFA;
}

.faq-item.active .faq-question-btn {
  color: #7C5DFA;
}

/* ─── Plus/Minus Icon ─── */
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F5F7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: #6B7280;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.faq-icon::before {
  width: 11px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 11px;
}

.faq-item.active .faq-icon {
  background: linear-gradient(135deg, #1A2B4A 0%, #7C5DFA 100%);
  transform: rotate(45deg);
}

.faq-item.active .faq-icon::before,
.faq-item.active .faq-icon::after {
  background-color: #ffffff;
}

/* ─── Answer — smooth grid expand ─── */
.faq-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-content {
  padding: 0 24px 22px 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid rgba(26, 43, 74, 0.06);
  padding-top: 16px;
}

.faq-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #10B981;
  margin-top: 2px;
}

.faq-answer-text {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin: 0;
  white-space: pre-wrap;
  /* Wrap long words / URLs so answers aren't clipped on narrow screens. */
  overflow-wrap: break-word;
  word-break: break-word;
}

.faq-answer-text strong {
  color: #1A2B4A;
  font-weight: 600;
}

.faq-answer-text a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ─── Action Buttons Row ─── */
.faq-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* "View All FAQs" — primary style */
.faq-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1A2B4A 0%, #7C5DFA 100%);
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 93, 250, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.faq-view-all-btn:hover {
  box-shadow: 0 8px 25px rgba(124, 93, 250, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
  text-decoration: none;
}

/* "Have more questions?" subtle text */
.faq-support-text {
  font-size: 14px;
  color: #9CA3AF;
}

.faq-support-text a {
  color: #7C5DFA;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

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

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .mysa-faq-section {
    padding: 60px 16px;
  }

  .faq-question-btn {
    padding: 18px 16px;
    font-size: 15px;
  }

  .faq-answer-content {
    padding: 0 16px 18px 16px;
    padding-top: 14px;
  }

  .faq-header h2 {
    font-size: 28px;
  }
}

/* ==============================================
   FAQ FULL PAGE — faq.html
   ============================================== */

/* Reset for standalone page */
.faq-page-body {
  font-family: var(--font-primary);
  background: #F5F7FA;
  color: #1A2B4A;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* ─── Page Nav ─── */
.faq-page-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 43, 74, 0.08);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-page-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1A2B4A;
  font-weight: 700;
  font-size: 18px;
}

.faq-page-nav-logo img {
  height: 36px;
  width: auto;
}

.faq-page-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6B7280;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.faq-page-back-btn:hover {
  color: #7C5DFA;
}

/* ─── Hero ─── */
.faq-page-hero {
  background: linear-gradient(135deg, #1A2B4A 0%, #2d1b69 50%, #7C5DFA 100%);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faq-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
}

.faq-page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.faq-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.faq-page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.faq-page-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ─── Search Box ─── */
.faq-search-wrapper {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9CA3AF;
  pointer-events: none;
  transition: color 0.2s;
}

.faq-search-wrapper:focus-within .faq-search-icon {
  color: #7C5DFA;
}

#faq-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 16px 20px 16px 50px;
  font-family: inherit;
  font-size: 16px;
  color: #1A2B4A;
  outline: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s, box-shadow 0.25s;
}

#faq-search::placeholder {
  color: #9CA3AF;
}

#faq-search:focus {
  border-color: #7C5DFA;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(124, 93, 250, 0.15);
}

.faq-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: #E5E7EB;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6B7280;
  transition: background 0.2s;
}

.faq-search-clear:hover {
  background: #D1D5DB;
}

.faq-search-clear.visible {
  display: flex;
}

.faq-search-count {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  min-height: 20px;
  transition: opacity 0.3s;
}

/* ─── Main Layout ─── */
.faq-page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ─── Category Section ─── */
.faq-category {
  margin-bottom: 48px;
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(26, 43, 74, 0.07);
}

.faq-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26, 43, 74, 0.08) 0%, rgba(124, 93, 250, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.faq-category-title {
  font-size: 20px;
  font-weight: 700;
  color: #1A2B4A;
  letter-spacing: -0.01em;
}

.faq-category-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #7C5DFA;
  background: rgba(124, 93, 250, 0.08);
  border: 1px solid rgba(124, 93, 250, 0.15);
  padding: 3px 10px;
  border-radius: 9999px;
}

.faq-category-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Individual FAQ Item (full page) ─── */
.faq-page-item {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(26, 43, 74, 0.07);
  box-shadow: 0 1px 4px rgba(26, 43, 74, 0.04);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  contain: layout style;
}

.faq-page-item:hover {
  box-shadow: 0 6px 20px rgba(26, 43, 74, 0.09);
  border-color: rgba(124, 93, 250, 0.12);
}

.faq-page-item.active {
  border-color: rgba(124, 93, 250, 0.2);
}

.faq-page-item.faq-hidden {
  display: none;
}

.faq-page-question-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  color: #1A2B4A;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s;
  gap: 14px;
}

.faq-page-question-btn:hover,
.faq-page-item.active .faq-page-question-btn {
  color: #7C5DFA;
}

.faq-page-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F5F7FA;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.faq-page-icon::before,
.faq-page-icon::after {
  content: '';
  position: absolute;
  background-color: #9CA3AF;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.faq-page-icon::before {
  width: 10px;
  height: 2px;
}

.faq-page-icon::after {
  width: 2px;
  height: 10px;
}

.faq-page-item.active .faq-page-icon {
  background: linear-gradient(135deg, #1A2B4A 0%, #7C5DFA 100%);
  transform: rotate(45deg);
}

.faq-page-item.active .faq-page-icon::before,
.faq-page-item.active .faq-page-icon::after {
  background-color: #fff;
}

.faq-page-answer-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-page-item.active .faq-page-answer-wrapper {
  grid-template-rows: 1fr;
}

.faq-page-answer-inner {
  overflow: hidden;
}

.faq-page-answer-content {
  padding: 0 20px 18px 20px;
  padding-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-top: 1px solid rgba(26, 43, 74, 0.05);
}

.faq-page-check {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #10B981;
  margin-top: 2px;
}

.faq-page-answer-text {
  font-size: 14px;
  line-height: 1.75;
  color: #374151;
  margin: 0;
  white-space: pre-wrap;
  /* Wrap long words so the answer never gets clipped on the right on narrow
     screens (e.g. Galaxy Z Fold folded ~344px). */
  overflow-wrap: break-word;
  word-break: break-word;
}

.faq-page-answer-text strong {
  color: #1A2B4A;
  font-weight: 600;
}

/* Long URLs in answers are auto-linked — let them break so they wrap instead of
   overflowing the card on narrow screens. */
.faq-page-answer-text a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ─── No Results ─── */
.faq-no-results {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.faq-no-results.visible {
  display: block;
}

.faq-no-results-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.faq-no-results h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1A2B4A;
  margin-bottom: 8px;
}

.faq-no-results p {
  font-size: 15px;
  color: #6B7280;
}

/* ─── Highlight matching text ─── */
.faq-highlight {
  background: rgba(124, 93, 250, 0.15);
  color: #5b40c5;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
}

/* ─── Bottom CTA ─── */
.faq-page-cta {
  background: linear-gradient(135deg, #1A2B4A 0%, #7C5DFA 100%);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}

.faq-page-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
}

.faq-page-cta-content {
  position: relative;
  z-index: 1;
}

.faq-page-cta h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.faq-page-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

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

.faq-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1A2B4A;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.faq-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #1A2B4A;
  text-decoration: none;
}

.faq-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.faq-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
}

/* ─── Sticky Category Sidebar (desktop) ─── */
.faq-page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.faq-sidebar {
  position: sticky;
  top: 80px;
}

.faq-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 12px;
}

.faq-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  transition: background 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}

.faq-sidebar-link:hover {
  background: rgba(124, 93, 250, 0.06);
  color: #7C5DFA;
}

.faq-sidebar-link.active {
  background: rgba(124, 93, 250, 0.08);
  color: #7C5DFA;
  font-weight: 600;
}

.faq-sidebar-link-icon {
  font-size: 15px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .faq-page-layout {
    grid-template-columns: 1fr;
    padding: 32px 16px 60px;
  }

  .faq-sidebar {
    display: none;
  }

  .faq-page-main {
    padding: 32px 16px 60px;
  }

  .faq-page-hero {
    padding: 56px 16px 48px;
  }

  .faq-page-cta {
    padding: 36px 20px;
    border-radius: 20px;
  }
}