/*
 * Enquiry modal. Own styles, every selector starts with .lsd-enq. Values come from the computed styles
 * and rules of the original popup 455 (desktop, and the 767px breakpoint for mobile).
 */

.lsd-enq[hidden] { display: none !important; }

.lsd-enq {
	position: fixed;
	inset: 0;
	/* Below flatpickr (99999) so the date calendars open above the modal. */
	z-index: 99990;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	box-sizing: border-box;
	padding: 32px 16px 0;
	background: rgba(0, 0, 0, 0.8);
	font-family: 'Porsche Next', sans-serif;
	color: #191615;
}

.lsd-enq__backdrop {
	position: absolute;
	inset: 0;
}

.lsd-enq__dialog {
	position: relative;
	box-sizing: border-box;
	width: 769.333px;
	max-width: 100%;
	background: #FFFFFF;
	border: 4.66667px solid #A4863D;
	border-radius: 16px;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
}

/* The body scrolls, so the close button stays in place. */
.lsd-enq__dialog:focus { outline: none; }

.lsd-enq__body {
	box-sizing: border-box;
	padding: 20px 40px;
	max-height: calc(100vh - 42px);
	overflow-y: auto;
}

.lsd-enq__title {
	margin: 0;
	font-family: 'Porsche Next', sans-serif;
	font-size: 37px;
	font-weight: 600;
	line-height: 37px;
	color: #0C0C0C;
}

.lsd-enq__intro {
	margin: 20px 0 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #191615;
}

.lsd-enq__delivery {
	display: block;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	margin: 20px 0 30px;
	padding: 5px;
	background-color: #F5F5F5;
	border-left: 5px solid #A4863D;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	color: #A4863D;
	text-align: center;
}

.lsd-enq__privacy {
	margin: 34px 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	color: #191615;
	text-align: center;
}

.lsd-enq__underline {
	text-decoration: underline;
}

/* JetFormBuilder 3259: field, label and button rules of the original popup. */
.lsd-enq .lsd-enq__form .jet-form-builder-row {
	margin-top: 5px;
	margin-bottom: 0;
}
.lsd-enq .lsd-enq__form .jet-form-builder__label {
	margin: 0 0 5px;
	text-align: left;
	font-family: 'Porsche Next', sans-serif;
	font-size: 14px;
}
.lsd-enq .lsd-enq__form .jet-form-builder__desc {
	text-align: left;
}
.lsd-enq .lsd-enq__form .jet-form-builder__fields-group {
	flex-direction: row;
	gap: 0.7em 0.7em;
}
.lsd-enq .lsd-enq__form .jet-form-builder__field-wrap label {
	font-family: 'Porsche Next', sans-serif;
	font-size: 14px;
}
.lsd-enq .lsd-enq__form .jet-form-builder__field:not(.checkradio-field):not(.range-field):not(.jet-form-builder-repeater):not(.wysiwyg-field) {
	font-family: 'Porsche Next', sans-serif;
	font-size: 14px;
	border: 1px solid rgba(161, 161, 161, 0.54);
	border-radius: 10px;
}
/* Select: same width as the other fields of its column. JetFormBuilder prints per-block inline rules (.cb-xxx) that
   would otherwise win over these rules, so the selector is scoped to the form container for specificity. */
.lsd-enq .lsd-enq__form .jet-form-builder__field-wrap {
	min-width: 0;
}
.lsd-enq .lsd-enq__form select.jet-form-builder__field {
	box-sizing: border-box;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	flex: 0 1 100%;
}
.lsd-enq .lsd-enq__form .jet-form-builder__field.textarea-field {
	height: 80px;
	min-height: 80px;
}
.lsd-enq .lsd-enq__form .jet-form-builder input {
	color-scheme: normal;
}
.lsd-enq .lsd-enq__form .jet-form-builder__action-button {
	background-color: #A4863D;
	color: #FFFFFF;
	transition: all 0.3s;
	font-family: 'Porsche Next', sans-serif;
	padding: 10px;
	border: 1px solid #A4863D;
	border-radius: 10px;
}
.lsd-enq .lsd-enq__form .jet-form-builder__submit-wrap {
	justify-content: stretch;
	align-items: stretch;
}
.lsd-enq .lsd-enq__form .jet-form-builder__submit-wrap > .jet-form-builder__submit {
	width: 100%;
}
.lsd-enq .lsd-enq__form .jet-form-builder__submit {
	justify-content: center;
}
.lsd-enq .lsd-enq__form .jet-form-builder__next-page-wrap {
	text-align: left;
}
.lsd-enq .lsd-enq__form .jet-form-builder-message--success,
.lsd-enq .lsd-enq__form .jet-form-builder-message--error {
	text-align: center;
}

.lsd-enq .lsd-enq__close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	width: 18px;
	height: 18px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: #191615;
	cursor: pointer;
	line-height: 0;
}
.lsd-enq .lsd-enq__close svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.lsd-enq .lsd-enq__close:focus-visible {
	outline: 2px solid #A4863D;
	outline-offset: 2px;
}

/* Mobile: the panel is 15px narrower than the viewport, centred horizontally (7.5px each side) and starts 88px from the top. */
@media (max-width: 767px) {
	.lsd-enq {
		align-items: flex-start;
		justify-content: center;
		padding: 88px 0 0;
	}
	.lsd-enq__dialog {
		width: calc(100vw - 15px);
	}
	/* The body fills the dialog. It used to be 100vw, which is wider than the dialog (100vw - 15px),
	   so the right-hand padding fell outside the gold border and the content looked cut off. */
	.lsd-enq__body {
		width: 100%;
		padding: 20px;
		max-height: calc(100vh - 97px);
	}
	.lsd-enq__title {
		font-size: 29px;
		line-height: 37px;
	}
	.lsd-enq__intro {
		font-size: 14px;
		line-height: 21px;
	}
	.lsd-enq__privacy {
		font-size: 14px;
	}
	.lsd-enq__privacy {
		text-align: start;
	}
}

/* Page behind the modal does not scroll while it is open. */
html.lsd-modal-open,
body.lsd-modal-open { overflow: hidden; }

/* While the form files load, the content stays in place (no layout jump) but is hidden behind a short message. */
.lsd-enq__loading { display: none; }
.lsd-enq.is-loading .lsd-enq__body { visibility: hidden; }
.lsd-enq.is-loading .lsd-enq__loading {
	display: flex;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	font-family: 'Porsche Next', sans-serif;
	font-size: 16px;
	color: #191615;
}
