/**
 * Lead Brochure Popup — front-end styles.
 * Design: quiet-luxury real estate. Ink, bone, bronze. Serif display, sans body.
 */

.lbp-modal,
.lbp-modal *,
.lead-brochure-btn {
	box-sizing: border-box;
}

.lbp-modal {
	--lbp-ink: #131c29;
	--lbp-ink-soft: #364354;
	--lbp-muted: #6d7684;
	--lbp-bronze: #a07c46;
	--lbp-bone: #faf8f5;
	--lbp-line: #e3ded6;
	--lbp-white: #fff;
	--lbp-danger: #a32a26;
	--lbp-success: #17603a;
	--lbp-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
	--lbp-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------- Trigger */

.lead-brochure-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border: 0;
	border-radius: 4px;
	background: #131c29;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lead-brochure-btn:hover,
.lead-brochure-btn:focus-visible {
	background: #a07c46;
	color: #fff;
}

/* ------------------------------------------------------------------ Shell */

.lead-brochure-popup-open {
	overflow: hidden;
}

.lbp-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: var(--lbp-sans);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

.lbp-modal.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.lbp-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 12, 18, 27, 0.72 );
	-webkit-backdrop-filter: blur( 3px );
	backdrop-filter: blur( 3px );
}

.lbp-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	width: min( 680px, 100% );
	max-height: min( 620px, calc( 100vh - 48px ) );
	max-height: min( 620px, calc( 100dvh - 48px ) );
	overflow: hidden;
	border-radius: 6px;
	background: var(--lbp-white);
	box-shadow: 0 24px 70px rgba( 10, 16, 24, 0.38 );
	transform: translateY( 12px ) scale( 0.985 );
	transition: transform 0.28s cubic-bezier( 0.22, 1, 0.36, 1 );
}

.lbp-modal.is-active .lbp-dialog {
	transform: none;
}

.lbp-layout {
	display: flex;
	width: 100%;
	min-height: 0;
}

/* ----------------------------------------------------------------- Visual */

.lbp-visual {
	position: relative;
	flex: 0 0 38%;
	min-height: 100%;
	background-color: #22303f;
	background-position: center;
	background-size: cover;
}

.lbp-visual-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient( 180deg, rgba( 19, 28, 41, 0.12 ) 0%, rgba( 19, 28, 41, 0.82 ) 100% );
}

.lbp-visual-caption {
	position: absolute;
	right: 20px;
	bottom: 22px;
	left: 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lbp-eyebrow {
	color: #d8bd8e;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.lbp-visual-title {
	color: #fff;
	font-family: var(--lbp-serif);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	text-shadow: 0 1px 12px rgba( 0, 0, 0, 0.35 );
}

/* ------------------------------------------------------------------ Panel */

.lbp-panel {
	flex: 1 1 auto;
	min-width: 0;
	overflow-y: auto;
	background: var(--lbp-white);
	-webkit-overflow-scrolling: touch;
}

.lbp-panel-inner {
	padding: 34px 34px 30px;
}

.lbp-logo {
	display: block;
	width: auto;
	max-width: 132px;
	max-height: 44px;
	height: auto;
	margin: 0 0 18px;
}

.lbp-title {
	margin: 0;
	padding: 0;
	color: var(--lbp-ink);
	font-family: var(--lbp-serif);
	font-size: 27px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.15;
	text-transform: none;
}

.lbp-rule {
	display: block;
	width: 34px;
	height: 2px;
	margin: 12px 0 12px;
	background: var(--lbp-bronze);
}

.lbp-sub {
	margin: 0 0 20px;
	color: var(--lbp-muted);
	font-size: 13.5px;
	line-height: 1.55;
}

/* ------------------------------------------------------------------ Close */

.lbp-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--lbp-line);
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.94 );
	color: var(--lbp-ink-soft);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.lbp-close:hover,
.lbp-close:focus-visible {
	border-color: var(--lbp-ink);
	background: var(--lbp-ink);
	color: #fff;
}

.lbp-close svg {
	display: block;
}

/* ------------------------------------------------------------------ Alert */

.lbp-alert {
	display: none;
	margin: 0 0 16px;
	padding: 10px 12px;
	border-left: 2px solid currentColor;
	border-radius: 2px;
	font-size: 13px;
	line-height: 1.45;
}

.lbp-alert.is-visible {
	display: block;
}

.lbp-alert.is-error {
	background: #fdf3f2;
	color: var(--lbp-danger);
}

.lbp-alert.is-success {
	background: #f0f7f2;
	color: var(--lbp-success);
}

/* ----------------------------------------------------------------- Fields */

.lbp-field {
	margin: 0 0 14px;
}

.lbp-field label {
	display: block;
	margin: 0 0 6px;
	color: var(--lbp-ink-soft);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.lbp-field input {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--lbp-line);
	border-radius: 3px;
	background: var(--lbp-bone);
	color: var(--lbp-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: normal;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.lbp-field input::placeholder {
	color: #a7aeb8;
}

.lbp-field input:focus {
	border-color: var(--lbp-bronze);
	background: #fff;
	outline: 0;
	box-shadow: 0 0 0 3px rgba( 160, 124, 70, 0.14 );
}

.lbp-field.has-error input {
	border-color: var(--lbp-danger);
	background: #fdf6f5;
}

.lbp-phone {
	display: flex;
	align-items: stretch;
}

.lbp-phone-code {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	padding: 0 11px;
	border: 1px solid var(--lbp-line);
	border-right: 0;
	border-radius: 3px 0 0 3px;
	background: #f2eee8;
	color: var(--lbp-ink-soft);
	font-size: 14px;
	font-weight: 600;
}

.lbp-phone input {
	border-radius: 0 3px 3px 0;
}

/* -------------------------------------------------------------- Honeypots */

.lbp-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	clip-path: inset( 50% );
	white-space: nowrap;
	border: 0;
	opacity: 0;
	pointer-events: none;
}

.lbp-captcha {
	margin: 0 0 14px;
}

/* ----------------------------------------------------------------- Submit */

.lbp-submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	height: 50px;
	margin: 12px 0 0;
	padding: 0 18px;
	border: 0;
	border-radius: 3px;
	background: var(--lbp-ink);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.lbp-submit:hover:not( :disabled ),
.lbp-submit:focus-visible:not( :disabled ) {
	background: var(--lbp-bronze);
}

.lbp-submit:disabled {
	cursor: not-allowed;
	opacity: 0.72;
}

.lbp-spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid rgba( 255, 255, 255, 0.35 );
	border-top-color: #fff;
	border-radius: 50%;
	animation: lbp-spin 0.7s linear infinite;
}

.lbp-submit.is-loading .lbp-spinner {
	display: block;
}

@keyframes lbp-spin {
	to {
		transform: rotate( 360deg );
	}
}

.lbp-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 14px 0 0;
	color: #939ba6;
	font-size: 11.5px;
	line-height: 1.4;
	text-align: center;
}

.lbp-trust svg {
	flex: 0 0 auto;
}

/* ------------------------------------------------------- Focus visibility */

.lbp-modal :focus-visible {
	outline: 2px solid var(--lbp-bronze);
	outline-offset: 2px;
}

/* --------------------------------------------------------------- Tablet */

@media ( max-width: 880px ) {
	.lbp-dialog {
		width: min( 560px, 100% );
	}

	.lbp-visual {
		flex-basis: 34%;
	}

	.lbp-panel-inner {
		padding: 30px 28px 26px;
	}

	.lbp-title {
		font-size: 25px;
	}
}

/* --------------------------------------------------------------- Mobile */

@media ( max-width: 640px ) {
	.lbp-modal {
		padding: 14px;
		align-items: flex-end;
	}

	.lbp-dialog {
		width: 100%;
		max-height: calc( 100vh - 28px );
		max-height: calc( 100dvh - 28px );
		border-radius: 8px 8px 6px 6px;
	}

	.lbp-layout {
		flex-direction: column;
	}

	.lbp-visual {
		flex: 0 0 118px;
		min-height: 118px;
	}

	.lbp-visual-caption {
		right: 16px;
		bottom: 14px;
		left: 18px;
	}

	.lbp-visual-title {
		font-size: 17px;
	}

	.lbp-panel-inner {
		padding: 22px 20px 24px;
	}

	.lbp-logo {
		max-width: 110px;
		max-height: 38px;
		margin-bottom: 14px;
	}

	.lbp-title {
		font-size: 23px;
	}

	.lbp-sub {
		margin-bottom: 18px;
		font-size: 13px;
	}

	.lbp-field input,
	.lbp-phone-code {
		height: 48px;
		font-size: 16px; /* Stops iOS from zooming on focus. */
	}

	.lbp-submit {
		height: 52px;
	}

	.lbp-close {
		top: 10px;
		right: 10px;
		width: 32px;
		height: 32px;
		border-color: rgba( 255, 255, 255, 0.28 );
		background: rgba( 19, 28, 41, 0.55 );
		color: #fff;
	}
}

@media ( max-width: 380px ) {
	.lbp-modal {
		padding: 8px;
	}

	.lbp-panel-inner {
		padding: 20px 16px 20px;
	}
}

/* ------------------------------------------------------- Short landscape */

@media ( max-height: 520px ) and ( orientation: landscape ) {
	.lbp-visual {
		display: none;
	}

	.lbp-dialog {
		max-height: calc( 100vh - 24px );
		max-height: calc( 100dvh - 24px );
	}

	.lbp-panel-inner {
		padding: 22px 26px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.lbp-modal,
	.lbp-dialog {
		transition: none;
	}

	.lbp-dialog {
		transform: none;
	}

	.lbp-spinner {
		animation-duration: 2s;
	}
}

/* ----------------------------------------------------------- Thank you */

.lbp-view-success {
	padding: 4px 0 2px;
	text-align: center;
}

.lbp-view-success .lbp-rule {
	margin: 12px auto 14px;
}

.lbp-success-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0 0 14px;
	border: 1px solid var(--lbp-line);
	border-radius: 50%;
	background: #f0f7f2;
	color: var(--lbp-success);
}

.lbp-success-mark svg {
	display: block;
}

.lbp-success-title {
	margin: 0;
	color: var(--lbp-ink);
	font-family: var(--lbp-serif);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
}

.lbp-success-text {
	margin: 0 0 20px;
	color: var(--lbp-ink-soft);
	font-size: 14px;
	line-height: 1.6;
}

.lbp-success-link,
.lbp-success-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 12px 20px;
	border-radius: 4px;
	font-family: var(--lbp-sans);
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lbp-success-link {
	border: 0;
	background: var(--lbp-ink);
	color: #fff;
}

.lbp-success-link:hover,
.lbp-success-link:focus-visible {
	background: var(--lbp-bronze);
	color: #fff;
}

.lbp-success-close {
	margin-top: 8px;
	border: 1px solid var(--lbp-line);
	background: transparent;
	color: var(--lbp-ink-soft);
}

.lbp-success-close:hover,
.lbp-success-close:focus-visible {
	border-color: var(--lbp-ink);
	color: var(--lbp-ink);
}

.lbp-view-form[hidden],
.lbp-view-success[hidden] {
	display: none;
}

@media ( max-width: 600px ) {
	.lbp-success-title {
		font-size: 22px;
	}
}

/* Labels the admin cleared: gone visually, still read by screen readers. */

.lbp-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect( 0 0 0 0 );
	clip-path: inset( 50% );
	white-space: nowrap;
}
