/* 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;
}

.zaal_huren.inactive {
	display: none;
}

.legend {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.legend h2 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	color: var(--clr-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;
}

#selection-panel {
	max-width: 600px;
	margin: 2rem auto;
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 1rem;
	align-items: end;
}

#selection-panel fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

#selection-panel select {
	width: 100%;
	padding: 0.5rem;
	border-radius: 0.25rem;
	border: 1px solid #ccc;
}

#load-calendar {
	white-space: nowrap;
}

.current-selection {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0;
	background: #f5f5f5;
	border-radius: 0.25rem;
	cursor: pointer;
	height: 38.8px;
}

#selected-label {
	font-weight: bold;
}

@media screen and (max-width: 800px) {
	.legend {
		order: 1;
	}

	.zaal_huren {
		grid-template-columns: 1fr;
	}
}

/* Calendar styling */
.status-blocked {
	pointer-events: none;
}

.status-free {
	cursor: pointer;
}

.status-pending, .status-full {
	cursor: not-allowed;
}

.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;
}

.fc .fc-daygrid-day-events {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.fc .fc-event {
	padding: 0.5rem;
	border: 0;
}

.fc .fc-event.status-blocked .fc-event-main {
	color: #333;
}

@media screen and (max-width: 400px) {
	.fc .fc-toolbar {
		flex-direction: column;
		gap: 10px;
	}
}

/* Financial overview */

.price-overview {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1rem;
	width: fit-content;
	max-width: 100%;
	margin: 1rem 0;
	font-family: sans-serif;
}

.overview-row {
	display: contents;
	/* allows grid cells to align without extra wrappers */
}

dt, dd {
	margin: 0;
	padding: 0.25rem 0;
}

dt {
	font-weight: bold;
	text-align: right;
}

dd {
	text-align: right;
}

.price-overview .total dt,
.price-overview .total dd {
	font-size: 1.1rem;
}

/* Responsive: full width on small screens */
@media (max-width: 500px) {
	.price-overview {
		grid-template-columns: 1fr;
	}
}


/* 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;
	gap: 5px;
}

.form-group label {
	font-size: 0.9rem;
	color: #444;
}

.form-group small {
	font-size: 0.8rem;
	color: #888;
}

.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;
}

.form-group select {
	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(--clr-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(--clr-primary-lt);
	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(--clr-primary-ltr);
}

.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;
	}
}