/* Algemene Reset en Typografie */
body {
	font-family: 'Lato', sans-serif;
	background-color: #f0f2f5; /* Lichter en frisser dan #f4f4f4 */
	color: #333;
	margin: 0;
	padding: 20px;
	line-height: 1.6;
}

/* Container en Centering (gebruikersinstelling 800px behouden) */
.container {
	max-width: 800px;
	width: 100%;
	background: #fff;
	margin: 0 auto; /* Centering */
	padding: 40px;
	border-radius: 8px; /* Subtiele afronding */
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Header Styling - Gebruikt Flexbox om logo, admin_link en titel te positioneren */
.form-header {
	display: flex;
	justify-content: space-between; /* Links: logo, Rechts: titel, Midden: admin_link */
	align-items: flex-start; /* Zorgt voor betere uitlijning */
	border-bottom: 3px solid #E0E0E0; /* Subtiele lijn */
	padding-bottom: 20px;
	margin-bottom: 30px;
}

/* Admin Link Styling (VISUEEL GEBENADRUKT) */
.admin_link {
	/* Midden in de flow, maar visueel apart gezet */
	padding: 8px 15px;
	border-radius: 6px;
	background-color: #ffead9; /* Warme, opvallende kleur (Ibiza/Zon) */
	border: 1px solid #ffbb80;
	box-shadow: 0 2px 4px rgba(255, 170, 0, 0.1);
	flex-shrink: 0;
	margin: 0 15px; /* Ruimte tussen logo en titel */
}

.admin_link h2 {
	margin: 0;
	font-size: 0.9em;
	font-weight: 700;
}

.admin_link a {
	color: #cc6600; /* Donkerdere kleur voor leesbaarheid */
	text-decoration: none;
	transition: color 0.2s;
}

.admin_link a:hover {
	color: #a35200;
}


/* Logo Styling (Links) */
.logo {
	flex-shrink: 0;
	flex-basis: auto;
}
.logo h1 {
	margin: 0;
	font-size: 40px;
	font-weight: 300;
}
.logo p {
	font-size: 10px;
	letter-spacing: 1px;
	margin: 0;
	color: #666;
}

/* Form Title Styling (Rechts) */
.form-title {
	text-align: right;
	flex-shrink: 0;
	flex-basis: auto;
}
.form-title h2 {
	margin: 0;
	text-decoration: underline;
	color: #333;
	font-size: 1.5em; /* Iets groter */
}
.form-title h3 {
	margin-top: 5px;
	font-size: 1.1em;
	color: #555;
	font-weight: 400;
}

/* Formulier Elementen */
.form-group {
	margin-bottom: 18px; /* Iets meer ruimte */
}
.form-group label {
	display: block;
	font-weight: 700; /* Dikker */
	margin-bottom: 5px;
	color: #555;
}
.form-group input, 
.form-group textarea, 
.price-selector {
	width: 100%;
	padding: 12px; /* Iets meer padding */
	border: 1px solid #ccc;
	border-radius: 6px; /* Iets ronder */
	box-sizing: border-box;
	font-size: 1em;
	transition: border-color 0.2s;
}
.form-group input:focus, 
.form-group textarea:focus, 
.price-selector:focus {
	border-color: #ff9933; /* Focus kleur passend bij Ibiza thema */
	outline: none;
	box-shadow: 0 0 5px rgba(255, 153, 51, 0.5);
}

.split {
	display: flex;
	gap: 20px;
}
.split div {
	flex: 1;
}

/* Tabel Styling */
table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}
th, td {
	border: 1px solid #ddd; /* Lichtere rand */
	padding: 12px;
	text-align: left;
}
th {
	background-color: #f7f7f7; /* Lichtgrijs */
	font-weight: 700;
	color: #333;
}
.section-header td {
	background-color: #e5e5e5; /* Iets lichter dan #dcdcdc */
	font-weight: 700;
	text-align: center;
}
.info-row td {
	background-color: #fcfcfc;
	color: #666;
	font-size: 0.9em;
	font-style: italic;
	border-top: none;
}
.price-col, .row-total, .grand-total {
	text-align: right;
	white-space: nowrap;
	width: 120px;
}
.total-label {
	text-align: right;
	vertical-align: middle;
}
.grand-total {
	font-weight: 700;
	font-size: 1.3em;
	background-color: #fff8e1; /* Zachte gele achtergrond voor totaal */
	color: #333;
}

/* Voorwaarden */
.terms ul {
	padding-left: 25px;
	font-size: 0.95em;
	color: #555;
	line-height: 1.5;
}

/* Agreement & Button */
.agreement {
	margin-top: 30px; 
	border-top: 1px solid #eee;
	padding-top: 20px;
	text-align: center; /* Centreer de paragraaf en knop */
}

.agreement p {
	color: #555;
}

.checkbox-wrapper {
	margin: 15px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

button {
	background-color: #333; /* Zwart/Donkergrijs als primaire knop */
	color: #fff;
	padding: 14px 35px;
	border: none;
	cursor: pointer;
	font-size: 1.1em;
	font-weight: 700;
	border-radius: 6px;
	margin-top: 20px;
	transition: background-color 0.2s, box-shadow 0.2s;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
button:hover {
	background-color: #555;
	box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Responsive aanpassing */
@media (max-width: 600px) {
	.container {
		padding: 20px;
	}
	
	.form-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.logo, .admin_link, .form-title {
		width: 100%;
		margin: 10px 0;
		text-align: center;
	}
	
	.admin_link {
		/* Zorg dat de link op mobiel duidelijk bovenaan staat */
		order: -1; 
	}

	.split {
		flex-direction: column;
		gap: 0;
	}

	/* Tabel aanpassingen voor kleine schermen (card view) */
	table, thead, tbody, th, td, tr {
		display: block;
	}
	
	thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr:not(.section-header):not(.info-row) {
		border: 1px solid #ccc;
		margin-bottom: 15px;
		border-radius: 6px;
	}

	td {
		border: none;
		border-bottom: 1px solid #eee;
		position: relative;
		padding-left: 50%;
		text-align: right !important;
	}

	td:before {
		position: absolute;
		left: 10px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
		text-align: left;
		font-weight: bold;
		color: #555;
	}
	
	/* Labels voor responsive tabel */
	.item-name:before { content: "Omschrijving:"; }
	.row-total:before { content: "Rij Totaal:"; }
	.total-label { display: none; } /* Verberg desktop total label */
	.grand-total {
		display: block;
		text-align: right !important;
		background: #fff8e1;
		font-size: 1.2em;
		border-top: 2px solid #ffbb80;
	}
	.grand-total:before { content: "Totaal Excl. BTW:"; }
}