/*
 * EzCar Booking Form - Default Styles
 *
 * Clean, minimal, responsive horizontal layout (inline block-flow).
 * To customize the look, override these selectors from your child theme's CSS,
 * or use the Color pickers in the plugin's admin panel.
 * For an "overlay on hero" look, see style-overlay.css inside this plugin folder.
 */

/* ============ Form container ============ */
#bookingForm {
	display: none; /* hidden until JS fades it in */
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	padding: 20px;
	margin: 20px 0;
	color: #333333;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	box-sizing: border-box;
}

#bookingForm *,
#bookingForm *::before,
#bookingForm *::after {
	box-sizing: border-box;
}

/* ============ Row layout (flexbox over Bootstrap columns) ============ */
#bookingForm .search-inner {
	width: 100%;
}

#bookingForm .search-row {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: flex-end;
	margin: 0;
}

#bookingForm .search-row > [class*="col-"] {
	flex: 1 1 140px;
	padding: 0;
	margin: 0;
	min-width: 0;
	max-width: 100%;
}

/* ============ Labels ============ */
#bookingForm label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #555555;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.4;
}

/* ============ Form controls ============ */
#bookingForm .form-control,
#bookingForm input[type="text"],
#bookingForm input[type="number"] {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #dddddd;
	border-radius: 6px;
	background: #ffffff;
	font-size: 14px;
	color: #333333;
	transition: border-color 0.2s, box-shadow 0.2s;
}

#bookingForm .form-control:focus,
#bookingForm input[type="text"]:focus,
#bookingForm input[type="number"]:focus {
	outline: none;
	border-color: #007cba;
	box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.15);
}

#bookingForm .form-group {
	margin: 0;
}

/* ============ Bootstrap-select overrides ============ */
#bookingForm .bootstrap-select {
	width: 100% !important;
}

#bookingForm .bootstrap-select > .btn {
	height: 44px;
	padding: 0 12px;
	border: 1px solid #dddddd;
	border-radius: 6px;
	background: #ffffff;
	color: #333333;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: none;
}

#bookingForm .bootstrap-select > .btn:hover,
#bookingForm .bootstrap-select > .btn:focus,
#bookingForm .bootstrap-select.open > .btn {
	border-color: #007cba;
	box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.15);
	outline: none;
}

#bookingForm .bootstrap-select .filter-option {
	color: #333333;
}

/* ============ Submit button ============ */
#bookingForm #formSearchSubmit,
#bookingForm .btn-submit {
	width: 100%;
	height: 44px;
	padding: 0 20px;
	background: #007cba;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.05s;
	box-shadow: none;
}

#bookingForm #formSearchSubmit:hover,
#bookingForm .btn-submit:hover {
	background: #005a8a;
	color: #ffffff;
}

#bookingForm #formSearchSubmit:active,
#bookingForm .btn-submit:active {
	transform: translateY(1px);
}

/* ============ Flatpickr accents ============ */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected.startRange,
.flatpickr-day.selected.endRange {
	background: #007cba;
	border-color: #007cba;
}

/* ============ Responsive: mobile stacking ============ */
@media (max-width: 768px) {
	#bookingForm .search-row > [class*="col-"] {
		flex: 1 1 100%;
	}
	#bookingForm {
		padding: 15px;
	}
}
