/* Europcar search form — homepage design */

.ecf-form-wrapper {
	max-width: 100%;
	margin: 0 auto;
	*{
		font-family: "Montserrat", sans-serif;
	}
}

#ecf-dropoff-location-wrap{
	margin-bottom: 12px;
}

.ecf-form {
	background: rgba(20, 71, 51, 0.96);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	color: #fff;
	overflow: visible;
	max-width: 560px;
}

/* Header */
.ecf-form__header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 30px 30px 0;
}

.ecf-form__header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid #fff;
	background: transparent;
	color: #fff;
}

.ecf-form__header-icon img {
	display: block;
	width: 1.25rem;
	height: auto;
	width: 14px;
    height: 12px;
}

.ecf-form__header-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.ecf-form__header-subtitle {
	margin: 0 0 0;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.85);
}

.ecf-form__body {
	padding: 20px 30px 30px;
}

/* Vehicle type & driver age row */
.ecf-options-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.ecf-vehicle-type {
	flex: 1;
	min-width: 0;
}

.ecf-vehicle-type__label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 0.5rem;
}

.ecf-vehicle-switch {
	display: flex;
	flex-flow: row wrap;
	gap: 0.25rem;
	background: #fff;
	border-radius: 10px;
	width: fit-content;
}

.ecf-vehicle-switch__btn {
	flex: 0 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 15px;
	border: none;
	background: transparent;
	color: #1a1a1a;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	border-radius: 10px 0 0 10px;
	transition: background 0.15s ease, color 0.15s ease;
}

.ecf-vehicle-switch__btn:last-child {
	border-radius: 0 10px 10px 0;
}

.ecf-vehicle-switch__btn.is-active {
	background: #00a651;
	color: #fff;
}

.ecf-vehicle-switch__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ecf-vehicle-switch__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
}

.ecf-vehicle-switch__icon img {
	display: block;
	width: auto;
	height: 1.25rem;
	max-width: 3rem;
	object-fit: contain;
	transition: filter 0.15s ease;
}

.ecf-vehicle-switch__btn:not(.is-active) .ecf-vehicle-switch__icon img {
	/* filter: brightness(0); */
}

.ecf-vehicle-switch__btn.is-active .ecf-vehicle-switch__icon img {
	/* //filter: brightness(0) invert(1); */
}

.ecf-vehicle-switch__text {
	white-space: nowrap;
	position: relative;
	top: 1px;
}

.ecf-driver-age {
	flex-shrink: 0;
	padding-bottom: 14px;
}

.ecf-driver-age__label {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	margin: 0;
	cursor: pointer;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	white-space: nowrap;
}

.ecf-driver-age__prefix {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
}

.ecf-driver-age__field {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ecf-driver-age__select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: none;
	background: transparent;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	padding: 0 1.125rem 0 0;
	margin: 0;
	cursor: pointer;
}

.ecf-driver-age__select:focus {
	outline: none;
}

.ecf-driver-age__select:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
	border-radius: 2px;
}

.ecf-driver-age__select option {
	color: #1a1a1a;
}

.ecf-driver-age__icon {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	color: #FFF;
	pointer-events: none;
}

/* Checkbox */
.ecf-checkbox {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
	margin: 0.75rem 0 1rem;
}

.ecf-checkbox input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	cursor: pointer;
	flex-shrink: 0;
	border: 2px solid #7ab800;
	border-radius: 3px;
	background: transparent;
	position: relative;
}

.ecf-checkbox input[type="checkbox"]:checked {
	background: #7ab800;
	border-color: #7ab800;
}

.ecf-checkbox input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 42%;
	width: 0.3rem;
	height: 0.55rem;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -50%) rotate(45deg);
}

.ecf-checkbox input[type="checkbox"]:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.ecf-checkbox label {
	font-size: 11px;
	font-weight: 400;
	color: #fff;
	cursor: pointer;
	margin: 0;
}

/* Date/time grid */
.ecf-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

/* Input blocks */
.ecf-input {
	display: block;
}

.ecf-input--hidden {
	display: none !important;
}

.ecf-input__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.2;
	color: #6b7280;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.ecf-input__field {
	position: relative;
	display: flex;
	align-items: stretch;
	background: #fff;
	border-radius: 8px;
	border: 1px solid transparent;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	min-height: 3.25rem;
}

.ecf-input__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 16px 30px 16px 0;
}

.ecf-input__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	align-self: center;
	pointer-events: none;
}

.ecf-input__icon--start {
	padding-left: 0.875rem;
	padding-right: 0.5rem;
}

.ecf-input__icon-img {
	display: block;
	width: 1.125rem;
	height: auto;
	max-height: 1.375rem;
	object-fit: contain;
}

.ecf-input__icon--end {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	padding: 0;
}

.ecf-input__field:focus-within {
	border-color: #00843d;
	box-shadow: 0 0 0 2px rgba(0, 132, 61, 0.2);
}

.ecf-input__control {
	width: 100%;
	border: none;
	background: transparent;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	color: #1a1a1a;
	padding: 0;
	margin: 0;
	min-height: 1.25rem;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border-radius: 0;
}

.ecf-input--location .ecf-input__content {
	position: static;
	min-height: auto;
	padding: 0.85rem 2.5rem 0.75rem 0;
	justify-content: center;
	gap: 0.125rem;
}

.ecf-input--location .ecf-input__label {
	pointer-events: none;
}

.ecf-input--location .ecf-location-search__input {
	padding: 0;
	font-weight: 600;
	cursor: pointer;
}

.ecf-input--location .ecf-input__field,
.ecf-location-search__field {
	min-height: 3.25rem;
}

.ecf-location-trigger {
	cursor: pointer;
}

/* Location search combobox */
.ecf-location-search {
	position: relative;
	z-index: 20;
}

.ecf-location-search.is-open {
	z-index: 50;
}

.ecf-location-search__clear {
	position: absolute;
	right: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: none;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
	border-radius: 4px;
	z-index: 2;
}

.ecf-location-search__clear:hover {
	color: #1a1a1a;
	background: #f3f4f6;
}

.ecf-location-search__dropdown {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	max-height: 280px;
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	border: 1px solid #e5e7eb;
	z-index: 100;
}

.ecf-location-search__group-label {
	padding: 0.625rem 1rem 0.375rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #6b7280;
	text-transform: uppercase;
}

.ecf-location-search__option {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	width: 100%;
	padding: 0.75rem 1rem;
	border: none;
	background: #fff;
	color: #1a1a1a;
	font-size: 0.9375rem;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	border-top: 1px solid #f3f4f6;
}

.ecf-location-search__option:first-of-type {
	border-top: none;
}

.ecf-location-search__option:hover,
.ecf-location-search__option.is-active {
	background: #f0faf4;
}

.ecf-location-search__option-icon {
	display: flex;
	color: #00843d;
	flex-shrink: 0;
}

.ecf-location-search__option-text {
	flex: 1;
	min-width: 0;
}

.ecf-location-search__empty {
	padding: 1rem;
	font-size: 0.875rem;
	color: #6b7280;
	text-align: center;
}

.ecf-location-search.is-open .ecf-location-search__field {
	border-color: #00843d;
	box-shadow: 0 0 0 2px rgba(0, 132, 61, 0.2);
}

.ecf-location-search.is-invalid .ecf-location-search__field {
	border-color: #dc2626;
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.ecf-location-search.is-invalid .ecf-input__icon--start {
	opacity: 0.7;
}

.ecf-location-search__error {
	margin: 0.375rem 0 0;
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
	color: #fca5a5;
}

.ecf-location-search__hint {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	width: 100%;
	padding: 0.75rem 1rem;
	border: none;
	background: #fafafa;
	color: #9ca3af;
	font-size: 0.875rem;
	font-weight: 500;
	text-align: left;
	cursor: not-allowed;
	border-top: 1px solid #f3f4f6;
	pointer-events: none;
}

.ecf-input--date .ecf-input__content,
.ecf-input--time .ecf-input__content {
	position: static;
	min-height: auto;
	padding: 0.85rem 0.75rem 0.75rem 0;
	justify-content: center;
	gap: 0.125rem;
}

.ecf-input--date .ecf-input__label,
.ecf-input--time .ecf-input__label {
	pointer-events: none;
}

.ecf-input--date .ecf-input__control,
.ecf-input--time .ecf-input__control {
	cursor: pointer;
	position: static;
	inset: auto;
	width: 100%;
	padding: 0;
	margin: 0;
	min-height: 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	color: #1a1a1a;
	background: transparent;
	background-image: none;
	z-index: auto;
}

.ecf-location-search__input::placeholder {
	color: #1a1a1a;
	font-weight: 600;
	font-size: 0.9375rem;
	opacity: 1;
}

.ecf-input--date .ecf-input__control::placeholder,
.ecf-input--date .ecf-date-input--alt::placeholder {
	color: #1a1a1a;
	font-weight: 500;
	font-size: 0.9375rem;
	opacity: 1;
}

.ecf-input__control:focus {
	outline: none;
}

.ecf-input__control:disabled,
.ecf-input__control option:disabled {
	color: #bbb;
}

/* Datepicker */
.ecf-date-trigger,
.ecf-time-trigger {
	cursor: pointer;
}

.ecf-date-trigger__btn {
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	pointer-events: auto;
}

.ecf-input--date .ecf-input__field input.ecf-date-input--alt,
.ecf-input--date .ecf-input__content .ecf-date-input--alt {
	position: static;
	inset: auto;
	padding: 0;
	min-height: 1.25rem;
	cursor: pointer;
	width: 100%;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.25;
	color: #1a1a1a;
	border: none;
	background: transparent;
	z-index: auto;
}

.ecf-input--date .ecf-input__field > input.ecf-date-input[readonly]:not(.ecf-date-input--alt) {
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	pointer-events: none !important;
}

/* Submit */
.ecf-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	margin: 0;
	padding: 0.9rem 1.5rem;
	background: #FFD100;
	color: #1a1a1a;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ecf-submit::after {
	content: '';
	display: block;
	flex-shrink: 0;
	width: 1.0625rem;
	height: 1.0625rem;
	background-image: var(--ecf-submit-icon-url);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.ecf-submit:hover {
	background: #e6bc00;
}

.ecf-submit:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Footer & errors */
.ecf-form__footer {
	margin: 0.875rem 0 0;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
}

.ecf-form__error {
	color: #ffb4b4;
	font-size: 0.8125rem;
	margin: 0.75rem 0 0;
	text-align: center;
}

/* Flatpickr calendar theming */
.flatpickr-calendar {
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	z-index: 99999 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
	background: #00843d;
	border-color: #00843d;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
	background: #006b31;
	border-color: #006b31;
}

/* Compact mode (mobile / tablet) */
@media (max-width: 1024px) {
	.ecf-form.is-compact:not(.is-expanded) .ecf-form__details {
		display: none;
	}

	.ecf-form.is-compact:not(.is-expanded) .ecf-form__header-subtitle {
		display: none;
	}

	.ecf-form.is-compact .ecf-submit--continue {
		display: flex;
		margin-top: 0.75rem;
	}

	.ecf-form.is-compact.is-expanded .ecf-submit--continue {
		display: none;
	}

	.ecf-form.is-compact .ecf-form__details {
		margin-top: 0.75rem;
	}

	.ecf-form.is-compact.is-expanded .ecf-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1025px) {
	.ecf-submit--continue {
		display: none !important;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.ecf-form__header {
		padding: 1rem 1rem 0;
	}

	.ecf-form__body {
		padding: 0.875rem 1rem 1rem;
	}

	.ecf-options-row {
		flex-direction: column;
		align-items: stretch;
		gap: 0.875rem;
	}

	.ecf-driver-age {
		padding-bottom: 0;
	}

	.ecf-vehicle-switch__text {
		white-space: normal;
		text-align: left;
		position: relative;
		top: 1px;
	}

	.ecf-grid {
		grid-template-columns: 1fr;
	}
}
