/* ==========================================================================
   Huidtest — stapsgewijze quiz
   MOBILE FIRST: basis = 390px.
   ========================================================================== */

.bc-test {
	padding: 24px var(--bc-gutter) 32px;
	max-width: 640px;
	margin: 0 auto;
}

/* Antwoorden zonder passend product, de knop zonder uitslag, … krijgen het
   attribuut hidden. Dat moet ook winnen van display: block en inline-flex. */
.bc-test [hidden] {
	display: none !important;
}


/* --- Voortgangsbalk ----------------------------------------------------- */

.bc-test__voortgang {
	height: 6px;
	background: var(--bc-creme);
	border-radius: var(--bc-radius-pill);
	overflow: hidden;
	margin-bottom: 24px;
}

.bc-test__balk {
	display: block;
	height: 100%;
	width: 0;
	background: var(--bc-oranje);
	border-radius: var(--bc-radius-pill);
	transition: width 0.35s ease;
}


/* --- Vragen ------------------------------------------------------------- */

.bc-test__stap {
	display: none;
	border: 0;
	margin: 0;
	padding: 0;
}

.bc-test__stap.is-actief {
	display: block;
}

.bc-test__vraag {
	padding: 0;
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--bc-bruin);
}

.bc-test__vraag:focus {
	outline: none;
}

.bc-test__opties {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bc-test__optie {
	display: block;
	width: 100%;
	min-height: var(--bc-tap);
	padding: 14px 18px;
	text-align: left;
	background: var(--bc-wit);
	border: 2px solid var(--bc-rand);
	border-radius: var(--bc-radius-klein);
	font-family: var(--bc-font);
	font-size: var(--bc-fs-body-plus);
	font-weight: 700;
	color: var(--bc-bruin);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bc-test__optie:hover,
.bc-test__optie:focus-visible {
	border-color: var(--bc-oranje);
	background: var(--bc-creme);
}

.bc-test__terug {
	margin-top: 16px;
	padding: 8px 0;
	background: none;
	border: 0;
	font-family: var(--bc-font);
	font-size: var(--bc-fs-body);
	font-weight: 700;
	color: var(--bc-meta);
	cursor: pointer;
}

.bc-test__terug:hover,
.bc-test__terug:focus-visible {
	color: var(--bc-oranje-tekst);
	text-decoration: underline;
}


/* --- Uitslag ------------------------------------------------------------ */

.bc-test__uitslagkop {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--bc-bruin);
}

.bc-test__uitslagkop:focus {
	outline: none;
}

.bc-test__uitslagtekst {
	margin: 0 0 20px;
	font-size: var(--bc-fs-body-plus);
	line-height: 1.5;
}

.bc-test__producten {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}

/* Eén kaart per product: foto, kop (stap, naam, prijs) en daaronder
   waarom het past. Op een smal scherm loopt "waarom" over de volle breedte,
   breder staat de foto links naast alles. */
.bc-test__product {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	grid-template-areas:
		"foto kop"
		"waarom waarom";
	column-gap: 14px;
	row-gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--bc-rand);
	border-radius: var(--bc-radius-klein);
	background: var(--bc-wit);
	transition: border-color 0.15s ease;
}

.bc-test__product:hover,
.bc-test__product:focus-within {
	border-color: var(--bc-oranje);
}

.bc-test__fotolink {
	grid-area: foto;
	display: block;
	line-height: 0;
}

.bc-test__productfoto {
	width: 72px;
	height: 72px;
	border-radius: var(--bc-radius-mini);
	object-fit: cover;
	background: var(--bc-creme);
}

.bc-test__kop {
	grid-area: kop;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
}

/* De routinestap boven de naam ("1 · Reinig"). Niet verwarren met
   .bc-test__stap: dat is een vraag. */
.bc-test__productstap {
	font-size: var(--bc-fs-meta);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bc-oranje-tekst);
}

.bc-test__productnaam {
	font-size: var(--bc-fs-body-plus);
	font-weight: 700;
	color: var(--bc-bruin);
	line-height: 1.3;
	text-decoration: none;
}

.bc-test__productnaam:hover,
.bc-test__productnaam:focus-visible {
	color: var(--bc-oranje-tekst);
	text-decoration: underline;
}

.bc-test__productprijs {
	font-size: var(--bc-fs-body);
	color: var(--bc-oranje-tekst);
	font-weight: 700;
}

.bc-test__uitverkocht {
	display: inline-block;
	padding: 3px 10px;
	border-radius: var(--bc-radius-pill);
	background: var(--bc-creme);
	font-size: var(--bc-fs-meta);
	font-weight: 700;
	color: var(--bc-bruin);
}

.bc-test__product.is-uitverkocht .bc-test__productfoto {
	opacity: 0.55;
}

.bc-test__waarom {
	grid-area: waarom;
	padding-top: 10px;
	border-top: 1px solid var(--bc-rand);
}

.bc-test__pastbij {
	margin: 0 0 6px;
	font-size: var(--bc-fs-body);
	line-height: 1.45;
	color: var(--bc-bruin);
}

.bc-test__pastbij strong {
	color: var(--bc-oranje-tekst);
}

.bc-test__bullets {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bc-test__bullets li {
	position: relative;
	padding-left: 16px;
	font-size: var(--bc-fs-body);
	line-height: 1.45;
	color: var(--bc-body);
}

.bc-test__bullets li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 2px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bc-oranje);
}

/* Tip van Hilde op de productpagina, onder de knop
   (inc/huidtest-product.php). Crème, met haar foto, zoals bij het advies
   op de homepage. */
.bc-hildetip {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 18px 0 20px;
	padding: 16px 18px;
	border-radius: var(--bc-radius-klein);
	background: var(--bc-creme);
}

.bc-hildetip__foto {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border: 2px solid var(--bc-wit);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--bc-rand);
	object-fit: cover;
}

.bc-hildetip__inhoud {
	min-width: 0;
}

.bc-hildetip__kop {
	margin: 0 0 4px;
	font-size: var(--bc-fs-meta);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bc-oranje-tekst);
}

.bc-hildetip__tekst {
	margin: 0;
	font-size: var(--bc-fs-body-plus);
	line-height: 1.55;
	color: var(--bc-bruin);
}

/* Geen passend product, of een regel van Hilde onder de uitslag. */
.bc-test__geen,
.bc-test__notitie {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: var(--bc-radius-klein);
	background: var(--bc-creme);
	font-size: var(--bc-fs-body-plus);
	line-height: 1.5;
	color: var(--bc-bruin);
}

.bc-test__acties {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.bc-test__advies {
	margin: 0;
	font-size: var(--bc-fs-body);
	line-height: 1.5;
	color: var(--bc-meta);
}

.bc-test__advies a {
	color: var(--bc-oranje-tekst);
	font-weight: 700;
}

/* De uitleg over de korting staat net boven de knop. */
.bc-test__kortinguitleg {
	margin: 0 0 12px;
	color: var(--bc-body);
}


/* --- Nieuwsbrief onder de uitslag ----------------------------------------
   Een zachte crème kaart, zodat het formulier zichtbaar los staat van de
   aanbevolen producten erboven. Het formulier zelf krijgt zijn opmaak uit
   formulieren.css. */

.bc-nieuwsbrief--huidtest {
	margin-top: 28px;
	padding: 20px 18px 22px;
	border-radius: var(--bc-radius-kaart);
	background: var(--bc-creme);
}

.bc-nieuwsbrief--huidtest .bc-nieuwsbrief__kop {
	margin: 0 0 4px;
	font-size: var(--bc-fs-kop);
	font-weight: 700;
	line-height: 1.25;
	color: var(--bc-bruin);
}

.bc-nieuwsbrief--huidtest .bc-nieuwsbrief__tekst {
	margin: 0 0 16px;
	font-size: var(--bc-fs-body-plus);
	line-height: 1.5;
	color: var(--bc-body);
}


/* --- Opschalen ---------------------------------------------------------- */

@media (min-width: 700px) {

	.bc-test {
		padding: 40px 40px 56px;
	}

	.bc-test__vraag {
		font-size: 28px;
	}

	.bc-test__opties {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.bc-test__uitslagkop {
		font-size: 30px;
	}

	.bc-test__product {
		grid-template-columns: 120px minmax(0, 1fr);
		grid-template-areas:
			"foto kop"
			"foto waarom";
		align-items: start;
		column-gap: 18px;
		padding: 16px;
	}

	.bc-test__productfoto {
		width: 120px;
		height: 120px;
	}

	.bc-nieuwsbrief--huidtest {
		padding: 26px 28px 28px;
	}
}
