/*
 * Custom Car Rental Form - Styles
 *
 * Clean, minimal, responsive horizontal layout (inline block-flow).
 * Colors can be customized from the plugin's admin panel (Styles section).
 */

/* ============ 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;
}

/* ============ Hide spacer hr elements (legacy from old template) ============ */
#bookingForm hr,
#bookingForm .hr-1,
#bookingForm .hr-2,
#bookingForm .hr-3,
#bookingForm .hr-4 {
	display: none;
}

/* ============ 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 (text/number inputs) ============ */
#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;
	box-sizing: border-box;
}

/* ============ Native select with custom dropdown arrow ============ */
#bookingForm select.form-control {
	padding-right: 32px;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%23555' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 10px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}

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

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

#bookingForm .time-input {
	width: 100%;
}

/* ============ Submit button ============ */
#bookingForm #formSearchSubmit,
#bookingForm .btn-submit,
#bookingForm .custom-button {
	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,
#bookingForm .custom-button:hover {
	background: #005a8a;
	color: #ffffff;
}

#bookingForm #formSearchSubmit:active,
#bookingForm .btn-submit:active,
#bookingForm .custom-button: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;
	}
}
