/* Global quote popup — native <dialog>, narrow card with the vertical form. */
:not(#_) .aob-popup,
:not(#_) .aob-popup *,
:not(#_) .aob-popup *::before,
:not(#_) .aob-popup *::after { box-sizing: border-box; }

html.aob-popup-open { overflow: hidden; }

:not(#_) .aob-popup {
	width: calc(100% - 32px);
	max-width: 440px;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--aob-light-1);
	font-family: var(--aob-font-body);
	overflow: visible;
}
:not(#_) .aob-popup::backdrop {
	background: rgba(8, 7, 6, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
:not(#_) .aob-popup[open] { animation: aob-popup-in 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
:not(#_) .aob-popup[open]::backdrop { animation: aob-popup-fade 0.35s ease; }
@keyframes aob-popup-in {
	from { opacity: 0; transform: translateY(16px) scale(0.97); }
	to { opacity: 1; transform: none; }
}
@keyframes aob-popup-fade { from { opacity: 0; } to { opacity: 1; } }

:not(#_) .aob-popup__card {
	outline: 0;
	position: relative;
	max-height: calc(100dvh - 32px);
	padding: 32px 24px 24px;
	overflow-y: auto;
	border: 1px solid var(--aob-gold-soft);
	border-radius: 20px;
	background: linear-gradient(180deg, #1a1816, var(--aob-black-3));
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
:not(#_) .aob-popup__title {
	margin: 0 40px 8px 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 30px;
	text-transform: uppercase;
	color: var(--aob-white);
}
:not(#_) .aob-popup__lead {
	margin: 0 0 20px;
	color: var(--aob-light-2);
	font-size: 15px;
	line-height: 22px;
}
:not(#_) .aob-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--aob-glass-border);
	border-radius: 50%;
	background: var(--aob-glass-bg);
	cursor: pointer;
}
:not(#_) .aob-popup__close span,
:not(#_) .aob-popup__close span::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 2px;
	margin: -1px 0 0 -8px;
	border-radius: 2px;
	background: var(--aob-white);
	transform: rotate(45deg);
}
:not(#_) .aob-popup__close span::before { content: ""; margin: 0; top: 0; left: 0; transform: rotate(90deg); }
:not(#_) .aob-popup__close:hover { border-color: var(--aob-gold-border); }
:not(#_) .aob-popup__close:focus-visible { outline: 2px solid var(--aob-white); outline-offset: 3px; }

/* vertical form tuning inside the popup */
:not(#_) .aob-popup .aob-form { gap: 14px; }
:not(#_) .aob-popup .aob-form__fields { gap: 12px; }
:not(#_) .aob-popup .aob-field { gap: 6px; }
:not(#_) .aob-popup .aob-field__label { font-size: 14px; line-height: 20px; }
:not(#_) .aob-popup .aob-field__control { padding: 10px 12px; font-size: 15px; line-height: 22px; }
:not(#_) .aob-popup .aob-form__consent { font-size: 13px; line-height: 18px; }
:not(#_) .aob-popup .aob-form__submit-row { gap: 14px; }
:not(#_) .aob-popup .aob-form__submit-row .aob-btn { width: 100%; justify-content: space-between; height: 52px; }
:not(#_) .aob-popup .aob-form__submit-row .aob-btn__icon { width: 42px; height: 42px; }

@media (prefers-reduced-motion: reduce) {
	:not(#_) .aob-popup[open],
	:not(#_) .aob-popup[open]::backdrop { animation: none; }
}
