
:root {
	--pkmgmt-primary: #036faf;
	--pkmgmt-primary-dark: #025683;
	--pkmgmt-primary-light: #e8f3fa;
	--pkmgmt-text: #1a1f29;
	--pkmgmt-text-muted: #6b7280;
	--pkmgmt-border: #e2e6ea;
	--pkmgmt-bg-subtle: #f7f9fb;
	--pkmgmt-radius: 14px;
	--pkmgmt-radius-sm: 10px;
	--pkmgmt-shadow: 0 2px 10px rgba(3, 111, 175, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
	--pkmgmt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Bootstrap's .container-md (booking.php's wrapper around the whole wizard) caps
 * out at 720-1320px depending on breakpoint, which reads cramped once the 3-step
 * layout has room to breathe on a real desktop screen. Widen it from lg (992px)
 * up only - .home-form keeps Bootstrap's untouched default, this targets the
 * booking wizard's wrapper specifically via its sibling `.form` class.
 * !important: block themes (e.g. Twenty Twenty-Five) also cap this element via
 * `.is-layout-constrained > :where(...) { max-width: var(--wp--style--global--
 * content-size) }` - our class selector already outranks that :where()-based one
 * on specificity, but !important removes any doubt regardless of theme/markup. */
@media (min-width: 992px) {
	.form.container-md {
		max-width: 900px !important;
	}
}

@media (min-width: 1200px) {
	.form.container-md {
		max-width: 1040px !important;
	}
}

.title {
	line-height: 1.3 !important;
	font-family: var(--pkmgmt-font);
	color: var(--pkmgmt-primary) !important;
	font-weight: 700 !important;
	font-size: 1.5em !important;
	letter-spacing: -.01em;
	margin-bottom: 15px;
	margin-top: 15px;
	border-bottom: none;
}

form#reservation {
	font-family: var(--pkmgmt-font);
}

form#reservation legend {
	width: auto;
	float: none;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--pkmgmt-text);
	padding: 0 0 0 .75rem;
	margin-bottom: 1.1rem;
	line-height: inherit;
	position: initial;
	border-left: 4px solid var(--pkmgmt-primary);
}

form#reservation div fieldset {
	background: #fff;
	padding: 20px;
	border-radius: var(--pkmgmt-radius);
	border: 1px solid var(--pkmgmt-border);
	box-shadow: var(--pkmgmt-shadow);
	margin: 16px 0;
	width: 100% !important;
}

form#reservation div fieldset div div label {
	line-height: 30px;
}

form#reservation input#marque, form#reservation input#ville, form#reservation input#pays, form#reservation input#destination_id {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: -1;
}
/*
** number intl
 */

form#reservation .iti {
	position: relative;
	display: inline-block;
}

form#reservation .iti * {
	box-sizing: border-box;
}

form#reservation .iti__hide {
	display: none;
}
form#reservation .iti__v-hide {
	visibility: hidden;
}
form#reservation .iti__a11y-text {
	width: 1px;
	height: 1px;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	position: absolute;
}
form#reservation .iti input.iti__tel-input,
form#reservation .iti input.iti__tel-input[type=text],
form#reservation .iti input.iti__tel-input[type=tel] {
	position: relative;
	z-index: 0;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-right: var(--iti-right-hand-selected-country-padding);
	margin-right: 0;
}
form#reservation .iti__country-container {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	padding: var(--iti-border-width);
}
form#reservation .iti__selected-country {
	z-index: 1;
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	background: none;
	border: 0;
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	border-radius: 0;
	font-weight: inherit;
	line-height: inherit;
	text-decoration: none;
}
form#reservation .iti__selected-country-primary {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 var(--iti-arrow-padding) 0 var(--iti-spacer-horizontal);
}
form#reservation .iti__arrow {
	margin-left: var(--iti-arrow-padding);
	width: 0;
	height: 0;
	border-left: var(--iti-triangle-border) solid transparent;
	border-right: var(--iti-triangle-border) solid transparent;
	border-top: var(--iti-arrow-height) solid var(--iti-arrow-color);
}
[dir=rtl] .iti__arrow {
	margin-right: var(--iti-arrow-padding);
	margin-left: 0;
}
form#reservation .iti__arrow--up {
	border-top: none;
	border-bottom: var(--iti-arrow-height) solid var(--iti-arrow-color);
}
form#reservation .iti__dropdown-content {
	border-radius: 3px;
	background-color: white;
}
.iti--inline-dropdown .iti__dropdown-content {
	position: absolute;
	z-index: 2;
	margin-top: 3px;
	margin-left: calc(var(--iti-border-width) * -1);
	border: var(--iti-border-width) solid var(--iti-border-gray);
	box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}
form#reservation .iti__search-input {
	width: 100%;
	border-width: 0;
	border-radius: 3px;
	padding: 9px 12px;
}
.iti__search-input + .iti__country-list {
	border-top: 1px solid var(--iti-border-gray);
}
form#reservation .iti__country-list {
	list-style: none;
	padding: 0;
	margin: 0;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
}
.iti--inline-dropdown .iti__country-list {
	max-height: 185px;
}
.iti--flexible-dropdown-width .iti__country-list {
	white-space: nowrap;
}
@media (max-width: 500px) {
	.iti--flexible-dropdown-width .iti__country-list {
		white-space: normal;
	}
}
form#reservation .iti__flag-box {
	display: inline-block;
	width: var(--iti-flag-width);
}
form#reservation .iti__country {
	display: flex;
	align-items: center;
	padding: 8px var(--iti-spacer-horizontal);
	outline: none;
}
.iti__dial-code {
	color: var(--iti-text-gray);
}
.iti__country.iti__highlight {
	background-color: var(--iti-hover-color);
}
.iti__flag-box, .iti__country-name {
	margin-right: var(--iti-spacer-horizontal);
}
[dir=rtl] .iti__flag-box, [dir=rtl] .iti__country-name {
	margin-right: 0;
	margin-left: var(--iti-spacer-horizontal);
}
.iti--allow-dropdown input.iti__tel-input,
.iti--allow-dropdown input.iti__tel-input[type=text],
.iti--allow-dropdown input.iti__tel-input[type=tel] {
	padding-right: var(--iti-input-padding);
	padding-left: var(--iti-selected-country-arrow-padding);
	margin-left: 0;
}
[dir=rtl] .iti--allow-dropdown input.iti__tel-input,
[dir=rtl] .iti--allow-dropdown input.iti__tel-input[type=text],
[dir=rtl] .iti--allow-dropdown input.iti__tel-input[type=tel] {
	padding-right: var(--iti-selected-country-arrow-padding);
	padding-left: var(--iti-input-padding);
	margin-right: 0;
}
.iti--allow-dropdown .iti__country-container {
	right: auto;
	left: 0;
}
[dir=rtl] .iti--allow-dropdown .iti__country-container {
	right: 0;
	left: auto;
}
.iti--allow-dropdown .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly])):hover, .iti--allow-dropdown .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly])):hover button {
	cursor: pointer;
}
.iti--allow-dropdown .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly])) .iti__selected-country-primary:hover,
.iti--allow-dropdown .iti__country-container:not(:has(+ input[disabled])):not(:has(+ input[readonly])) .iti__selected-country:has(+ .iti__dropdown-content:hover) .iti__selected-country-primary {
	background-color: var(--iti-hover-color);
}
.iti .iti__selected-dial-code {
	margin-left: 4px;
}
[dir=rtl] .iti .iti__selected-dial-code {
	margin-left: 0;
	margin-right: 4px;
}
.iti--container {
	position: fixed;
	top: -1000px;
	left: -1000px;
	z-index: 1060;
	padding: var(--iti-border-width);
}
.iti--container:hover {
	cursor: pointer;
}

.iti--fullscreen-popup.iti--container {
	background-color: rgba(0, 0, 0, 0.5);
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	position: fixed;
	padding: var(--iti-mobile-popup-margin);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.iti--fullscreen-popup .iti__dropdown-content {
	display: flex;
	flex-direction: column;
	max-height: 100%;
	position: relative;
}
.iti--fullscreen-popup .iti__country {
	padding: 10px 10px;
	line-height: 1.5em;
}

.iti__flag {
	--iti-flag-offset: 0px;
	--iti-flag-width: 20px;
	--iti-flag-height: 14px;
	height: var(--iti-flag-height);
	width: var(--iti-flag-width);
	box-shadow: 0px 0px 1px 0px #888;
	background-image: var(--iti-path-flags-1x);
	background-repeat: no-repeat;
	background-position: var(--iti-flag-offset) 0;
	background-size: var(--iti-flag-sprite-width) var(--iti-flag-sprite-height);
}

.iti__globe {
	background-image: var(--iti-path-globe-1x);
	background-size: contain;
	background-position: right;
	box-shadow: none;
	height: 19px;
}

@media (min-resolution: 2x) {
	.iti__flag {
		background-image: var(--iti-path-flags-2x);
	}
	.iti__globe {
		background-image: var(--iti-path-globe-2x);
	}
}


/*
** car type / parking type pills
*/

form#reservation div.type-id {
	display: flex;
	gap: 10px;
	overflow: hidden;
	flex-wrap: wrap;
}

form#reservation div.type-id div.radio {
	text-align: center;
}

form#reservation div.radio input[type=radio] {
	position: absolute;
	display: none;
}

/* .radio wrappers carry Bootstrap's d-flex utility class, which is `display: flex
 * !important` - a plain inline `style="display:none"` (what jQuery's .hide()/.toggle()
 * sets) can never beat that. This class is deliberately scoped + !important so it wins
 * over .d-flex regardless of stylesheet load order; form.js toggles it instead of relying
 * on jQuery's show()/hide()/toggle() for these elements. */
form#reservation div.radio.pkmgmt-hidden {
	display: none !important;
}

/* Same "beat Bootstrap's !important" rationale as .pkmgmt-hidden above - a step's
 * fieldset may itself use d-flex/d-grid utilities internally, so this hide rule is
 * scoped + !important rather than relying on a plain inline display:none. */
form#reservation fieldset.pkmgmt-step.pkmgmt-step-hidden {
	display: none !important;
}

/* --- Step wizard progress indicator + nav (mobile-first: base styles target narrow
 * screens, layered min-width queries add detail on larger ones - unlike the max-width
 * retrofits further down this file, this block is written mobile-first from the start).
 *
 * "Booking steps" design: connected numbered-circle stepper (vs. the earlier
 * underline-tabs look) - each step is a circle on a horizontal connecting line;
 * the active circle is filled solid, a completed circle (form.js toggles
 * .pkmgmt-progress-step-done once its step is passed) gets a checkmark and a
 * tinted line segment leading into it, so progress reads at a glance. */
.pkmgmt-progress {
	margin: 0 0 1.5rem;
}
.pkmgmt-progress ul {
	list-style: none;
	display: flex;
	padding: 0;
	margin: 0;
}
.pkmgmt-progress-step {
	position: relative;
	flex: 1 1 0;
	text-align: center;
	color: var(--pkmgmt-text-muted);
}
.pkmgmt-progress-step::before {
	content: '';
	position: absolute;
	top: 15px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: var(--pkmgmt-border);
	z-index: 0;
}
.pkmgmt-progress-step:first-child::before {
	content: none;
}
.pkmgmt-progress-number {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--pkmgmt-border);
	color: var(--pkmgmt-text-muted);
	font-size: .8rem;
	font-weight: 700;
	line-height: 1;
}
.pkmgmt-progress-label {
	display: none;
	margin-top: .4rem;
	font-size: .7rem;
}
.pkmgmt-progress-step[aria-current="step"] {
	color: var(--pkmgmt-primary);
	font-weight: 700;
}
.pkmgmt-progress-step[aria-current="step"] .pkmgmt-progress-number {
	border-color: var(--pkmgmt-primary);
	background: var(--pkmgmt-primary);
	color: #fff;
	box-shadow: 0 0 0 4px var(--pkmgmt-primary-light);
}
.pkmgmt-progress-step.pkmgmt-progress-step-done {
	color: var(--pkmgmt-primary);
}
.pkmgmt-progress-step.pkmgmt-progress-step-done::before {
	background: var(--pkmgmt-primary);
}
.pkmgmt-progress-step.pkmgmt-progress-step-done .pkmgmt-progress-number {
	border-color: var(--pkmgmt-primary);
	background: var(--pkmgmt-primary-light);
	color: var(--pkmgmt-primary);
	font-size: 0;
}
.pkmgmt-progress-step.pkmgmt-progress-step-done .pkmgmt-progress-number::after {
	content: '\2713';
	font-size: .85rem;
}

@media (min-width: 576px) {
	.pkmgmt-progress-label {
		display: block;
	}
}
@media (min-width: 768px) {
	.pkmgmt-progress-number {
		width: 34px;
		height: 34px;
		font-size: .9rem;
	}
	.pkmgmt-progress-step::before {
		top: 17px;
	}
	.pkmgmt-progress-label {
		font-size: .8rem;
	}
}

.pkmgmt-step-actions {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-top: 1.25rem;
}
.pkmgmt-step-actions .btn {
	width: 100%;
}

@media (min-width: 576px) {
	.pkmgmt-step-actions {
		flex-direction: row;
		justify-content: space-between;
	}
	.pkmgmt-step-actions .btn {
		width: auto;
	}
}

form#reservation div.type-id label:hover {
	cursor: pointer;
}


form#reservation div.type-id div label {
	padding: 12px 24px;
	margin-bottom: 10px;
	margin-top: 10px;
	line-height: normal;
	display: flex;
	align-items: center;
	border: 1px solid var(--pkmgmt-border);
	border-radius: 999px;
	background: var(--pkmgmt-bg-subtle);
	color: var(--pkmgmt-text);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

form#reservation div.type-id div label:hover {
	border-color: var(--pkmgmt-primary);
}

/*
** input
 */

/* Excludes checkbox/radio: unscoped, this id-selector rule outranks Bootstrap's
 * .form-check-input class rule and forces every checkbox (keep_keys/ev_charging/
 * cancellation_insurance) into a 46px-tall, pill-radius box instead of its normal
 * 1em square - radios are already hidden via display:none so they're unaffected
 * either way, but excluding them here too keeps this rule's intent explicit. */
form#reservation input:not([type="checkbox"]):not([type="radio"]) {
	height: 46px;
	border-radius: var(--pkmgmt-radius-sm);
}

form#reservation input:focus,
form#reservation select.form-select:focus {
	border-color: var(--pkmgmt-primary);
	box-shadow: 0 0 0 .2rem var(--pkmgmt-primary-light);
}

/*
** select
 */

form#reservation select.form-select {
	--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
	display: block;
	width: 100%;
	padding: .375rem 2.25rem .375rem .75rem;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--bs-body-color);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: var(--bs-body-bg);
	background-image: var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);
	background-repeat: no-repeat;
	background-position: right .75rem center;
	background-size: 16px 12px;
	border: var(--bs-border-width) solid var(--bs-border-color);
	border-radius: var(--pkmgmt-radius-sm);
	transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	height: 46px;
}

/*
** radio
 */

form#reservation input[type=radio]:checked + label {
	color: #fff;
	background-color: var(--pkmgmt-primary);
	border-color: var(--pkmgmt-primary);
	border-radius: 999px;
	box-shadow: 0 4px 10px rgba(3, 111, 175, 0.25);
}

/*
** CGV
 */

form#reservation div.cgv {
	margin: 20px 0;
}

form#reservation div.cgv label {
	font-size: smaller;
	padding-left: 1.75em;
}

/*
** primary call-to-action buttons
 */

form#reservation .btn-primary,
#confirmation .btn-primary {
	background-color: var(--pkmgmt-primary);
	border-color: var(--pkmgmt-primary);
	border-radius: var(--pkmgmt-radius-sm);
	font-weight: 600;
	padding: .75rem 1.5rem;
	transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

form#reservation .btn-primary:hover:not(:disabled),
#confirmation .btn-primary:hover {
	background-color: var(--pkmgmt-primary-dark);
	border-color: var(--pkmgmt-primary-dark);
	box-shadow: 0 6px 14px rgba(3, 111, 175, 0.25);
	transform: translateY(-1px);
}

form#reservation .btn-primary:disabled {
	opacity: .5;
}

/*
** Total
 */

form#reservation .total {
	color: #fff;
	background-color: var(--pkmgmt-primary);
	border-radius: var(--pkmgmt-radius-sm);
	box-shadow: var(--pkmgmt-shadow);
	padding: 14px 18px;
	margin-bottom: 15px;
	border: none;
}

form#reservation .total span {
	float: right;
	font-weight: 700;
	font-size: x-large;
	margin: -5px;
	padding: 0 10px;
}

/*
** autocompletion
 */

.ui-autocomplete-category {
	color: #fff;
	background-color: var(--pkmgmt-primary);
	padding: 4px 10px;
}

.ui-autocomplete {
	border: 1px solid var(--pkmgmt-border);
	border-radius: var(--pkmgmt-radius-sm);
	box-shadow: var(--pkmgmt-shadow);
	overflow: hidden;
}

/*
** label error
 */
label.error {
	color: crimson;
	font-weight: 800;
}


/*
** spinner
 */
.spinner-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.8);
	z-index: 1050; /* Make sure it is above other elements */
	display: none; /* Initially hidden */
}

/*
** high-season calendar
 */
.calendar > .days-grid > .day.high-season {
	background-color: #fad390;  /* TODO move into a var */
	border: 1px solid var(--color-border-locked);
}
.calendar > .days-grid > .locked.high-season {
	background-color: initial;
}

#reservation .form-label {
	color: var(--pkmgmt-text);
	font-weight: 600;
	font-size: .95rem;
	margin-bottom: .4rem;
}

#reservation input {
	color: var(--pkmgmt-text);
	font-size: 1rem;
}

#reservation .hyphen {
	background-color: white;
	border-right: 0 !important;
	border-left: 0 !important;
}
#reservation #depart, #reservation #retour {
	text-align: center;
	max-width: 250px;
	width: 100%;
}
#reservation #depart {
	border-right: 0 !important;
}
#reservation #retour {
	border-left: 0 !important;
}

#reservation div.journey {
	max-width: 530px;
	flex-wrap: nowrap;
}

@media (max-width: 480px) {
	/* Stack departure/return vertically instead of squeezing two date inputs
	   side by side - unreadable once each drops below ~150px. */
	#reservation div.journey {
		flex-direction: column;
		align-items: stretch;
		max-width: 100%;
	}
	#reservation #depart, #reservation #retour {
		max-width: none;
		width: 100%;
		border-radius: var(--pkmgmt-radius-sm) !important;
		border-right: 1px solid var(--pkmgmt-border) !important;
		border-left: 1px solid var(--pkmgmt-border) !important;
	}
	#reservation #retour {
		margin-top: 8px;
	}
	#reservation .hyphen {
		display: none;
	}
}

#reservation .black {
	color: var(--pkmgmt-text);
}

/*
** opt-in option checkboxes (keep_keys/ev_charging/cancellation_insurance)
*/

/* The opt-in checkboxes render with no wrapper/margin of their own, unlike every
 * other field on the form - which uses Form::_row_field()'s `.row.mb-3` - so they
 * rendered crammed against each other and against the field above. Also lay them
 * out with flex instead of relying on Bootstrap's .form-check float/negative-margin
 * positioning, which is fragile to override (see .options-checkbox below). */
#reservation .option-wrapper,
#reservation .options-container {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

/* Self-contained custom checkbox, independent of Bootstrap's .form-check-input -
 * pins appearance/size/radius itself instead of depending on that rule winning the
 * cascade, so it can't be silently broken by another stylesheet's load order or
 * specificity (as .options-switch's padding override already did once this session). */
#reservation .options-checkbox {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 0 .75rem 0 0;
	padding: 0;
	border: 2px solid var(--pkmgmt-border);
	border-radius: 6px;
	background-color: #fff;
	cursor: pointer;
	position: relative;
	transition: background-color .15s ease, border-color .15s ease;
}

#reservation .options-checkbox:hover {
	border-color: var(--pkmgmt-primary);
}

#reservation .options-checkbox:checked {
	background-color: var(--pkmgmt-primary);
	border-color: var(--pkmgmt-primary);
}

#reservation .options-checkbox:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

#reservation .options-checkbox:focus-visible {
	outline: none;
	box-shadow: 0 0 0 .2rem var(--pkmgmt-primary-light);
}

#reservation .options-checkbox ~ .form-check-label {
	cursor: pointer;
}
