main h3 {
	width : 70%;
	margin : auto;
	margin-top : 1em;
	margin-bottom : 1em;
}

/** right part **/

.ride-form-container {
	width: 100%;
}

.ride-form-container h3 {
	margin : 1rem auto;
	width: 95%;
}

.ride-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: start;
}

#ride-form-go {
	background-color: var(--color-review-success-bg);
}

#ride-form-return {
	background-color: var(--color-badge-bg);
}

.ride-form-panel {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: 1rem;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	background-color: var(--color-surface-alt);
}

.ride-form-panel.is-disabled {
	background-color: var(--color-surface-muted);
	border-color: var(--color-border-light);
	opacity: 0.65;
}

.ride-form-panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	height: 2rem;
}

.ride-form-panel-header h4 {
	margin: 0;
}

.ride-form-panel-title h4 {
	margin: 0;
}

.ride-form-panel-title {
	display: flex;
	flex-direction: row;
	gap: 0.3rem;
}

.ride-form-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--color-surface-subtle);
	color: var(--color-text-muted);
	font-size: 0.95rem;
	font-weight: bolder;
}

.ride-form-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--color-text-soft);
}

.ride-form-toggle input {
	margin: 0;
}

.ride-form-fieldset {
	border: 0;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	min-width: 0;
}

.ride-form-address {
	position: relative;
}

.ride-form-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 1.5rem;
}

.ride-form-actions button {
	width: fit-content;
}

#rideForm {
	position : relative;
}

.ride-form-container label {
	display : inline-block;
}

.ride-form-container input,
.ride-form-container textarea,
.ride-form-container button {
	width: 100%;
	padding: 10px;
	margin-bottom: 0;
	border: 1px solid var(--color-border-light);
	border-radius: 5px;
	box-sizing: border-box;
}

.ride-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	width: 100%;
	box-sizing: border-box;
}

.ride-form-field {
	flex: 1;
	min-width: 180px;
	box-sizing: border-box;
}

.ride-form-field input,
.ride-form-field textarea {
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 900px) {
	.ride-form-grid {
		grid-template-columns: 1fr;
	}

	main h3 {
		width: 100%;
		margin: 1rem 0.5rem;
	}

	.container-event-ride {
		width: 100%;
		padding: 0 1rem;
		box-sizing: border-box;
	}

	.event-card-container {
		width: 100%;
		margin: 0;
	}

	.container-event-ride .event-card {
		flex-direction: column;
		align-items: stretch;
		margin: 0.75rem 0;
	}

	.container-event-ride .event-card-image {
		width: 100% !important;
		justify-content: center;
	}

	.container-event-ride .event-card-image img {
		width: 100%;
		max-height: 12rem;
		object-fit: cover;
	}

	.container-event-ride .event-card-data {
		width: 100% !important;
	}

	.ride-form-container {
		width: 100%;
	}

	.ride-form-row {
		flex-direction: column;
	}

	.ride-form-field {
		min-width: 0;
	}

	.ride-form-actions {
		justify-content: stretch;
	}

	.ride-form-actions button {
		width: 100%;
	}
}


#departure_search_results,
#arrival_search_results,
#return_departure_search_results,
#return_arrival_search_results {
	display : none;
	flex-direction : column;
	position : absolute;

	left: 0;
	right: 0;
	top: calc(100% + 4px);
	box-sizing: border-box;

	border : 1px solid var(--color-text-subtle);
	background-color : var(--color-search);

	z-index : 10000;
}
.search_element {
	display : flex;
	flex-direction : row;
	gap : 1rem;
	border : 1px solid var(--color-border);
	padding : 1rem;
	padding-top : 0.5rem;
	padding-bottom : 0.5rem;
	transition : 0.5s background-color;
}
.search_element:hover {
	cursor : pointer;
	background-color : var(--color-search-hover);
}







/* Responsiveness for smaller screens */
@media (max-width: 992px) {
	.container-event-ride {
		width : 100%;
		flex-direction : column;
	}
	.event-card-container {
		max-width : 100%;
	}
}
