/* GD Gated Downloads popup. Everything is scoped under .gdgd to stay clear of the theme. */

:root {
	--gdgd-accent: #14213d;
	--gdgd-paper: #fbfaf7;
	--gdgd-ink: #16181d;
	--gdgd-muted: #6b6a66;
	--gdgd-line: #d9d4ca;
	--gdgd-error: #b42318;
	--gdgd-blur: 10px;
	--gdgd-font: inherit;
}

html.gdgd-noscroll { overflow: hidden; }

/* Optional blur on Elementor widgets with the class gd-gate-blur */
html.gdgd-locked .gd-gate-blur { overflow: hidden; border-radius: inherit; }
html.gdgd-locked .gd-gate-blur img {
	filter: blur(var(--gdgd-blur));
	transform: scale(1.04);
	transition: filter .5s ease;
}

/* ---------- dialog ---------- */
dialog.gdgd {
	position: fixed;
	inset: 0;
	margin: auto;
	padding: 0;
	border: 0;
	width: min(880px, calc(100% - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	border-radius: 22px;
	background: var(--gdgd-paper);
	color: var(--gdgd-ink);
	box-shadow: 0 40px 90px -30px rgba(8, 12, 22, .55), 0 0 0 1px rgba(0, 0, 0, .04);
	overflow: hidden;
	font-family: var(--gdgd-font);
	z-index: 2147483000;
}
dialog.gdgd:not([open]) { display: none; }
dialog.gdgd[open] { display: block; animation: gdgd-in .38s cubic-bezier(.2, .8, .2, 1); }
dialog.gdgd::backdrop {
	background: rgba(10, 13, 20, .58);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	animation: gdgd-fade .3s ease;
}
@keyframes gdgd-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes gdgd-fade { from { opacity: 0; } to { opacity: 1; } }

.gdgd *, .gdgd *::before, .gdgd *::after { box-sizing: border-box; }

.gdgd-shell {
	display: grid;
	grid-template-columns: 5fr 7fr;
	min-height: 500px;
	max-height: calc(100dvh - 32px);
}

/* ---------- side panel: blueprint grid over the accent colour ---------- */
.gdgd-aside {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 40px 36px 32px;
	color: #fff;
	background-color: var(--gdgd-accent);
	background-image:
		radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, .14), transparent 55%),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 28px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 28px);
	overflow: hidden;
}
.gdgd-aside::after {
	/* a single drafted room outline, the quiet nod to floor plans */
	content: "";
	position: absolute;
	right: -40px;
	bottom: 70px;
	width: 190px;
	height: 150px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-right: 0;
	box-shadow: inset 70px 0 0 -69px rgba(255, 255, 255, .22), inset 0 -55px 0 -54px rgba(255, 255, 255, .22);
	pointer-events: none;
}
.gdgd-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	opacity: .78;
	line-height: 1.4;
}
.gdgd-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; flex: none; }
.gdgd .gdgd-title {
	margin: 18px 0 0;
	padding: 0;
	font-family: var(--gdgd-font);
	font-size: clamp(28px, 3.3vw, 40px);
	line-height: 1.08;
	font-weight: 500;
	letter-spacing: -.015em;
	color: #fff;
	text-transform: none;
	position: relative;
	z-index: 1;
}
.gdgd-aside-foot {
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .2);
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	line-height: 1.4;
	position: relative;
	z-index: 1;
}
.gdgd-icon { display: inline-flex; opacity: .9; }
.gdgd-icon-cal, .gdgd.is-visit .gdgd-icon-doc { display: none; }
.gdgd.is-visit .gdgd-icon-cal { display: inline-flex; }
.gdgd-meta { opacity: .85; }

/* ---------- main column ---------- */
.gdgd-main {
	position: relative;
	padding: 44px 44px 34px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.gdgd .gdgd-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	border: 1px solid var(--gdgd-line);
	border-radius: 50%;
	background: transparent;
	color: var(--gdgd-ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: none;
	line-height: 1;
	transition: background .2s, transform .2s;
}
.gdgd .gdgd-close:hover { background: #fff; transform: rotate(90deg); }

.gdgd .gdgd-sub {
	margin: 0 40px 26px 0;
	color: var(--gdgd-muted);
	font-size: 15px;
	line-height: 1.55;
}

.gdgd-field { display: block; margin: 0 0 20px; }
.gdgd .gdgd-lbl {
	display: block;
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gdgd-muted);
}
.gdgd .gdgd-lbl em { font-style: normal; font-weight: 400; letter-spacing: .04em; text-transform: none; opacity: .8; }

.gdgd input[type="text"],
.gdgd input[type="tel"],
.gdgd input[type="email"],
.gdgd input[type="date"],
.gdgd select {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 10px 0 9px;
	border: 0;
	border-bottom: 1px solid var(--gdgd-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	color: var(--gdgd-ink);
	font-family: inherit;
	font-size: 16px; /* 16px stops iOS zooming into fields */
	line-height: 1.4;
	transition: border-color .2s;
}
.gdgd input:focus, .gdgd select:focus { border-bottom-color: var(--gdgd-accent); box-shadow: 0 1px 0 0 var(--gdgd-accent); }
.gdgd input.is-invalid { border-bottom-color: var(--gdgd-error); box-shadow: 0 1px 0 0 var(--gdgd-error); }

.gdgd-phone { display: flex; gap: 14px; align-items: flex-end; }
.gdgd .gdgd-phone select {
	width: auto;
	flex: none;
	padding-right: 18px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: right 4px center, right 0 center;
	background-size: 4px 4px, 4px 4px;
	background-repeat: no-repeat;
	cursor: pointer;
}
.gdgd .gdgd-phone input { flex: 1; min-width: 0; }

.gdgd .gdgd-visit-only { display: none; }
.gdgd.is-visit .gdgd-visit-only { display: block; }

.gdgd-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 6px 0 18px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--gdgd-muted);
	cursor: pointer;
}
.gdgd .gdgd-consent input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	accent-color: var(--gdgd-accent);
}
.gdgd .gdgd-consent input.is-invalid { outline: 2px solid var(--gdgd-error); outline-offset: 2px; }

.gdgd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.gdgd .gdgd-error { display: none; margin: 0 0 14px; color: var(--gdgd-error); font-size: 13px; line-height: 1.45; }
.gdgd .gdgd-error.is-on { display: block; }

/* ---------- button ---------- */
.gdgd .gdgd-submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 7px 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--gdgd-accent);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: .01em;
	line-height: 1;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: filter .2s, transform .15s;
}
.gdgd .gdgd-submit:hover { filter: brightness(1.12); color: #fff; }
.gdgd .gdgd-submit:active { transform: scale(.99); }
.gdgd .gdgd-submit:focus-visible { outline: 2px solid var(--gdgd-accent); outline-offset: 3px; }
.gdgd-arrow {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: var(--gdgd-accent);
	display: grid;
	place-items: center;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.gdgd .gdgd-submit:hover .gdgd-arrow { transform: translateX(3px); }
.gdgd-spin {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gdgd-rot .7s linear infinite;
}
.gdgd .gdgd-submit.is-busy { cursor: progress; }
.gdgd .gdgd-submit.is-busy .gdgd-submit-text,
.gdgd .gdgd-submit.is-busy .gdgd-arrow { visibility: hidden; }
.gdgd .gdgd-submit.is-busy .gdgd-spin { display: block; }
@keyframes gdgd-rot { to { transform: rotate(360deg); } }

/* ---------- done state ---------- */
.gdgd-done { text-align: center; padding: 10px 6px; }
.gdgd-check { display: inline-flex; color: var(--gdgd-accent); margin-bottom: 14px; }
.gdgd-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: gdgd-draw .6s ease forwards; }
.gdgd-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: gdgd-draw .35s .45s ease forwards; }
@keyframes gdgd-draw { to { stroke-dashoffset: 0; } }
.gdgd .gdgd-done-title {
	margin: 0 0 10px;
	font-family: var(--gdgd-font);
	font-size: 28px;
	font-weight: 500;
	letter-spacing: -.01em;
	line-height: 1.15;
	color: var(--gdgd-ink);
}
.gdgd .gdgd-done-text { margin: 0 auto 24px; max-width: 360px; color: var(--gdgd-muted); font-size: 15px; line-height: 1.55; }
.gdgd .gdgd-open { justify-content: center; max-width: 260px; margin: 0 auto 10px; padding: 0 26px; }
.gdgd .gdgd-link {
	background: none;
	border: 0;
	padding: 8px;
	margin: 0;
	box-shadow: none;
	color: var(--gdgd-muted);
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.gdgd-done[hidden], .gdgd-form[hidden], .gdgd-open[hidden] { display: none !important; }

/* ---------- toast for remembered visitors ---------- */
.gdgd-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 12px);
	opacity: 0;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--gdgd-accent);
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
	z-index: 2147483001;
	transition: opacity .25s, transform .25s;
	pointer-events: none;
}
.gdgd-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile: bottom sheet ---------- */
@media (max-width: 720px) {
	dialog.gdgd {
		width: 100%;
		margin: auto 0 0;
		max-height: 94dvh;
		border-radius: 22px 22px 0 0;
		overflow-y: auto;
	}
	dialog.gdgd[open] { animation: gdgd-up .4s cubic-bezier(.2, .8, .2, 1); }
	.gdgd-shell { grid-template-columns: 1fr; min-height: 0; max-height: none; }
	.gdgd-aside { padding: 26px 24px 20px; }
	.gdgd-aside::after { display: none; }
	.gdgd .gdgd-title { margin-top: 10px; font-size: 26px; padding-right: 40px; }
	.gdgd-aside-foot { margin-top: 16px; padding-top: 12px; }
	.gdgd-shell { position: relative; }
	.gdgd-main { position: static; padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); overflow: visible; }
	.gdgd .gdgd-close { top: 18px; right: 18px; border-color: rgba(255, 255, 255, .35); color: #fff; z-index: 2; }
	.gdgd .gdgd-close:hover { background: rgba(255, 255, 255, .12); }
	.gdgd .gdgd-sub { margin-right: 0; margin-bottom: 20px; }
}
@keyframes gdgd-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	dialog.gdgd[open], dialog.gdgd::backdrop, .gdgd-check circle, .gdgd-check path { animation: none; stroke-dashoffset: 0; }
}
