.contact-form {
	align-content: center;
	display: flex;
	justify-content: center;
	margin-inline: auto;
}
.contact-form label {
	margin: 1rem 0rem 0.3rem 0rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.container {
	margin: 0 auto;
	padding: 0 1rem;
}

/* form-fields */
/* zie demo bestanden bij de theorie voor meer CSS ;) */
input:not([type="submit"]),
textarea {
	display: block;
	width: 100%;
	max-width: 20rem;
	padding: 0.75em;
	border: 1px solid #666;
	border-radius: 0.3rem;
}

label {
	display: block;
	margin-bottom: 0.2em;
	font-weight: bold;
	overflow: hidden;
}

.message {
	font-size: 0.9rem;
}
.message.error {
	color: #b90e0a;
}

.btn-form {
	width: 20rem;
	transition: all 0.2s ease;
	text-decoration: none;
	background-color: var(--hover-color);
	padding-block: 0.5rem;
	margin-block: 2rem;
	padding-inline: 1.5rem;
	clip-path: polygon(1.25rem 0%, 100% 0, calc(100% - 1.25rem) 100%, 0% 100%);
	color: var(--primary-white-color);
	transition: all 0.3s ease-in-out;
}
.form-btn-div {
	padding-bottom: 6rem;
}

.btn-form:hover {
	background-color: var(--secondary-hover-color);
	color: var(--primary-text-color);
}

.contact-form-checkboxes {
	display: flex;
	flex-direction: column;
	width: 100%;
	h3 {
		margin-block-start: 1rem;
	}
	br {
		display: none;
	}
	label {
		display: flex;
		flex-direction: row-reverse;
		justify-content: space-between;
		align-items: center;

		width: 100%;
		margin-block-end: 1rem;
		gap: 3rem;
		cursor: pointer;
	}
}

.contact-form-checkboxes input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;

	width: 2rem;
	height: 2rem;
	border-radius: 0;
	background-color: #e0e0e0;

	transform: skewX(-20deg);

	display: flex;
	justify-content: center;
	align-items: center;

	cursor: pointer;
	transition: background-color 0.2s ease;
	margin-inline-end: 15rem;
}

.contact-form-checkboxes input[type="checkbox"]:hover {
	background-color: #ccc;
}

.contact-form-checkboxes input[type="checkbox"]:checked {
	background-color: #007bff;
}

.contact-form-checkboxes input[type="checkbox"]::before {
	content: "✕";
	color: white;
	font-size: 1rem;
	font-weight: bold;

	transform: skewX(20deg);

	opacity: 0;
}

.contact-form-checkboxes input[type="checkbox"]:checked::before {
	opacity: 1;
}

@media (min-width: 50em) {
	input:not([type="submit"]),
	textarea {
		display: block;
		width: 100%;
		max-width: 30rem;
		padding: 0.75em;
		border: 1px solid #666;
		border-radius: 0.3rem;
	}
	.btn-form {
		width: 30rem;
		transition: all 0.2s ease;
		text-decoration: none;
		background-color: var(--hover-color);
		padding-block: 0.5rem;
		margin-block: 2rem;
		padding-inline: 1.5rem;
		clip-path: polygon(1.25rem 0%, 100% 0, calc(100% - 1.25rem) 100%, 0% 100%);
		color: var(--primary-white-color);
		transition: all 0.3s ease-in-out;
	}
}