/*
 * Spandoek-reserveringen
 *
 * Aanpassen kan op twee manieren:
 * 1. Overschrijf de variabelen hieronder, bv. `.spandoek { --spandoek-oranje: #f60; }`.
 * 2. Overschrijf een onderdeel met dezelfde specificiteit, bv. `.spandoek .spandoek__knop { … }`.
 * Fonts (Lilita One, Nunito) worden door het thema geladen; de plugin laadt geen externe bestanden.
 */

.spandoek {
	--spandoek-oranje: #ff7a00;
	--spandoek-marine: #1d2a5b;
	--spandoek-creme: #fcf1e7;
	--spandoek-wit: #fff;
	--spandoek-fout: #b42318;
	--spandoek-succes: #1e6b41;
	--spandoek-tekst: #3a3a3a;
	--spandoek-oranje-donker: #d95f00;
	--spandoek-schaduw-knop: #b54e00;
	--spandoek-rand: #f5d5b5;
	--spandoek-radius: 24px;
	--spandoek-gap: 1.25rem;
	--spandoek-font-kop: "Lilita One", system-ui, sans-serif;
	--spandoek-font-tekst: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

	color: var(--spandoek-tekst);
	font-family: var(--spandoek-font-tekst);
	line-height: 1.5;
	display: grid;
	gap: calc(var(--spandoek-gap) * 1.5);
}

/* Secties als witte kaart, net als de andere formulieren op de site. */
.spandoek .spandoek__sectie {
	background: var(--spandoek-wit);
	border-radius: var(--spandoek-radius);
	padding: 36px;
	box-shadow: 0 16px 50px rgba(29, 42, 91, 0.1);
}

.spandoek .spandoek__titel {
	font-family: var(--spandoek-font-kop);
	font-weight: 400;
	color: var(--spandoek-oranje);
	text-transform: uppercase;
	font-size: 1.5rem;
	line-height: 1.15;
	margin: 0 0 1rem;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--spandoek-rand);
}

.spandoek .spandoek__uitleg {
	margin: 0 0 1rem;
}

/* Weekoverzicht */
.spandoek .spandoek__tabel-wrap {
	overflow-x: auto;
}

.spandoek .spandoek__tabel {
	width: 100%;
	border-collapse: collapse;
	background: var(--spandoek-wit);
	border-radius: calc(var(--spandoek-radius) - 4px);
	overflow: hidden;
	margin: 0;
}

.spandoek .spandoek__tabel th,
.spandoek .spandoek__tabel td {
	text-align: left;
	padding: 0.65rem 0.9rem;
	border: 0;
	border-bottom: 1px solid var(--spandoek-rand);
	vertical-align: top;
	color: var(--spandoek-marine);
	background: transparent;
}

.spandoek .spandoek__tabel thead th {
	background: var(--spandoek-marine);
	color: var(--spandoek-wit);
	font-weight: 700;
}

.spandoek .spandoek__tabel tbody th {
	font-weight: 700;
	white-space: nowrap;
}

.spandoek .spandoek__rij--vol {
	background: rgba(29, 42, 91, 0.05);
}

.spandoek .spandoek__badge {
	display: inline-block;
	padding: 0.1rem 0.6rem;
	border-radius: 999px;
	background: var(--spandoek-creme);
	border: 1px solid var(--spandoek-oranje);
	font-weight: 700;
	white-space: nowrap;
}

.spandoek .spandoek__badge--vol {
	background: var(--spandoek-marine);
	border-color: var(--spandoek-marine);
	color: var(--spandoek-wit);
}

.spandoek .spandoek__leeg {
	opacity: 0.6;
}

/* Formulier */
.spandoek .spandoek__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--spandoek-gap);
}

.spandoek .spandoek__veld {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.spandoek .spandoek__veld--breed,
.spandoek .spandoek__akkoord {
	grid-column: 1 / -1;
}

.spandoek .spandoek__form label,
.spandoek .spandoek__form legend {
	font-weight: 700;
	font-size: 0.98rem;
	color: var(--spandoek-marine);
}

.spandoek .spandoek__form input[type="text"],
.spandoek .spandoek__form input[type="email"],
.spandoek .spandoek__form input[type="tel"],
.spandoek .spandoek__form select,
.spandoek .spandoek__form textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--spandoek-font-tekst);
	font-size: 1rem;
	color: var(--spandoek-tekst);
	background: var(--spandoek-wit);
	border: 2px solid var(--spandoek-rand);
	border-radius: 12px;
	padding: 0 16px;
	min-height: 50px;
	transition: border-color 0.2s ease;
}

.spandoek .spandoek__form textarea {
	padding: 12px 16px;
	min-height: 110px;
}

.spandoek .spandoek__form input:focus,
.spandoek .spandoek__form select:focus,
.spandoek .spandoek__form textarea:focus {
	border-color: var(--spandoek-oranje);
}

.spandoek .spandoek__form input:focus-visible,
.spandoek .spandoek__form select:focus-visible,
.spandoek .spandoek__form textarea:focus-visible,
.spandoek .spandoek__knop:focus-visible,
.spandoek a:focus-visible {
	outline: 3px solid var(--spandoek-marine);
	outline-offset: 2px;
	border-color: var(--spandoek-oranje);
}

.spandoek .spandoek__keuze {
	border: 0;
	margin: 0;
	padding: 0;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.spandoek .spandoek__keuze legend {
	width: 100%;
	padding: 0;
	margin-bottom: 0.35rem;
}

.spandoek .spandoek__keuze label,
.spandoek .spandoek__akkoord label {
	font-weight: 400;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.spandoek .spandoek__akkoord {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.6rem;
}

.spandoek .spandoek__akkoord input,
.spandoek .spandoek__keuze input {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.15rem 0 0;
	accent-color: var(--spandoek-oranje);
	flex: none;
}

.spandoek .spandoek__akkoord label {
	display: block;
}

.spandoek .spandoek__form a {
	color: var(--spandoek-marine);
	text-decoration: underline;
	text-decoration-color: var(--spandoek-oranje);
	text-decoration-thickness: 2px;
}

.spandoek .spandoek__hulp {
	font-size: 0.9rem;
	margin: 0;
	opacity: 0.85;
}

.spandoek .spandoek__verplicht {
	color: var(--spandoek-fout);
}

/* Knop: gelijk aan de oranje knoppen op de rest van de site. */
.spandoek .spandoek__knop {
	justify-self: start;
	font-family: var(--spandoek-font-kop);
	font-size: 1.05rem;
	font-weight: 400;
	color: var(--spandoek-wit);
	background: var(--spandoek-oranje);
	border: 0;
	border-radius: 999px;
	padding: 14px 28px;
	cursor: pointer;
	box-shadow: 0 4px 0 var(--spandoek-schaduw-knop);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.spandoek .spandoek__knop:hover {
	background: var(--spandoek-oranje-donker);
	color: var(--spandoek-wit);
	transform: translateY(-2px);
}

/* Honeypot: buiten beeld, niet voor schermlezers. */
.spandoek .spandoek__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Meldingen */
.spandoek .spandoek__melding {
	border-radius: 10px;
	padding: 0.85rem 1rem;
	margin: 0 0 1rem;
	background: var(--spandoek-wit);
	border-left: 6px solid var(--spandoek-succes);
}

.spandoek .spandoek__melding p,
.spandoek .spandoek__melding ul {
	margin: 0;
}

.spandoek .spandoek__melding ul {
	margin-top: 0.35rem;
	padding-left: 1.2rem;
}

.spandoek .spandoek__melding--fout {
	border-left-color: var(--spandoek-fout);
}

/* Mobiel: formulier in één kolom, tabel als kaarten. */
@media (max-width: 640px) {
	.spandoek .spandoek__sectie {
		padding: 22px;
		border-radius: 18px;
	}

	.spandoek .spandoek__form {
		grid-template-columns: minmax(0, 1fr);
	}

	.spandoek .spandoek__tabel thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.spandoek .spandoek__tabel,
	.spandoek .spandoek__tabel tbody,
	.spandoek .spandoek__tabel tr,
	.spandoek .spandoek__tabel th,
	.spandoek .spandoek__tabel td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.spandoek .spandoek__tabel tr {
		border-bottom: 2px solid var(--spandoek-rand);
		padding: 0.4rem 0;
	}

	.spandoek .spandoek__tabel th,
	.spandoek .spandoek__tabel td {
		border: 0;
		padding: 0.25rem 0.9rem;
		white-space: normal;
	}

	.spandoek .spandoek__tabel td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
	}
}

@media (prefers-reduced-motion: reduce) {
	.spandoek .spandoek__knop,
	.spandoek .spandoek__form input,
	.spandoek .spandoek__form select,
	.spandoek .spandoek__form textarea {
		transition: none;
	}

	.spandoek .spandoek__knop:hover {
		transform: none;
	}
}
