/* ████████████████████████████████████████████████████████████████████████████
   Combinatie America-Hegelsom-Meterik — Inventarisatie Formulier
   Club colours: Red #d02020 · Green #008070 · Yellow #f0e030
   ████████████████████████████████████████████████████████████████████████████ */

/* ── Reset ─────────────────────────────────────────────────────────────────── */

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
	background: #f2f2f2;
	color: #222;
	line-height: 1.6;
	min-height: 100vh;
	min-height: 100dvh;
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
	background: #000;
	padding: 28px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.logo {
	display: block;
	width: 72px;
	height: auto;
}

.header-text {
	color: #fff;
}

.header-text h1 {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .5px;
	line-height: 1.2;
}

.header-text p {
	font-size: 14px;
	color: rgba(255,255,255,.6);
	margin-top: 2px;
}

/* ── Form page ─────────────────────────────────────────────────────────────── */

.form-page {
	max-width: 560px;
	margin: 0 auto;
	padding: 28px 16px 40px;
}

/* ── Intro ─────────────────────────────────────────────────────────────────── */

.intro {
	color: #555;
	font-size: 15px;
	line-height: 1.65;
	margin-bottom: 24px;
}

/* ── Step headings ─────────────────────────────────────────────────────────── */

#form h2 {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 6px;
}

#form h3 {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 8px;
}

.step-intro {
	color: #666;
	font-size: 14px;
	margin-bottom: 20px;
}

/* ── Role explanation ──────────────────────────────────────────────────────── */

.role-explanation {
	font-size: 14px;
	color: #555;
	line-height: 1.65;
	margin: 0 0 16px 18px;
}

.role-explanation li {
	margin-bottom: 4px;
}

.role-explanation strong {
	color: #1a1a1a;
}

/* ── Segments ──────────────────────────────────────────────────────────────── */

.segment {
	background: #fff;
	border-radius: 10px;
	padding: 24px 20px;
	margin-bottom: 16px;
	border: 1px solid rgba(0,0,0,.06);
}

.segment-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: #999;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.segment-intro {
	font-size: 14px;
	color: #555;
	line-height: 1.6;
	margin-bottom: 20px;
}

/* ── Fields ────────────────────────────────────────────────────────────────── */

.field {
	margin-bottom: 20px;
}

.field:last-child {
	margin-bottom: 0;
}

.field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

/* Required indicator via CSS */
.field:has(:required) > label::after {
	content: ' *';
	color: #d02020;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field textarea,
.field select {
	min-height: 44px;
	width: 100%;
	border: 1px solid #ddd;
	background: #fff;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 16px;
	color: #222;
	border-radius: 6px;
	transition: border-color .2s ease;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
	border-color: #008070;
	box-shadow: 0 0 0 2px rgba(0,128,112,.12);
}

.field input::placeholder,
.field textarea::placeholder {
	color: #bbb;
}

.field textarea {
	resize: vertical;
	min-height: 100px;
}

/* ── Validation ────────────────────────────────────────────────────────────── */

.field input:required:not(:placeholder-shown):valid,
.field textarea:required:not(:placeholder-shown):valid,
.field select:required:valid {
	border-color: #008070;
}

.field input:required:not(:placeholder-shown):invalid {
	border-color: #d02020;
}

/* ── Help text ─────────────────────────────────────────────────────────────── */

.help-text {
	display: block;
	font-size: 12px;
	color: #999;
	margin-top: 4px;
	font-style: italic;
}

/* ── Radio groups ──────────────────────────────────────────────────────────── */

.radio-group {
	display: flex;
	gap: 16px;
	margin-top: 4px;
}

.radio-group-three {
	flex-direction: column;
	gap: 8px;
}

.radio-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	cursor: pointer;
	padding: 8px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	transition: all .15s ease;
}

.radio-label:has(input:checked) {
	border-color: #008070;
	background: rgba(0,128,112,.06);
}

.radio-label input[type="radio"] {
	accent-color: #008070;
	width: 16px;
	height: 16px;
}

/* ── Role selection cards ──────────────────────────────────────────────────── */

.role-cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.role-card {
	display: block;
	cursor: pointer;
}

.role-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.role-card-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto;
	align-items: center;
	background: #fff;
	border: 2px solid #ddd;
	border-radius: 10px;
	padding: 16px 20px;
	transition: all .15s ease;
}

.role-card-inner strong {
	display: block;
	font-size: 16px;
	color: #1a1a1a;
	grid-column: 1;
}

.role-card-inner em {
	display: block;
	font-size: 13px;
	font-style: normal;
	color: #888;
	margin-top: 2px;
	grid-column: 1;
}

.role-emoji {
	grid-column: 2;
	grid-row: 1 / 3;
	font-size: 24px;
	line-height: 1;
	margin-left: 12px;
}

.role-card input:checked + .role-card-inner {
	border-color: #008070;
	background: rgba(0,128,112,.04);
	box-shadow: 0 0 0 1px #008070;
}

.role-card:hover .role-card-inner {
	border-color: #aaa;
}

.role-card input:checked + .role-card-inner strong {
	color: #006050;
}

/* ── Activities list (volunteer prefs) ─────────────────────────────────────── */

.activities-list {
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.activity-item {
	padding: 10px 14px;
	background: #f8f8f8;
	border-radius: 6px;
	border-left: 3px solid #008070;
}

.activity-item strong {
	display: block;
	font-size: 14px;
	color: #1a1a1a;
}

.activity-item span {
	display: block;
	font-size: 12px;
	color: #777;
	margin-top: 1px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.step-buttons {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
	gap: 12px;
}

.btn {
	padding: 12px 28px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all .15s ease;
}

.btn:not(.btn-secondary) {
	background: #008070;
	color: #fff;
}

.btn:not(.btn-secondary):hover {
	background: #006b5d;
}

.btn:not(.btn-secondary):active {
	transform: scale(.98);
}

.btn-secondary {
	background: transparent;
	color: #666;
	border: 1px solid #ddd;
}

.btn-secondary:hover {
	border-color: #aaa;
	color: #333;
}

/* ── Thank you ─────────────────────────────────────────────────────────────── */

#thanks {
	animation: fadeInUp .5s ease;
}

.thanks-content {
	text-align: center;
	padding: 40px 20px;
}

.thanks-content h2 {
	font-size: 26px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 10px;
}

.thanks-content p {
	color: #555;
	font-size: 15px;
	margin-bottom: 12px;
	line-height: 1.6;
}

.thanks-hint {
	font-size: 13px;
	color: #999;
	margin-bottom: 28px;
}

.checkmark-circle {
	width: 72px;
	height: 72px;
	margin: 0 auto 24px;
}

.checkmark-circle svg {
	width: 72px;
	height: 72px;
}

.checkmark-circle circle {
	stroke: #008070;
	stroke-width: 2;
	stroke-dasharray: 157;
	stroke-dashoffset: 157;
	animation: circleIn .5s ease forwards;
}

.checkmark-circle path {
	stroke: #008070;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: checkIn .3s .4s ease forwards;
}

@keyframes circleIn { to { stroke-dashoffset: 0; } }
@keyframes checkIn { to { stroke-dashoffset: 0; } }
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

.home-button {
	display: inline-block;
	color: #008070;
	border: 1px solid #008070;
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: all .2s ease;
}

.home-button:hover {
	background: #008070;
	color: #fff;
}

/* ── Footer / Privacy ──────────────────────────────────────────────────────── */

.site-footer {
	max-width: 560px;
	margin: 0 auto;
	padding: 0 16px 40px;
}

.privacy-details {
	border-top: 1px solid #ddd;
	padding-top: 16px;
}

.privacy-details summary {
	font-size: 13px;
	color: #888;
	cursor: pointer;
	list-style: none;
	text-align: center;
}

.privacy-details summary::-webkit-details-marker { display: none; }

.privacy-details summary::before {
	content: '🔒 ';
}

.privacy-details[open] summary {
	margin-bottom: 16px;
	color: #555;
}

.privacy-content {
	background: #fff;
	border-radius: 10px;
	padding: 24px 20px;
	border: 1px solid rgba(0,0,0,.06);
	font-size: 13px;
	color: #555;
	line-height: 1.7;
}

.privacy-content h3 {
	font-size: 15px;
	color: #1a1a1a;
	margin-bottom: 12px;
}

.privacy-content h4 {
	font-size: 13px;
	font-weight: 700;
	color: #333;
	margin-top: 16px;
	margin-bottom: 4px;
}

.privacy-content p {
	margin-bottom: 8px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.site-header {
		padding: 20px 16px;
		gap: 14px;
	}

	.logo {
		width: 56px;
	}

	.header-text h1 {
		font-size: 18px;
	}

	.form-page {
		padding: 20px 12px 32px;
	}

	.segment {
		padding: 20px 16px;
	}

	.radio-group {
		flex-direction: row;
	}

	.radio-group:not(.radio-group-three) .radio-label {
		flex: 1;
		justify-content: center;
	}

	.step-buttons {
		flex-direction: row;
	}

	.btn {
		flex: 1;
	}
}
