/* ============================================================
   cf-faq.css — blok 13 van /chatfunctie-op-je-website/.
   Bouwt op widgets/shared/bconnect-cf.css (handle `bconnect-cf`).
   Bron: upgrade-chatfunctie.css, "13 — FAQ".

   De linkstijl binnen een antwoord (`.cf-faq-a-inner a`) staat in de
   gedeelde stylesheet, naast die van `.cf-linkline`: ze delen dezelfde
   regel in de bron.
   ============================================================ */

.cf-faq { max-width: 800px; margin: clamp(30px, 3.5vw, 44px) auto 0; display: flex; flex-direction: column; gap: 12px; }
.cf-faq-item { background: #fff; border: 1px solid rgba(20, 20, 100, .08); border-radius: 14px; overflow: hidden; transition: box-shadow .2s var(--ease); }
.cf-faq-item.is-open { box-shadow: 0 12px 30px rgba(20, 20, 100, .08); }
.cf-faq-q { width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-head); font-weight: var(--fw-bold); font-size: 16.5px; line-height: 1.35; color: var(--c-navy); }
.cf-faq-q:hover { color: var(--c-magenta); }
.cf-faq-ic { position: relative; width: 20px; height: 20px; flex: none; }
.cf-faq-ic::before,
.cf-faq-ic::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--c-navy); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .22s var(--ease), opacity .22s var(--ease); }
.cf-faq-ic::before { width: 13px; height: 2px; }
.cf-faq-ic::after { width: 2px; height: 13px; }
.cf-faq-item.is-open .cf-faq-ic::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }

/* max-height in plaats van height:auto, zodat de transitie werkt. De
   waarde is een plafond, geen maat: een antwoord dat er overheen groeit
   wordt stil afgekapt. Op mobiel staat hij daarom hoger. */
.cf-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.cf-faq-item.is-open .cf-faq-a { max-height: 520px; }
.cf-faq-a-inner { padding: 0 22px 20px; }
.cf-faq-a-inner p { font-size: 15px; line-height: 1.65; color: var(--c-text-muted); margin: 0; text-wrap: pretty; }
.cf-faq-foot { text-align: center; font-size: 15px; color: var(--c-text-muted); margin: 26px 0 0; }

@media (max-width: 768px) {
	.cf-faq-q { font-size: 15.5px; padding: 16px 18px; }
	.cf-faq-item.is-open .cf-faq-a { max-height: 680px; }
}
