/* =========================================================
   ALSTON — POP-UP QUOTE FORM
   A panel that slides in from the right (full screen on phones).
   The form inside is styled by alston-form.css.
========================================================= */

html.alston-quote-open,
html.alston-quote-open body {
	overflow: hidden;
}

.aq {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(620px, 100vw);
	max-width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: #FFFFFF;
	color: #0E0E0E;
	box-shadow: -40px 0 90px -40px rgba(0, 0, 0, .45);
	overflow: hidden;
}

.aq[open] {
	display: flex;
	flex-direction: column;
	animation: aqIn .55s cubic-bezier(.2, .7, .2, 1);
}

.aq::backdrop {
	background: rgba(14, 14, 14, .55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	animation: aqFade .4s ease;
}

@keyframes aqIn {
	from { transform: translateX(40px); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

@keyframes aqFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

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

.aq__head {
	flex: none;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	padding: clamp(22px, 4vh, 36px) clamp(20px, 4vw, 36px) 18px;
	border-bottom: 1px solid #E6E6E6;
}

.aq__eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font: 500 11px/1.2 "Inter", system-ui, sans-serif;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #5A5A5A;
}

.aq__eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: #C9A961;
}

.aq__title {
	margin: 12px 0 0;
	font: 200 clamp(26px, 4.2vh, 36px)/1.1 "Jost", "Helvetica Neue", sans-serif;
	letter-spacing: -.01em;
	color: #0E0E0E;
}

.aq .hl {
	color: #C9A961;
}

.aq__text {
	margin: 10px 0 0;
	max-width: 46ch;
	font: 300 14px/1.6 "Inter", system-ui, sans-serif;
	color: #5A5A5A;
}

.aq__close {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #D6D6D6;
	background: #FFFFFF;
	color: #0E0E0E;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .3s, color .3s, border-color .3s, transform .5s cubic-bezier(.2, .7, .2, 1);
}

.aq__close:hover,
.aq__close:focus-visible {
	background: #0E0E0E;
	color: #FFFFFF;
	border-color: #0E0E0E;
	transform: rotate(90deg);
}

.aq__close:focus-visible {
	outline: 2px solid #C9A961;
	outline-offset: 3px;
}

.aq__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 22px clamp(20px, 4vw, 36px) 32px;
}

.aq.is-sent .aq__body {
	display: none;
}

.aq__thanks {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 14px;
	padding: 24px clamp(20px, 4vw, 36px);
}

.aq__thanks[hidden] {
	display: none;
}

.aq__fallback p {
	font: 300 15px/1.7 "Inter", system-ui, sans-serif;
	color: #3A3A3A;
}

.aq__fallback a,
.aq__thanks a,
.aq__foot a {
	color: #0E0E0E;
	border-bottom: 1px solid #C9A961;
	text-decoration: none;
}

.aq__admin {
	padding: 12px 14px;
	border: 1px solid #C62828;
	background: #FFF5F5;
	color: #8E0000 !important;
	font-size: 13px !important;
}

.aq__foot {
	flex: none;
	margin: 0;
	padding: 14px clamp(20px, 4vw, 36px);
	border-top: 1px solid #E6E6E6;
	font: 400 13px/1.4 "Inter", system-ui, sans-serif;
	color: #5A5A5A;
}

@media (max-width: 700px) {

	.aq {
		width: 100vw;
	}

	.aq__text {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {

	.aq[open],
	.aq::backdrop {
		animation: none;
	}
}
