/* search box */
.faq-search {
  max-width: 480px; margin: 0 auto;
  position: relative;
}
.faq-search input {
  width: 100%; padding: 14px 18px 14px 48px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  color: var(--white); font-size: 14px; font-family: inherit;
  outline: none; transition: border-color .2s, background .2s;
}
.faq-search input::placeholder { color: rgba(255,255,255,.35); }
.faq-search input:focus { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.faq-search svg {
  position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; stroke: rgba(255,255,255,.4); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}

/* page-header p override (adds bottom margin) */
.page-header p { max-width: 480px; margin: 0 auto 28px; }

/* ── MAIN LAYOUT ── */
.faq-wrap { background: var(--bg); padding: 64px 40px 88px; }
.faq-layout {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr; gap: 56px;
  align-items: start;
}

/* sidebar container */
.faq-sidebar {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 4px;
}

/* content */
.faq-content { display: flex; flex-direction: column; gap: 56px; }

.faq-category-title {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
}
.cat-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: #eef3fe; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cat-icon svg { width: 18px; height: 18px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.faq-category-title h2 { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }

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

.faq-item {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.faq-item:hover { box-shadow: 0 6px 24px rgba(26,110,245,.07); }
.faq-item.open { border-color: rgba(26,110,245,.25); }

.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; background: transparent; border: none;
  font-size: 14.5px; font-weight: 700; color: var(--navy);
  transition: color .15s; font-family: inherit;
}
.faq-q:hover { color: var(--blue); }

.faq-arrow {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.faq-arrow svg { width: 13px; height: 13px; stroke: var(--muted); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.faq-item.open .faq-arrow { background: var(--blue); transform: rotate(180deg); }
.faq-item.open .faq-arrow svg { stroke: var(--white); }

.faq-a {
  display: none;
  padding: 0 22px 20px;
  font-size: 13.5px; color: var(--muted); line-height: 1.75;
  border-top: 1px solid var(--border); padding-top: 16px;
}
.faq-item.open .faq-a { display: block; }
.faq-a p { margin-bottom: 12px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--blue); font-weight: 600; }
.faq-a a:hover { text-decoration: underline; }
.faq-a ul { margin: 8px 0 12px 18px; }
.faq-a li { margin-bottom: 4px; }
.faq-a strong { color: var(--navy); font-weight: 700; }

/* mini steps inside answer */
.faq-steps {
  display: flex; flex-direction: column; gap: 10px;
  margin: 12px 0;
}
.faq-step {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg); border-radius: 10px; padding: 12px 14px;
}
.faq-step-num {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  background: var(--blue); color: var(--white);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.faq-step-text { font-size: 13px; color: var(--text); line-height: 1.6; }

/* ── CTA ── */
.cta-wrap { background: var(--navy); padding: 72px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-wrap::after {
  content: ''; position: absolute; bottom: -150px; right: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,110,245,.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-wrap h2 { font-size: clamp(22px, 3.5vw, 34px); font-weight: 800; color: var(--white); margin-bottom: 14px; letter-spacing: -.02em; }
.cta-wrap p { font-size: 15px; color: rgba(255,255,255,.55); margin-bottom: 32px; line-height: 1.65; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .faq-wrap { padding: 48px 20px 64px; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-sidebar { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .sidebar-label { display: none; }
  .sidebar-link { background: var(--white); border: 1px solid var(--border); }
  .sidebar-help { display: none; }
  .cta-wrap { padding: 56px 20px; }
}
