/*
 * Highland Vault Popup — reference-matched UI
 * Desktop: 700 × 400px split modal
 * Mobile: stacked image + content modal
 * Scoped entirely to #hv-popup to avoid theme/plugin conflicts.
 */

#hv-popup {
	position: fixed !important;
	inset: 0 !important;
	z-index: 999999 !important;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

#hv-popup *,
#hv-popup *::before,
#hv-popup *::after {
	box-sizing: border-box;
}

#hv-popup.hv-open { display: flex !important; }

#hv-popup .hv-backdrop {
	position: absolute !important;
	inset: 0 !important;
	background: rgba(10, 13, 21, 0.88) !important;
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
}

/* ================================================================
   MODAL
   ================================================================ */
#hv-popup .hv-modal {
	position: relative !important;
	display: grid !important;
	grid-template-columns: 44% 56%;
	width: 700px !important;
	height: 400px !important;
	max-width: 700px !important;
	max-height: 400px !important;
	margin: 0 auto;
	background: #f8f5ed !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	box-shadow: 0 28px 75px rgba(0, 0, 0, 0.48), 0 2px 10px rgba(0, 0, 0, 0.22) !important;
	opacity: 0;
	transform: translateY(10px) scale(.985);
	transition: opacity 280ms ease, transform 280ms cubic-bezier(.22, 1, .36, 1);
}

#hv-popup.hv-visible .hv-modal {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* ================================================================
   LEFT / IMAGE PANEL
   ================================================================ */
#hv-popup .hv-left {
	position: relative;
	min-width: 0;
	height: 400px;
	background-color: #101821;
	background-size: cover, cover;
	background-position: center center, center center;
	background-repeat: no-repeat, no-repeat;
	overflow: hidden;
}

#hv-popup .hv-left::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(4, 8, 13, .30) 0%,
		rgba(4, 8, 13, .03) 40%,
		rgba(4, 8, 13, .46) 100%
	);
	pointer-events: none;
	z-index: 1;
}

#hv-popup .hv-left::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 1px;
	background: rgba(169, 131, 50, .45);
	z-index: 3;
	pointer-events: none;
}

#hv-popup .hv-left-top {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	padding: 26px 27px;
}

#hv-popup .hv-left-top p {
	margin: 0 0 4px !important;
	padding: 0 !important;
	font-size: 10px !important;
	line-height: 1.55 !important;
	font-weight: 600 !important;
	letter-spacing: .28em !important;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .91) !important;
}

#hv-popup .hv-gold-rule {
	display: block;
	width: 30px;
	height: 1px;
	margin-top: 11px;
	background: #a98332;
}

#hv-popup .hv-left-bottom {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	padding: 18px 27px 25px;
}

#hv-popup .hv-script {
	position: relative;
	display: inline-block;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 700;
	font-size: 21px;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: #fff !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

#hv-popup .hv-swoosh { display: none; }

/* ================================================================
   RIGHT / CONTENT PANEL
   ================================================================ */
#hv-popup .hv-right {
	position: relative;
	min-width: 0;
	height: 400px;
	padding: 18px 29px 10px;
	overflow: hidden;
	background: #f8f5ed !important;
}

#hv-popup .hv-right::after {
	content: "";
	position: absolute;
	right: -35px;
	bottom: -38px;
	width: 180px;
	height: 180px;
	border: 1px solid rgba(169, 131, 50, .045);
	border-radius: 50%;
	pointer-events: none;
}

#hv-popup .hv-watermark {
	position: absolute;
	top: 50%;
	right: -55px;
	transform: translateY(-43%);
	width: 205px;
	height: 205px;
	opacity: .045;
	pointer-events: none;
	z-index: 0;
}

#hv-popup .hv-right > *:not(.hv-watermark):not(.hv-corner) {
	position: relative;
	z-index: 1;
}

/* ================================================================
   CLOSE
   ================================================================ */
#hv-popup .hv-close {
	position: absolute !important;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	padding: 0 !important;
	border: 1px solid #d9d6cf !important;
	border-radius: 50% !important;
	background: rgba(248, 245, 237, .96) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 6;
	transition: transform .25s ease, border-color .2s ease, background .2s ease;
}

#hv-popup .hv-close svg { width: 12px; height: 12px; display: block; }
#hv-popup .hv-close:hover {
	transform: rotate(90deg);
	border-color: #a98332 !important;
	background: #fff !important;
}

/* ================================================================
   BRAND ROW
   ================================================================ */
#hv-popup .hv-logo-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 39px;
	margin: 0 25px 7px 0;
}

#hv-popup .hv-logo-rule {
	flex: 1 1 auto;
	max-width: 21px;
	height: 1px;
	background: #c7a65d;
	opacity: .78;
}

#hv-popup .hv-logo-stag {
	width: 29px;
	height: 29px;
	flex: 0 0 auto;
}

#hv-popup .hv-logo-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.08;
	white-space: nowrap;
}

#hv-popup .hv-logo-text strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .22em;
	color: #20252b !important;
}

#hv-popup .hv-logo-text em {
	margin-top: 4px;
	font-style: normal;
	font-size: 6px;
	font-weight: 500;
	letter-spacing: .43em;
	color: #9b8661 !important;
}

/* ================================================================
   HEADINGS
   ================================================================ */
#hv-popup .hv-eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 6px !important;
	font-size: 8px !important;
	line-height: 1.2 !important;
	font-weight: 600 !important;
	letter-spacing: .38em !important;
	text-transform: uppercase;
	color: #a98332 !important;
}

#hv-popup .hv-eyebrow::before {
	content: "";
	width: 22px;
	height: 1px;
	background: #b8944b;
	flex: 0 0 auto;
}

#hv-popup .hv-heading {
	margin: 0 0 8px !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px !important;
	line-height: .98 !important;
	font-weight: 500 !important;
	letter-spacing: -.025em !important;
	text-transform: uppercase;
}

#hv-popup .hv-heading span { display: block; }
#hv-popup .hv-heading .hv-h1 { color: #15191f !important; }
#hv-popup .hv-heading .hv-h2 {
	color: #a98332 !important;
	font-style: italic;
	font-weight: 500 !important;
}

#hv-popup .hv-para {
	max-width: 325px;
	margin: 0 0 10px !important;
	font-size: 11px !important;
	line-height: 1.45 !important;
	color: #5d6268 !important;
}

/* ================================================================
   FOUR BENEFITS
   ================================================================ */
#hv-popup .hv-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0 0 9px;
	padding: 8px 0 7px;
	border-top: 1px solid #d9d5cc;
	border-bottom: 1px solid #d9d5cc;
}

#hv-popup .hv-feature {
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 50px;
	padding: 0 5px;
	text-align: center;
}

#hv-popup .hv-feature + .hv-feature { border-left: 1px solid #ddd9d0; }

#hv-popup .hv-feature svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

#hv-popup .hv-feature svg g,
#hv-popup .hv-feature svg path,
#hv-popup .hv-feature svg rect,
#hv-popup .hv-feature svg circle {
	stroke: #a98332 !important;
	stroke-width: 1.45 !important;
}

#hv-popup .hv-feature span {
	font-size: 8px !important;
	line-height: 1.22 !important;
	font-weight: 500 !important;
	letter-spacing: .075em !important;
	text-transform: uppercase;
	color: #3f454b !important;
}

#hv-popup .hv-divider { display: none; }

/* ================================================================
   FORM
   ================================================================ */
#hv-popup .hv-field {
	position: relative;
	margin: 0 0 6px;
}

#hv-popup .hv-field-icon {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	width: 14px;
	height: 14px;
	pointer-events: none;
	opacity: .8;
}

#hv-popup .hv-field-icon g,
#hv-popup .hv-field-icon rect,
#hv-popup .hv-field-icon path {
	stroke: #a98332 !important;
	stroke-width: 1.35 !important;
}

#hv-popup .hv-field input {
	display: block;
	width: 100% !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 13px 0 38px !important;
	border: 1px solid #c8a25b !important;
	border-radius: 6px !important;
	outline: none !important;
	background: #fffdf9 !important;
	box-shadow: 0 0 0 2px rgba(169, 131, 50, .07) !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	color: #252a31 !important;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#hv-popup .hv-field input::placeholder { color: #a4a6a8 !important; opacity: 1; }

#hv-popup .hv-field input:focus {
	background: #fff !important;
	border-color: #a98332 !important;
	box-shadow: 0 0 0 3px rgba(169, 131, 50, .13) !important;
}

#hv-popup .hv-field.hv-invalid input {
	border-color: #c73535 !important;
	box-shadow: 0 0 0 3px rgba(199, 53, 53, .08) !important;
	animation: hv-shake .38s ease;
}

#hv-popup .hv-error {
	margin: -1px 0 5px !important;
	font-size: 10px !important;
	line-height: 1.2 !important;
	color: #c73535 !important;
}

@keyframes hv-shake {
	0%,100% { transform: translateX(0); }
	20% { transform: translateX(-5px); }
	40% { transform: translateX(4px); }
	60% { transform: translateX(-3px); }
	80% { transform: translateX(2px); }
}

#hv-popup .hv-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100% !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 17px !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #151a20 !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: .23em !important;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 7px 14px rgba(16, 20, 26, .16) !important;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

#hv-popup .hv-btn svg { width: 13px; height: 13px; flex: 0 0 auto; transition: transform .2s ease; }
#hv-popup .hv-btn:hover {
	background: #1d2731 !important;
	transform: translateY(-1px);
	box-shadow: 0 9px 18px rgba(16, 20, 26, .2) !important;
}
#hv-popup .hv-btn:hover svg { transform: translateX(3px); }
#hv-popup .hv-btn:active { transform: translateY(0); }

#hv-popup .hv-reassure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin: 7px 0 0 !important;
	font-size: 8.5px !important;
	line-height: 1.1 !important;
	letter-spacing: .02em;
	color: #999b9b !important;
}

#hv-popup .hv-reassure svg { width: 9px; height: 9px; flex: 0 0 auto; }

/* ================================================================
   SUCCESS STATE
   ================================================================ */
#hv-popup .hv-success {
	text-align: center;
	padding: 10px 0 0;
}

#hv-popup .hv-success .hv-check {
	display: block;
	width: 54px;
	height: 54px;
	margin: 0 auto 8px;
	animation: hv-pop .42s cubic-bezier(.2, 1.35, .4, 1);
}

@keyframes hv-pop {
	0% { transform: scale(.55); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

#hv-popup .hv-success h3 {
	margin: 0 0 5px !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 20px !important;
	line-height: 1.1 !important;
	font-style: italic;
	font-weight: 700 !important;
	color: #20242a !important;
}

#hv-popup .hv-success p {
	margin: 0 !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
	color: #7a7e83 !important;
}

/* The old decorative wedge was not part of the reference UI. */
#hv-popup .hv-corner { display: none !important; }

/* ================================================================
   RESPONSIVE / MOBILE REFERENCE
   ================================================================ */
@media (max-width: 768px) {
	#hv-popup {
		align-items: center;
		padding: 20px;
		overflow-y: auto;
	}

	#hv-popup .hv-modal {
		display: grid !important;
		grid-template-columns: 1fr;
		width: min(100%, 464px) !important;
		height: auto !important;
		max-width: 464px !important;
		max-height: none !important;
		border-radius: 16px !important;
	}

	#hv-popup .hv-left {
		height: 170px;
		min-height: 170px;
		background-position: center 30%, center;
	}

	#hv-popup .hv-left::before { display: none; }
	#hv-popup .hv-left-top { display: none; }

	#hv-popup .hv-left-bottom {
		padding: 17px 22px 18px;
	}

	#hv-popup .hv-script {
		font-size: 20px;
		line-height: 1.25;
	}

	#hv-popup .hv-script br { display: none; }

	#hv-popup .hv-right {
		height: auto;
		min-height: 496px;
		padding: 18px 22px 21px;
	}

	#hv-popup .hv-close {
		top: 14px;
		right: 14px;
		width: 30px;
		height: 30px;
	}

	#hv-popup .hv-logo-row {
		height: 38px;
		margin-right: 28px;
		margin-bottom: 8px;
	}

	#hv-popup .hv-logo-stag { width: 28px; height: 28px; }

	#hv-popup .hv-logo-text strong {
		font-size: 14px;
		letter-spacing: .21em;
	}

	#hv-popup .hv-logo-text em {
		font-size: 6px;
		letter-spacing: .42em;
	}

	#hv-popup .hv-eyebrow { margin-bottom: 7px !important; font-size: 8px !important; }

	#hv-popup .hv-heading {
		font-size: 29px !important;
		line-height: .98 !important;
		margin-bottom: 9px !important;
	}

	#hv-popup .hv-para {
		max-width: none;
		font-size: 12px !important;
		line-height: 1.48 !important;
		margin-bottom: 10px !important;
	}

	#hv-popup .hv-features {
		grid-template-columns: repeat(2, 1fr);
		padding: 12px 0;
		margin-bottom: 10px;
	}

	#hv-popup .hv-feature {
		min-height: 53px;
		padding: 0 7px;
		gap: 6px;
	}

	#hv-popup .hv-feature:nth-child(3),
	#hv-popup .hv-feature:nth-child(4) {
		border-top: 1px solid #ddd9d0;
		padding-top: 12px;
	}

	#hv-popup .hv-feature:nth-child(3) { border-left: 0; }
	#hv-popup .hv-feature svg { width: 18px; height: 18px; }
	#hv-popup .hv-feature span { font-size: 9px !important; letter-spacing: .075em !important; }

	#hv-popup .hv-field { margin-bottom: 6px; }
	#hv-popup .hv-field input { height: 49px !important; font-size: 12px !important; border-radius: 6px !important; }
	#hv-popup .hv-btn { height: 50px !important; font-size: 11px !important; border-radius: 4px !important; }
	#hv-popup .hv-reassure { margin-top: 8px !important; font-size: 9px !important; }

	#hv-popup .hv-success { padding-top: 13px; }
	#hv-popup .hv-success .hv-check { width: 55px; height: 55px; margin-bottom: 9px; }
	#hv-popup .hv-success h3 { font-size: 21px !important; }
	#hv-popup .hv-success p { font-size: 11px !important; }

	#hv-popup .hv-watermark {
		width: 230px;
		height: 230px;
		right: -65px;
		top: 55%;
	}
}

@media (max-width: 430px) {
	#hv-popup { padding: 12px; }
	#hv-popup .hv-modal { width: 100% !important; }
	#hv-popup .hv-left { height: 160px; min-height: 160px; }
	#hv-popup .hv-right { min-height: 500px; padding-left: 20px; padding-right: 20px; }
	#hv-popup .hv-heading { font-size: 27px !important; }
	#hv-popup .hv-feature span { font-size: 8.5px !important; }
}

@media (prefers-reduced-motion: reduce) {
	#hv-popup .hv-modal,
	#hv-popup .hv-close,
	#hv-popup .hv-btn,
	#hv-popup .hv-btn svg { transition: none; }
	#hv-popup .hv-success .hv-check,
	#hv-popup .hv-field.hv-invalid input { animation: none; }
}
