/**
 * Pelican Units – Shared booking/reservation styles.
 *
 * Loaded on both the normal booking page and the reservation page.
 * Contains sidebar, lightbox, and FAQ-trigger styles used by both flows.
 */

/* Sidebar unit image ------------------------------------------------------ */
.booking-step-summary__image {
	text-align: center;
	padding: 24px 16px 8px;
}

.booking-step-summary__image img {
	max-width: 100%;
	height: auto;
	max-height: 180px;
	object-fit: contain;
}

.booking-step-summary__image img[src$=".svg"] {
	max-width: 40%;
	max-height: 100px;
	opacity: 0.3;
}

/* Access-date: make the entire row open the calendar ---------------------- */
.booking-step-summary__access {
	position: relative;
}

.booking-step-summary__access-value-wrap {
	position: static;
}

.booking-step-summary__access-date,
.booking-step-summary__access-label {
	pointer-events: none;
}

.booking-step-summary__access-input::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

/* Sidebar location address + contact -------------------------------------- */
.booking-step-summary__location-address {
	font-size: 14px;
	line-height: 1.4;
	color: #5f6661;
	margin-top: 4px;
}

.booking-step-summary__location-contact {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.4;
}

.booking-step-summary__location-contact a {
	color: #f47b00;
	text-decoration: none;
}

.booking-step-summary__location-contact a:hover {
	text-decoration: underline;
}

/* FAQ lightbox ------------------------------------------------------------- */
.pelican-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pelican-lightbox[hidden] {
	display: none;
}

.pelican-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.pelican-lightbox__dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 720px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
}

.pelican-lightbox__close {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1 !important;
	cursor: pointer;
	color: #666;
	z-index: 1;
}

.pelican-lightbox__content h2 {
	margin-top: 0;
}

/* FAQ info icon (small inline icon in summary rows) ---------------------- */
.booking-faq-icon,
.booking-faq-icon:hover,
.booking-faq-icon:focus {
	all: unset;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center !important;
	vertical-align: middle !important;
	line-height: 1 !important;
	width: 14px !important;
	height: 14px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	min-height: 0 !important;
	min-width: 0 !important;
	opacity: 0.7;
	transition: opacity 0.15s;
}

.booking-faq-icon:hover {
	opacity: 1 !important;
}

/* Sidebar "Reserve for a viewing" ----------------------------------------- */
.booking-step-summary__reserve-wrapper {
	text-align: center;
	margin-top: 16px;
}

.booking-step-summary__reserve-hint {
	display: block;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 8px;
}

.btn.btn--outline.booking-step-summary__reserve-link {
	display: flex;
	width: 100%;
	color: #f47b00 !important;
	border-color: #f47b00 !important;
	background: transparent !important;
	font-weight: 400 !important;
	font-size: 14px !important;
}

.btn.btn--outline.booking-step-summary__reserve-link svg,
.btn.btn--outline.booking-step-summary__reserve-link svg path {
	fill: none !important;
	stroke: currentColor !important;
}

.btn.btn--outline.booking-step-summary__reserve-link:hover {
	color: #f47b00 !important;
	background: #fff5eb !important;
}

/* Mobile responsive ------------------------------------------------------- */
@media (max-width: 767px) {
	.pelican-lightbox__content h2 {
		font-size: 28px;
		padding-bottom: 1em;
	}

	.booking-step-summary__reserve-wrapper {
		display: none !important;
	}
}

/* Callback request modal -------------------------------------------------- */
.pelican-callback-modal {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pelican-callback-modal[hidden] {
	display: none;
}

.pelican-callback-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.pelican-callback-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 480px;
	width: 90%;
	padding: 32px;
	max-height: 90vh;
	overflow-y: auto;
}

.pelican-callback-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1 !important;
	cursor: pointer;
	color: #666;
	z-index: 1;
}

.pelican-callback-modal__title {
	margin: 0 0 8px;
	font-size: 22px;
}

.pelican-callback-modal__intro {
	margin: 0 0 20px;
	color: #666;
	font-size: 15px;
	line-height: 1.4;
}

.pelican-callback-modal__form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pelican-callback-modal__field-row {
	width: 100%;
}

.pelican-callback-modal__field-row .booking-step-contract__field {
	width: 100%;
}

.pelican-callback-modal__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.pelican-callback-modal__consent .form-checkbox {
	margin-top: 2px;
	flex-shrink: 0;
}

.pelican-callback-modal__error {
	color: #991b1b;
	font-size: 14px;
	padding: 8px 12px;
	background: #fef2f2;
	border-radius: 6px;
}

.pelican-callback-modal__submit {
	width: 100%;
	margin-top: 4px;
}

.pelican-callback-modal__success {
	text-align: center;
	padding: 24px 0;
	font-size: 16px;
}

/* Insurance info link ---------------------------------------------------- */
.booking-step-summary__insurance-info-link__container {
	text-align:right;
}
.booking-step-summary__insurance-info-link {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	color: #909090;
	text-decoration: underline;
	cursor: pointer;
}

.booking-step-summary__insurance-info-link:hover {
	color: #333;
}

/* Insurance info modal --------------------------------------------------- */
.pelican-insurance-modal {
	position: fixed;
	inset: 0;
	z-index: 10002;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pelican-insurance-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.pelican-insurance-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 520px;
	width: calc(100% - 32px);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 32px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.pelican-insurance-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	line-height: 1;
}

.pelican-insurance-modal__close:hover {
	color: #333;
}

.pelican-insurance-modal__title {
	margin: 0 0 16px;
	font-size: 20px;
}

.pelican-insurance-modal__body p {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 12px;
	color: #444;
}

.pelican-insurance-modal__body p a {
	color: inherit;
	text-decoration: underline;
}

.pelican-insurance-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.pelican-insurance-modal__actions .btn {
	width: 100%;
	justify-content: center;
	text-align: center;
}

.pelican-insurance-modal__own {
	text-decoration: none;
}

/* Own insurance form – consent checkbox ---------------------------------- */
.pelican-own-insurance__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.pelican-own-insurance__consent .form-checkbox {
	margin-top: 2px;
	flex-shrink: 0;
}

/* B2B VAT section ------------------------------------------------------------- */
.booking-step-summary__vat-section,
.booking-step-contract-summary__vat-section {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
	margin-bottom:1em;
}


/* ── Contract error banner ── */
.booking-step-page__error-banner {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 24px;
	color: #991b1b;
	font-size: 15px;
	line-height: 1.5;
}

.booking-step-page__error-banner p {
	margin: 0;
}

.booking-step-page__error-banner a {
	color: #991b1b;
	text-decoration: underline;
}

/* Location address tooltip ------------------------------------------------ */
.booking-location-tooltip {
	position: relative;
	cursor: pointer;
	border-bottom: 1px dashed #ccc;
}

.booking-location-tooltip__popup {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	z-index: 100;
	min-width: 200px;
	max-width: 280px;
	padding: 12px 14px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,.15);
	font-weight: 400;
	font-size: 13px;
	line-height: 1.5;
	color: #333;
	white-space: normal;
	text-align: left;
}

.booking-location-tooltip__popup.is-visible {
	display: block;
}

.booking-location-tooltip__address {
	margin: 0 0 8px;
}

.booking-location-tooltip__contacts {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 8px;
}

.booking-location-tooltip__contact {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #333;
	text-decoration: none;
}

.booking-location-tooltip__contact:hover {
	color: #f07e02;
}

.booking-location-tooltip__contact svg {
	flex-shrink: 0;
}

.booking-location-tooltip__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: #f07e02;
	text-decoration: none;
}

.booking-location-tooltip__link:hover {
	text-decoration: underline;
}

.booking-location-tooltip__link svg {
	flex-shrink: 0;
}
