/*
 * Exclusive Discount lead-capture popup. Hand-written native CSS (not
 * Tailwind utility classes) for the same reason every other layout-critical
 * piece in this theme is: the Tailwind CDN script JIT-compiles on the
 * client, so relying on its classes for a fixed-position overlay/grid risks
 * a flash of broken layout. Colors reuse the site's real design tokens
 * (primary teal / tertiary gold) rather than the unrelated navy+gold from
 * the reference screenshot, per "follow the website color theme."
 */

#pr-discount-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

#pr-discount-popup.is-open {
	display: flex;
}

#pr-discount-popup .pr-discount-overlay {
	position: absolute;
	inset: 0;
	background: rgba(6, 20, 18, 0.72);
	backdrop-filter: blur(3px);
	animation: pr-discount-fade 0.25s ease-out;
}

#pr-discount-popup .pr-discount-card {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: 24px;
	padding: 32px 28px 24px;
	background: linear-gradient(160deg, #0e2b27 0%, #071a17 55%, #051411 100%);
	border: 1px solid rgba(255, 185, 95, 0.18);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	animation: pr-discount-pop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.15);
}

@keyframes pr-discount-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pr-discount-pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

#pr-discount-popup .pr-discount-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	transition: background 0.15s ease;
}
#pr-discount-popup .pr-discount-close:hover { background: rgba(255, 255, 255, 0.18); }

#pr-discount-popup .pr-discount-badges {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
#pr-discount-popup .pr-discount-pill {
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 185, 95, 0.45);
	color: #ffb95f;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}
#pr-discount-popup .pr-discount-off {
	padding: 10px 22px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ffd68a 0%, #ffb95f 60%, #f5a02e 100%);
	color: #2a1700;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	box-shadow: 0 8px 20px rgba(255, 185, 95, 0.35);
	white-space: nowrap;
}

#pr-discount-popup .pr-discount-heading {
	text-align: center;
	color: #ffffff;
	font-size: 26px;
	font-weight: 800;
	margin: 0 0 6px;
	font-family: var(--pr-font-heading, 'Manrope', sans-serif);
}
#pr-discount-popup .pr-discount-subheading {
	text-align: center;
	color: #9cf2e8;
	font-size: 15px;
	font-weight: 500;
	margin: 0 0 16px;
}
#pr-discount-popup .pr-discount-desc {
	text-align: center;
	color: rgba(255, 255, 255, 0.65);
	font-size: 13.5px;
	line-height: 1.5;
	margin: 0 0 22px;
}

#pr-discount-popup .pr-discount-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}
#pr-discount-popup .pr-discount-field { display: flex; flex-direction: column; gap: 6px; }
#pr-discount-popup .pr-discount-field.full { grid-column: 1 / -1; }
#pr-discount-popup .pr-discount-label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
#pr-discount-popup .pr-discount-label .material-symbols-outlined { font-size: 15px; }

#pr-discount-popup .pr-discount-required { color: #ff8a8a; margin-left: 2px; }

/* Honeypot — visually/off-screen hidden (not display:none, which some
   spam bots specifically skip when auto-filling forms) and unreachable
   via keyboard/AT so real visitors never notice or interact with it. */
#pr-discount-popup .pr-discount-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	width: 0;
	overflow: hidden;
}

#pr-discount-popup textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
	min-height: 56px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
#pr-discount-popup textarea::placeholder { color: rgba(255, 255, 255, 0.32); }
#pr-discount-popup textarea:focus {
	outline: none;
	border-color: #ffb95f;
	background: rgba(255, 255, 255, 0.08);
}

#pr-discount-popup input,
#pr-discount-popup select {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.05);
	color: #ffffff;
	font-size: 14px;
	font-family: inherit;
	appearance: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}
#pr-discount-popup input::placeholder { color: rgba(255, 255, 255, 0.32); }
#pr-discount-popup input:focus,
#pr-discount-popup select:focus {
	outline: none;
	border-color: #ffb95f;
	background: rgba(255, 255, 255, 0.08);
}
#pr-discount-popup select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 36px;
}
#pr-discount-popup select option { background: #0e2b27; color: #ffffff; }

#pr-discount-popup .pr-discount-submit {
	width: 100%;
	margin-top: 6px;
	padding: 15px;
	border: none;
	border-radius: 14px;
	background: linear-gradient(135deg, #ffd68a 0%, #ffb95f 55%, #f5a02e 100%);
	color: #2a1700;
	font-size: 15px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(255, 185, 95, 0.3);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#pr-discount-popup .pr-discount-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(255, 185, 95, 0.4); }
#pr-discount-popup .pr-discount-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

#pr-discount-popup .pr-discount-secure {
	text-align: center;
	color: rgba(255, 255, 255, 0.4);
	font-size: 11.5px;
	margin: 14px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
#pr-discount-popup .pr-discount-secure .material-symbols-outlined { font-size: 13px; }

#pr-discount-popup .pr-discount-error {
	display: none;
	color: #ff8a8a;
	font-size: 12.5px;
	text-align: center;
	margin: -6px 0 12px;
}
#pr-discount-popup .pr-discount-error.is-visible { display: block; }

#pr-discount-popup .pr-discount-success {
	display: none;
	text-align: center;
	padding: 12px 0 4px;
}
#pr-discount-popup .pr-discount-success.is-visible { display: block; }
#pr-discount-popup .pr-discount-success .material-symbols-outlined {
	font-size: 44px;
	color: #22c55e;
	margin-bottom: 10px;
}
#pr-discount-popup .pr-discount-success p { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin: 6px 0; }
#pr-discount-popup .pr-discount-success .pr-discount-code {
	display: inline-block;
	margin: 10px 0;
	padding: 10px 18px;
	border-radius: 10px;
	background: rgba(255, 185, 95, 0.12);
	border: 1px dashed #ffb95f;
	color: #ffb95f;
	font-weight: 800;
	font-size: 17px;
	letter-spacing: 0.04em;
}

@media (max-width: 420px) {
	#pr-discount-popup .pr-discount-card { padding: 26px 20px 20px; border-radius: 20px; }
	#pr-discount-popup .pr-discount-heading { font-size: 22px; }
	#pr-discount-popup .pr-discount-off { font-size: 18px; padding: 8px 16px; }
}
