/*
 * Eigen stijlen van de webshop.
 *
 * Wordt na het Phoenix-thema (nationaaltheoriecentrum.nl/libary/phoenix)
 * geladen, zodat regels hier voorgaan. Het thema zelf staat op een gedeelde
 * server en wordt NIET aangepast.
 *
 * Huisstijl overgenomen van nationaaltheoriecentrum.nl.
 */

:root {
	--ws-rood: #be1622;
	--ws-rood-donker: #9e111b;
	--ws-blauw: #3aa9e0;
	--ws-blauw-donker: #2490c6;
	--ws-lichtblauw: #b1d2eb;
	--ws-ijsblauw: #eaf4fa;
	--ws-groen: #4caf50;
	--ws-grijs-licht: #f7f5f5;
	--ws-rand: #dcdcdc;
	--ws-tekst: #333;
	--ws-tekst-zacht: #666;
	--ws-kop-font: "Zilla Slab", Georgia, "Times New Roman", serif;
	--ws-tekst-font: "Open Sans", Arial, sans-serif;
}

/* ---------- Basis ---------- */

/* Scrollbalk van de pagina verbergen; scrollen met muis, touchpad en toetsen blijft werken */
html {
	scrollbar-width: none;
}

html::-webkit-scrollbar {
	display: none;
}

body.ws-body {
	margin: 0;
	background: var(--ws-lichtblauw);
	color: var(--ws-tekst);
	font-family: var(--ws-tekst-font);
	font-size: 15px;
}

.ws-body h1, .ws-body h2, .ws-body h3, .ws-body h4, .ws-body h5 {
	font-family: var(--ws-kop-font);
	color: var(--ws-tekst);
}

.ws-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

/* ---------- USP's (in de header, tussen logo en taallink) ---------- */

.ws-usp__lijst {
	display: flex;
	flex: 1;
	justify-content: space-evenly;
	flex-wrap: wrap;
	gap: 6px 20px;
	padding: 0 24px;
	font-size: 15px;
	color: #222;
}

.ws-usp__item {
	display: inline-flex;
	align-items: flex-end;
	gap: 4px;
}

/* Rood vinkje, zoals op de hoofdsite */
.ws-vinkje {
	display: inline-block;
	width: 22px;
	height: 22px;
	background: url("https://nationaaltheoriecentrum.nl/wp-content/uploads/2021/10/Auto-theorie-examen-vinkje-Nationaal-Theoriecentrum.png") no-repeat center / contain;
}

/* ---------- Header ---------- */

.ws-header {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	position: relative;
	z-index: 2;
}

.ws-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
}

/* Logo steekt net als op de hoofdsite iets onder de header uit */
.ws-header__logo {
	align-self: flex-start;
	margin-top: 10px;
	margin-bottom: -40px;
}

.ws-header__logo img {
	display: block;
	max-width: 240px;
	max-height: 110px;
	height: auto;
}

.ws-header__naam {
	font-family: var(--ws-kop-font);
	font-size: 24px;
	font-weight: 700;
	color: var(--ws-rood);
}

.ws-taal {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #000;
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
}

.ws-taal:hover {
	color: var(--ws-blauw);
}

.ws-taal img {
	width: 24px;
	height: auto;
}

/* ---------- Hoofdgedeelte ---------- */

.ws-main {
	padding: 56px 0 80px;
}

.ws-hero {
	text-align: center;
	margin-bottom: 24px;
}

.ws-hero h1 {
	font-size: 40px;
	font-weight: 700;
	color: #000;
	margin: 0 0 6px;
}

.ws-hero p {
	font-size: 20px;
	color: #000;
	margin: 0;
}

/* Voertuigkeuze als tabs */
.ws-voertuigen {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.ws-voertuig {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 104px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid transparent;
	border-radius: 6px;
	color: var(--ws-tekst);
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.ws-voertuig .fa-solid, .ws-voertuig [class*="fa-"] {
	font-size: 26px;
}

.ws-voertuig:hover {
	background: #fff;
	color: var(--ws-blauw);
}

.ws-voertuig.is-actief {
	background: #fff;
	border-color: var(--ws-blauw);
	color: var(--ws-blauw);
}

/* ---------- Witte kaart met pakketten ---------- */

.ws-kaart {
	background: #fff;
	border: 1px solid var(--ws-blauw);
	border-radius: 6px;
	padding: 32px 28px;
}

.ws-kaart__kop {
	text-align: center;
	margin-bottom: 28px;
}

.ws-kaart__kop h2 {
	font-size: 36px;
	font-weight: 700;
	color: var(--ws-blauw);
	margin: 0 0 8px;
}

.ws-kaart__kop p {
	color: var(--ws-tekst-zacht);
	margin: 0;
}

.ws-pakketten {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.ws-pakket {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 20px 18px 18px;
	background: #fff;
	border: 2px solid var(--ws-rand);
	border-radius: 6px;
	color: var(--ws-tekst);
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

/* Het thema onderstreept links bij hover; voor de kaarten, tabs en taallink niet */
.ws-pakket, .ws-pakket:hover, .ws-pakket:focus,
.ws-voertuig:hover, .ws-voertuig:focus,
.ws-taal:hover, .ws-taal:focus {
	text-decoration: none;
}

.ws-pakket:hover {
	border-color: var(--ws-blauw);
	box-shadow: 0 6px 18px rgba(58, 169, 224, 0.2);
	transform: translateY(-2px);
	color: var(--ws-tekst);
}

.ws-pakket.is-aanbevolen {
	border-color: var(--ws-blauw);
}

.ws-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 5px 9px;
	background: var(--ws-groen);
	border-radius: 3px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.ws-pakket__kop {
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eee;
}

.ws-pakket.is-aanbevolen .ws-pakket__kop {
	padding-top: 18px;
}

.ws-pakket__naam {
	font-size: 21px;
	font-weight: 600;
	color: var(--ws-blauw) !important;
	margin: 0 0 6px;
	line-height: 1.2;
}

.ws-pakket__prijs {
	font-size: 20px;
	font-weight: 700;
	color: #000;
}

/* Lijst met rode vinkjes */
.ws-vinklijst {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	flex: 1;
}

.ws-vinklijst li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 8px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ws-tekst-zacht);
}

.ws-vinklijst li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 15px;
	height: 15px;
	background: url("https://nationaaltheoriecentrum.nl/wp-content/uploads/2021/10/Auto-theorie-examen-vinkje-Nationaal-Theoriecentrum.png") no-repeat center / contain;
}

/* Knop in de stijl van "AANMELDEN" op de hoofdsite */
.ws-knop {
	display: block;
	padding: 12px 16px;
	background: var(--ws-blauw);
	border-radius: 5px;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 3px;
	transition: background 0.2s;
}

.ws-pakket:hover .ws-knop {
	background: var(--ws-blauw-donker);
}

/* Maximaal 4 pakketten, de rest achter "Toon alle pakketten" */
.ws-pakketten:not(.toon-alles) .ws-pakket.is-extra {
	display: none;
}

.ws-toon-alles {
	text-align: center;
	margin-top: 20px;
}

.ws-toon-knop {
	padding: 10px 22px;
	background: #fff;
	border: 2px solid var(--ws-blauw);
	border-radius: 5px;
	color: var(--ws-blauw);
	font-family: var(--ws-tekst-font);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.ws-toon-knop:hover,
.ws-toon-knop:focus-visible {
	background: var(--ws-blauw);
	color: #fff;
}

/* Blauw "Inclusief"-blok */
.ws-inclusief {
	margin-top: 28px;
	padding: 20px 24px 8px;
	background: var(--ws-ijsblauw);
	border-left: 4px solid var(--ws-blauw);
	border-radius: 0 4px 4px 0;
}

/* Blokken uit elkaar: eerste helemaal links, laatste helemaal rechts */
.ws-inclusief {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 48px;
}

.ws-inclusief__groep {
	flex: 0 1 280px;
}

/* Eén los blok (bijv. alleen Contact bij trekker) in het midden */
.ws-inclusief__groep:only-child {
	margin: 0 auto;
}

.ws-inclusief h4 {
	font-size: 19px;
	font-weight: 600;
	color: var(--ws-blauw);
	margin: 0 0 12px;
}

.ws-inclusief p {
	font-size: 13px;
	color: var(--ws-tekst-zacht);
	margin: 0 0 10px;
}

.ws-inclusief a {
	color: var(--ws-blauw);
	font-weight: 600;
}

.ws-leeg {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--ws-tekst-zacht);
}

/* ---------- Detail- en na-betaling-pagina ---------- */

.ws-main--details .card,
.ws-main--na_betaling .card {
	border: 1px solid var(--ws-blauw);
	border-radius: 6px;
	box-shadow: none;
}

.ws-main--details .ws-inhoud,
.ws-main--na_betaling .ws-inhoud {
	margin-top: 24px;
}

/* Productcode onder de pakketnaam op de detailpagina */
.ws-productcode {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--ws-tekst-zacht);
}

/* Productomschrijving op de detailpagina */
.ws-detail {
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ws-tekst);
}

/* Afbeelding rechts, tekst loopt er links langs en begint helemaal links */
.ws-detail__afbeelding {
	float: right;
	max-width: 160px;
	max-height: 160px;
	margin: 0 0 16px 20px;
}

.ws-onderdeel {
	margin-bottom: 22px;
}

.ws-onderdeel h4 {
	font-size: 19px;
	font-weight: 700;
	margin: 0 0 6px;
}

.ws-onderdeel__tekst p {
	margin: 0 0 10px;
}

/* Betaalmethoden, keurmerk en WhatsApp onder de afrekenknop */
.ws-afrekenen-extra {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 20px;
}

.ws-afrekenen-extra__betalen {
	max-width: 180px;
	height: auto;
}

.ws-afrekenen-extra__keurmerk {
	width: 150px;
	height: auto;
}

.ws-afrekenen-extra a.ws-afrekenen-extra__whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ws-tekst);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

.ws-afrekenen-extra__whatsapp:hover {
	color: #25a244;
}

.ws-afrekenen-extra__whatsapp img {
	width: 56px;
	height: 56px;
}

/* De groene inline-knoppen omzetten naar de blauwe huisstijlknop */
.ws-main input[type="submit"],
.ws-main input[type="button"] {
	background-color: var(--ws-blauw) !important;
	border-radius: 5px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 3px;
}

.ws-main input[type="submit"]:hover,
.ws-main input[type="button"]:hover {
	background-color: var(--ws-blauw-donker) !important;
}

/* ---------- Footer ---------- */

.ws-footer {
	background: var(--ws-rood);
	color: #fff;
	padding: 48px 0 40px;
}

.ws-footer__kolommen {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	text-align: center;
}

.ws-footer h3 {
	color: #fff !important;
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 18px;
}

.ws-footer p {
	color: #fff;
	margin: 0 0 10px;
}

.ws-footer a {
	display: block;
	color: #fff;
	text-decoration: underline;
	margin-bottom: 10px;
}

.ws-footer a:hover {
	color: #fff;
	opacity: 0.85;
}

.ws-partners {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.ws-partners a {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	background: #fff;
	border-radius: 6px;
	margin: 0;
	transition: transform 0.2s;
}

.ws-partners a:hover {
	transform: translateY(-3px);
	opacity: 1;
}

.ws-partners img {
	max-width: 110px;
	max-height: 40px;
	height: auto;
}

/* Witte onderbalk */
.ws-onderbalk {
	background: #fff;
	padding: 18px 0;
	font-size: 13px;
	color: var(--ws-tekst-zacht);
}

.ws-onderbalk .ws-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
}

.ws-onderbalk a {
	color: var(--ws-blauw);
	font-weight: 600;
	text-decoration: none;
}

/* Zwevende WhatsApp-knop */
.ws-whatsapp {
	position: fixed;
	left: 18px;
	bottom: 24px;
	z-index: 10;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s;
}

.ws-whatsapp:hover {
	transform: scale(1.08);
}

.ws-whatsapp img {
	display: block;
	width: 56px;
	height: 56px;
}

/* ---------- Tablet: USP's als smalle rij onder logo en taallink ---------- */

@media (max-width: 991px) {
	.ws-header__inner {
		flex-wrap: wrap;
	}

	.ws-header__logo {
		margin-bottom: 8px;
	}

	.ws-usp__lijst {
		order: 3;
		flex-basis: 100%;
		justify-content: center;
		gap: 4px 16px;
		padding: 8px 0 10px;
		border-top: 1px solid #eee;
		font-size: 13px;
	}

	.ws-usp__item .ws-vinkje {
		width: 17px;
		height: 17px;
	}
}

/* ---------- Afrekenpagina: afrekenblok boven de omschrijving op mobiel/tablet ---------- */

@media (max-width: 991px) {
	.ws-main--details .ws-afrekenen-kolom {
		order: -1;
		margin-bottom: 1.5rem;
	}
}

/* ---------- Mobiel ---------- */

@media (max-width: 767px) {
	.ws-header__inner {
		min-height: 64px;
	}

	.ws-header__logo img {
		max-width: 170px;
		max-height: 80px;
	}

	.ws-main {
		padding: 40px 0 56px;
	}

	.ws-hero h1 {
		font-size: 30px;
	}

	.ws-hero p {
		font-size: 17px;
	}

	/* Eén rij om horizontaal door te vegen */
	.ws-voertuigen {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		gap: 8px;
		margin: 0 -16px 20px;
		padding: 0 16px 4px;
		scrollbar-width: none;
	}

	.ws-voertuigen::-webkit-scrollbar {
		display: none;
	}

	.ws-voertuig {
		flex: 0 0 auto;
		min-width: 84px;
		padding: 10px 8px;
		font-size: 13px;
	}

	.ws-voertuig .fa-solid, .ws-voertuig [class*="fa-"] {
		font-size: 22px;
	}

	.ws-whatsapp,
	.ws-whatsapp img {
		width: 46px;
		height: 46px;
	}

	.ws-whatsapp {
		left: 12px;
		bottom: 16px;
	}

	.ws-kaart {
		padding: 24px 16px;
	}

	.ws-kaart__kop h2 {
		font-size: 28px;
	}

	.ws-onderbalk .ws-container {
		justify-content: center;
		text-align: center;
	}
}
