/* Riolen Smets – Veelgestelde vragen. Volgt de Impreza-kleuren via CSS-variabelen. */
.rs-faq {
	--rs-faq-primary: var(--color-content-primary, #ff0016);
	--rs-faq-primary-hover: var(--color-content-link-hover, #e00014);
	--rs-faq-heading: var(--color-content-heading, #333);
	--rs-faq-text: var(--color-content-text, #3a3a3a);
	--rs-faq-faded: var(--color-content-faded, #707070);
	--rs-faq-border: var(--color-content-border, #e8e8e8);
	--rs-faq-soft: var(--color-content-secondary, #f4f4f4);
	--rs-faq-bg: var(--color-content-bg, #fff);
	max-width: 960px;
	margin: 0 auto;
	color: var(--rs-faq-text);
}

.rs-faq__intro { text-align: center; margin-bottom: 2rem; }
.rs-faq__intro h2 { margin-bottom: 0; }

/* ---------- Accordeon ---------- */
.rs-faq__list { display: flex; flex-direction: column; gap: .75rem; }

.rs-faq__item {
	background: var(--rs-faq-soft);
	border-left: 4px solid transparent;
	transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.rs-faq__item:hover { border-left-color: #d9d9d9; }
.rs-faq__item[open]:not(.is-closing) {
	border-left-color: var(--rs-faq-primary);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
}
.rs-faq__item[hidden] { display: none; }

.rs-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.4;
	color: var(--rs-faq-heading);
	transition: color .25s ease;
}
.rs-faq__question::-webkit-details-marker { display: none; }
.rs-faq__question::marker { content: ""; }
.rs-faq__question:hover,
.rs-faq__item[open]:not(.is-closing) > .rs-faq__question { color: var(--rs-faq-primary); }
.rs-faq__question:focus-visible { outline: 2px solid var(--rs-faq-primary); outline-offset: 2px; }

.rs-faq__icon {
	position: relative;
	flex: 0 0 2rem;
	width: 2rem;
	height: 2rem;
	background: var(--rs-faq-primary);
	transition: background .3s ease, transform .35s cubic-bezier(.4, 0, .2, 1);
}
.rs-faq__item[open]:not(.is-closing) .rs-faq__icon { transform: rotate(180deg); }
.rs-faq__icon::before,
.rs-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	margin: -1px 0 0 -6px;
	background: #fff;
	transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.rs-faq__icon::after { transform: rotate(90deg); }
.rs-faq__item[open]:not(.is-closing) .rs-faq__icon::after { transform: rotate(0deg); }
.rs-faq__question:hover .rs-faq__icon { background: var(--rs-faq-primary-hover); }

.rs-faq__answer { padding: 0 1.25rem 1.25rem; overflow: hidden; }
.rs-faq__answer > :last-child { margin-bottom: 0; }
.rs-faq__answer h4 {
	font-size: 1rem;
	margin: 1rem 0 .4rem;
	color: var(--rs-faq-heading);
}
.rs-faq .rs-faq__answer p { margin-bottom: .85rem; }
.rs-faq__answer ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.rs-faq__answer ul li {
	position: relative;
	padding-left: 1.4rem;
	margin-bottom: .5rem;
}
.rs-faq__answer ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .6em;
	width: 8px;
	height: 8px;
	background: var(--rs-faq-primary);
}
.rs-faq__answer a { color: var(--rs-faq-primary); text-decoration: underline; }
.rs-faq__answer a:hover { color: var(--rs-faq-primary-hover); }

.rs-faq mark {
	background: var(--color-content-primary-faded, rgba(255, 0, 22, .15));
	color: inherit;
	padding: 0 .1em;
}

.rs-faq__more { text-align: center; margin: 2rem 0 0; }

/* ---------- Overzichtspagina ---------- */
.rs-faq__tools { margin-bottom: 2.5rem; }

.rs-faq__search { position: relative; margin-bottom: 1.25rem; }
.rs-faq__search-icon {
	position: absolute;
	left: 1.1rem;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: var(--rs-faq-faded);
	pointer-events: none;
}
.rs-faq .rs-faq__search-input {
	width: 100%;
	height: auto;
	padding: 1rem 1rem 1rem 3rem;
	font-size: 1rem;
	line-height: 1.4;
	border: 2px solid var(--rs-faq-border);
	border-radius: 0;
	background: var(--rs-faq-bg);
	box-shadow: none;
	color: var(--rs-faq-text);
	transition: border-color .25s ease;
}
.rs-faq .rs-faq__search-input:focus { border-color: var(--rs-faq-primary); outline: none; }

/* Filters: wrappen i.p.v. van het scherm te lopen */
.rs-faq__filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.rs-faq__chip {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	max-width: 100%;
	padding: .6rem 1rem;
	font: inherit;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: normal;
	text-align: left;
	color: var(--rs-faq-heading);
	background: var(--rs-faq-soft);
	border: 2px solid var(--rs-faq-soft);
	border-radius: 0;
	cursor: pointer;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.rs-faq__chip:hover { border-color: var(--rs-faq-primary); }
.rs-faq__chip:focus-visible { outline: 2px solid var(--rs-faq-primary); outline-offset: 2px; }
.rs-faq__chip.is-active {
	background: var(--rs-faq-primary);
	border-color: var(--rs-faq-primary);
	color: #fff;
}
.rs-faq__chip[disabled] { opacity: .45; cursor: default; }
.rs-faq__chip[disabled]:hover { border-color: var(--rs-faq-soft); }
.rs-faq__count {
	display: inline-block;
	min-width: 1.6em;
	padding: .15em .4em;
	font-size: .8em;
	text-align: center;
	background: var(--rs-faq-bg);
	color: var(--rs-faq-heading);
}
.rs-faq__chip.is-active .rs-faq__count { color: var(--rs-faq-primary); }

.rs-faq__status { margin: 1rem 0 0; font-size: .95rem; color: var(--rs-faq-faded); }
.rs-faq__status:empty { display: none; }

.rs-faq__group { margin-bottom: 3rem; scroll-margin-top: 140px; }
.rs-faq__group[hidden] { display: none; }
.rs-faq__group-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem 1.5rem;
	margin-bottom: 1.25rem;
	padding-bottom: .75rem;
	border-bottom: 2px solid var(--rs-faq-soft);
}
.rs-faq__group-title { margin: 0; }
.rs-faq__group-title::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin-top: .5rem;
	background: var(--rs-faq-primary);
}
.rs-faq__group-link { font-weight: 700; color: var(--rs-faq-primary); white-space: nowrap; }
.rs-faq__group-link:hover { color: var(--rs-faq-primary-hover); }
.rs-faq__item { scroll-margin-top: 140px; }

.rs-faq__empty {
	padding: 2rem;
	text-align: center;
	background: var(--rs-faq-soft);
}
.rs-faq__empty[hidden] { display: none; }

/* ---------- Mobiel ---------- */
@media (max-width: 600px) {
	.rs-faq__question { padding: 1rem; font-size: 1rem; }
	.rs-faq__answer { padding: 0 1rem 1rem; }
	.rs-faq__icon { flex-basis: 1.75rem; width: 1.75rem; height: 1.75rem; }
	.rs-faq__chip { padding: .5rem .8rem; font-size: .9rem; }
	.rs-faq__group-link { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	.rs-faq *, .rs-faq *::before, .rs-faq *::after { transition: none !important; }
}

/* Op de dienstpagina's staat het blok in een grijze sectie: vakjes wit */
.rs-faq--page .rs-faq__item { background: var(--rs-faq-bg); }
.rs-faq--page .rs-faq__item:hover { border-left-color: var(--rs-faq-border); }
