/* ─── Page-scoped padding + open-item overrides (was inline <style>) ─── */
body.page-faq .smyk-page-hero,
body.page-faq .sfq-main,
body.page-faq .smyk-cta { padding-block: 40px 45px !important; }
/* Open FAQ item: icon circle black instead of orange */
.sfq-item.is-open .sfq-item__icon { background: #222222 !important; }

/* FAQ search autocomplete dropdown (rendered on <body>, fixed-positioned to
   escape the hero's overflow:hidden clip). */
.sfq-ac {
  position: fixed; z-index: 9999;
  list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid #e5e5e5; border-radius: 16px;
  box-shadow: 0 18px 44px -16px rgba(10,22,40,.35);
  max-height: 360px; overflow-y: auto; text-align: left;
  font-family: 'Figtree', 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.sfq-ac[hidden] { display: none; }
.sfq-ac li {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 14px; border-radius: 11px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: #222222; line-height: 1.4;
}
.sfq-ac li.is-active, .sfq-ac li:hover { background: #fdeef2; }
.sfq-ac__ic { flex-shrink: 0; margin-top: 1px; color: #e41d56; }
.sfq-ac__empty { padding: 14px; color: #64748b; font-size: 14px; font-weight: 500; }

/* ─── Variables ─────────────────────────────── */
.sfq-main, .sfq-hiw {
  --sfq-dark:   #222222;
  --sfq-orange: #e41d56;
  --sfq-muted:  #475569;
  --sfq-border: #e5e7eb;
  --sfq-bg:     #f5f5f7;
  --sfq-white:  #ffffff;
}

/* ─── Container ─────────────────────────────── */
.sfq-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ─── Main — white surface, editorial spacing ── */
.sfq-main {
  padding: clamp(28px, 3.5vw, 48px) 0 clamp(40px, 5vw, 72px);
  background: var(--sfq-white);
}

/* ─── Category tabs — underline editorial style ─── */
.sfq-tabs {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 0;
  border-bottom: 1.5px solid var(--sfq-border);
  align-items: stretch;
}
.sfq-tab {
  position: relative;
  padding: 12px 4px 14px;
  background: transparent;
  border: 0;
  color: var(--sfq-muted);
  font-family: var(--smyk-font, inherit);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color 0.2s;
}
.sfq-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.5px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--sfq-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease-out;
}
.sfq-tab:hover { color: var(--sfq-dark); }
.sfq-tab.is-active {
  color: var(--sfq-dark);
}
.sfq-tab.is-active::after {
  transform: scaleX(1);
}
.sfq-tab:focus-visible {
  outline: 2px solid var(--sfq-orange);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ─── No results ────────────────────────────── */
.sfq-no-results {
  text-align: center;
  color: var(--sfq-muted);
  font-size: 0.95rem;
  padding: 40px 0;
}

/* ─── FAQ list — single column rows on white bg ── */
.sfq-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── FAQ Item — gray-fill row, no border ── */
.sfq-item {
  background: var(--sfq-bg);
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  transition: background-color .2s;
}
.sfq-item:hover {
  background: #efeff1;
}
.sfq-item.is-open {
  background: #efeff1;
}
/* Heading wrapper around each toggle (h3 > button, WAI-ARIA accordion pattern).
   Neutralised so the h3 adds semantics without changing the rendered layout. */
.sfq-item__h {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.sfq-item__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.sfq-item__question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sfq-dark);
  line-height: 1.4;
  letter-spacing: -0.005em;
  flex: 1;
}

/* Chevron toggle — orange-filled small disc that rotates 180° when open */
.sfq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sfq-white);
  color: var(--sfq-dark);
  border-radius: 50%;
  transition: transform .25s ease-out, background-color .2s, color .2s;
}
.sfq-item.is-open .sfq-item__icon {
  transform: rotate(180deg);
  background: var(--sfq-dark);
  color: var(--sfq-white);
}

.sfq-item__body { overflow: hidden; }
.sfq-item__answer {
  padding: 4px 22px 20px;
  font-size: 0.95rem;
  color: var(--sfq-muted);
  line-height: 1.65;
}
.sfq-item__answer p { margin: 0 0 10px; }
.sfq-item__answer p:last-child { margin-bottom: 0; }
.sfq-item__answer a { color: var(--sfq-orange); text-decoration: underline; text-underline-offset: 3px; }

.sfq-item__toggle:focus-visible {
  outline: 2px solid var(--sfq-orange);
  outline-offset: -2px;
  border-radius: 14px;
}

/* ─── How It Works ──────────────────────────── */
.sfq-hiw {
  background: var(--sfq-white);
  padding: clamp(56px, 7vw, 96px) 0;
}
.sfq-hiw .sfq-container { max-width: 1100px; }
.sfq-hiw__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--sfq-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: left;
  margin: 0 0 8px;
}
.sfq-hiw__sub {
  text-align: left;
  color: var(--sfq-muted);
  font-size: 1rem;
  margin: 0 0 clamp(28px, 4vw, 44px);
  max-width: 56ch;
}
.sfq-hiw__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 28px);
}
@media (max-width: 768px) {
  .sfq-hiw__grid { grid-template-columns: 1fr; }
}
.sfq-hiw__card {
  background: var(--sfq-white);
  border: 1.5px solid var(--sfq-border);
  border-radius: 18px;
  padding: clamp(24px, 2.4vw, 32px);
  text-align: left;
  transition: border-color .2s;
}
.sfq-hiw__card:hover { border-color: #cbd5e1; }

.sfq-hiw__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(228, 29, 86, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  color: var(--sfq-orange);
}
.sfq-hiw__step-num {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--sfq-orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sfq-hiw__card-title {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 800;
  color: var(--sfq-dark);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.25;
}
.sfq-hiw__card-desc {
  font-size: 0.95rem;
  color: var(--sfq-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 560px) {
  .sfq-item__toggle { padding: 14px 16px; gap: 12px; }
  .sfq-item__question { font-size: 0.92rem; }
  .sfq-item__answer { padding: 0 16px 16px; font-size: 0.9rem; }
}
