/* Main containers */

.huren_wrapper {
	padding: 0 0 40px 0;
}

.zaal_huren {
	display: grid;
	grid-template-columns: 1fr 200px;
	gap: 30px;
	width: 96%;
	max-width: 1600px;
	margin: 0 auto;
}

.legend {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.legend h2 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--color-primary);
}

.legend__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.legend__item {
	display: flex;
	align-items: center;
	font-size: 18px;
	color: #333;
}

.legend__color {
	display: inline-block;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	margin-right: 0.5rem;
	border: 1px solid #ccc;
}

.legend__color.available {
	background-color: #4CAF50;
}

.legend__color.pending {
	background-color: #FF9800;
}

.legend__color.booked {
	background-color: #F44336;
}

.legend__color.blocked {
	background-color: #d7d7d7;
}

@media screen and (max-width: 800px) {
	.legend {
		order: 1;
	}
	.zaal_huren {
		grid-template-columns: 1fr;
	}
}

/* Calendar styling */
.status-free {
	cursor: pointer;
}

.fc-day-past {
	background-color: transparent !important;
	pointer-events: none !important;
}

.fc .fc-daygrid-day.fc-day-today {
	background-color: transparent !important;
}

.fc .fc-daygrid-day-bg .fc-bg-event {
	z-index: 1;
}

@media screen and (max-width: 400px) {
	.fc .fc-toolbar {
		flex-direction: column;
		gap: 10px;
	}
}

/* Form styling */

.snazzy-form {
	max-width: 800px;
	margin: 2rem auto;
	padding: 2rem;
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	font-family: sans-serif;
}

.snazzy-form h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	color: #333;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.form-errors {
	background-color: #fdecea;
	border: 1px solid #f5c6cb;
	color: #611a15;
	padding: 1rem;
	border-radius: 0.25rem;
	margin-bottom: 1rem;
}

.form-errors ul {
	list-style-type: disc;
	margin: 0;
	padding-left: 1.25rem;
}

.form-errors li {
	margin-bottom: 0.5rem;
	line-height: 125%;
}


.snazzy-form fieldset {
	border: none;
	margin: 1.5rem 0;
}

.snazzy-form legend {
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: 1rem;
	color: #555;
}

.form-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.3rem;
}

.form-group {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.form-group label {
	font-size: 0.9rem;
	color: #444;
}

.form-group:not(.checkbox-group) label {
	margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 0.25rem;
	font-size: 1rem;
}

.checkbox-group {
	flex-direction: row;
	align-items: center;
	padding: 10px 0;
}

.checkbox-group a {
	font-weight: bold;
	color: var(--color-primary);
}

.checkbox-group input {
	margin-right: 0.8rem;
	width: auto;
}

.checkbox-group label i {
	margin-right: 0.2em;
}

.form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.btn-primary {
	background-color: var(--color-highlight);
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	border-radius: 0.25rem;
	cursor: pointer;
	display: flex;
	gap: 10px;
	align-items: center;
}

.btn-primary:hover {
	background-color: var(--color-highlighter);
}

.btn-text {
	background: none;
	border: none;
	color: #555;
	font-size: 1rem;
	cursor: pointer;
}

#privacy-error {
	display: none;
	color: #c00;
	margin-bottom: 1rem;
	text-align: right;
	width: 100%;
}

@media (max-width: 600px) {
	.form-row {
		flex-direction: column;
	}

	.snazzy-form {
		padding: 1rem;
		margin: 1rem;
	}
}