/* ══════════════════════════════════════════════════════════════════════
   C4 Signup Popup — matches the live site (c4-navbar / c4-hero).
   Palette: black · royal blue #0239cc (CTA) · gold #f5a623 (accent).
   Type: Anton (skewed uppercase headings) + Inter.
   ══════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800;900&display=swap');

.c4sp__overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .78);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity .3s ease;
}
.c4sp__overlay.is-open { opacity: 1; }
.c4sp__overlay[hidden] { display: none; }

.c4sp__box {
	position: relative;
	width: 100%;
	max-width: 410px;
	padding: 38px 30px 30px;
	background: #0a0a0a;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
	color: #ffffff;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	text-align: center;
	transform: translateY(14px);
	transition: transform .35s ease;
	overflow: hidden;
}
.c4sp__overlay.is-open .c4sp__box { transform: translateY(0); }

/* Gold top accent line (like the site's cart/accent gold) */
.c4sp__box::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, #f5a623, #ffcf7a 40%, transparent);
}
/* Faint royal-blue glow behind the header for depth */
.c4sp__box::after {
	content: '';
	position: absolute;
	top: -60px; left: 50%;
	width: 260px; height: 160px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(2, 57, 204, .35), transparent 70%);
	pointer-events: none;
}
.c4sp__box > * { position: relative; z-index: 1; }

/* Close */
.c4sp__close {
	position: absolute;
	top: 11px; right: 13px;
	z-index: 2;
	background: none;
	border: none;
	color: rgba(255, 255, 255, .45);
	font-size: 24px;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
	transition: color .15s;
}
.c4sp__close:hover { color: #fff; }

/* Logo */
.c4sp__logo { max-height: 46px; width: auto; margin: 0 auto 16px; display: block; }
.c4sp__logo-text {
	font-family: 'Anton', sans-serif;
	font-size: 30px;
	letter-spacing: 3px;
	text-transform: uppercase;
	margin-bottom: 14px;
	transform: skewX(-6deg);
}

/* Headings */
.c4sp__heading {
	font-family: 'Anton', sans-serif;
	font-size: 33px;
	line-height: 1.05;
	color: #ffffff; /* explicit — themes set a dark default on h2, which was making "UNLOCK" black */
	text-transform: uppercase;
	letter-spacing: .5px;
	margin: 0 0 10px;
	transform: skewX(-6deg);
}
.c4sp__heading-accent { color: #f5a623; }
.c4sp__subhead {
	font-size: 13.5px;
	line-height: 1.55;
	color: #9aa3b2;
	margin: 0 0 20px;
}

/* Fields */
.c4sp__form { text-align: left; }
.c4sp__field { margin-bottom: 12px; }
.c4sp__label {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #b7becb;
	margin-bottom: 5px;
}
.c4sp__optional {
	font-weight: 600;
	letter-spacing: .3px;
	text-transform: none;
	color: #6c7688;
	font-size: 10.5px;
}
.c4sp__input {
	width: 100%;
	padding: 11px 13px;
	background: #14161f;
	border: 1.5px solid rgba(255, 255, 255, .14);
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	box-sizing: border-box;
	transition: border-color .15s, box-shadow .15s;
}
.c4sp__input::placeholder { color: #6c7688; }
.c4sp__input:focus { border-color: #f5a623; box-shadow: 0 0 0 3px rgba(245, 166, 35, .14); }
.c4sp__input--invalid { border-color: #e33434; }
.c4sp__input--invalid:focus { box-shadow: 0 0 0 3px rgba(227, 52, 52, .16); }

/* Consent */
.c4sp__consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 8px 0 2px;
	font-size: 10.5px;
	line-height: 1.5;
	color: #7f8896;
	text-align: left;
	cursor: pointer;
}
.c4sp__consent input { margin-top: 1px; flex: 0 0 auto; accent-color: #0239cc; }
.c4sp__consent a { color: #f5a623; text-decoration: underline; }

/* Errors */
.c4sp__error {
	display: block;
	color: #ff6b6b;
	font-size: 11px;
	margin-top: 4px;
}
.c4sp__error--form { text-align: center; margin-top: 10px; }

/* Submit — royal blue CTA, matches navbar "Enter Now" */
.c4sp__submit {
	position: relative;
	width: 100%;
	margin-top: 14px;
	padding: 14px 20px;
	background: #0239cc;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .7px;
	text-transform: uppercase;
	border: 1.5px solid #0239cc;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s, border-color .15s, transform .15s;
}
.c4sp__submit:hover { background: #0230b0; border-color: #0230b0; transform: translateY(-1px); }
.c4sp__submit:disabled { opacity: .65; cursor: default; transform: none; }
.c4sp__submit.is-loading .c4sp__submit-label { visibility: hidden; }
.c4sp__spinner { display: none; }
.c4sp__submit.is-loading .c4sp__spinner {
	display: block;
	position: absolute;
	top: 50%; left: 50%;
	width: 18px; height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: c4spSpin .7s linear infinite;
}
@keyframes c4spSpin { to { transform: rotate(360deg); } }

/* ── Success view ── */
.c4sp__tick {
	width: 56px; height: 56px;
	margin: 0 auto 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #22c55e;
	background: rgba(34, 197, 94, .12);
	border: 1.5px solid rgba(34, 197, 94, .35);
	border-radius: 50%;
}
.c4sp__code-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 18px 0;
	padding: 12px 14px 12px 18px;
	background: rgba(245, 166, 35, .09);
	border: 1.5px dashed rgba(245, 166, 35, .55);
	border-radius: 8px;
}
.c4sp__code {
	font-family: 'Anton', monospace;
	font-size: 26px;
	letter-spacing: 3px;
	color: #f5a623;
	transform: skewX(-6deg);
}
.c4sp__copy {
	background: #0239cc;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 15px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .5px;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s;
}
.c4sp__copy:hover { background: #0230b0; }
.c4sp__shop {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 20px;
	background: #0239cc;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .7px;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 6px;
	transition: background .15s;
}
.c4sp__shop:hover { background: #0230b0; }
.c4sp__success-note {
	font-size: 10.5px;
	color: rgba(255, 255, 255, .32);
	margin: 12px 0 0;
}

/* Views */
.c4sp__view[hidden] { display: none; }

/* Mobile */
@media (max-width: 480px) {
	.c4sp__box { padding: 34px 20px 24px; border-radius: 12px; }
	.c4sp__heading { font-size: 28px; }
}
