/**
 * NextWave Platform — Campaign Landing Page Styles
 *
 * Extracted from assets/templates/campaign-landing.php.
 * Dynamic CSS custom properties (--nwp-primary, etc.) are set via
 * a small inline <style> block in the template.
 *
 * @package NextWave_Platform
 */

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
/* Touch: avoid accidental zoom and improve tap response on all platforms */
input, select, button, a {
	touch-action: manipulation;
}
body {
	font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: #0d0d1a;
	background-image:
		radial-gradient(ellipse at 20% 50%, var(--nwp-primary-faint) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 20%, #ff6b9d18 0%, transparent 50%),
		radial-gradient(ellipse at 50% 80%, #4ecdc418 0%, transparent 50%);
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 16px;
	padding-left: max(16px, env(safe-area-inset-left));
	padding-right: max(16px, env(safe-area-inset-right));
	padding-bottom: max(16px, env(safe-area-inset-bottom));
	padding-top: max(16px, env(safe-area-inset-top));
	color: #333;
	position: relative;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
/* Floating sparkle dots */
body::before, body::after {
	content: '';
	position: fixed;
	border-radius: 50%;
	pointer-events: none;
	animation: nwp-float 6s ease-in-out infinite;
}
body::before {
	width: 300px; height: 300px;
	background: radial-gradient(circle, var(--nwp-glow) 0%, transparent 70%);
	top: -100px; right: -100px;
	animation-delay: -2s;
}
body::after {
	width: 200px; height: 200px;
	background: radial-gradient(circle, #ff6b9d33 0%, transparent 70%);
	bottom: -50px; left: -50px;
	animation-delay: -4s;
}
@keyframes nwp-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33% { transform: translate(20px, -30px) scale(1.1); }
	66% { transform: translate(-15px, 15px) scale(0.95); }
}

.nwp-signup-container {
	background: #fff;
	border-radius: 20px;
	box-shadow:
		0 25px 80px rgba(0,0,0,0.4),
		0 0 40px var(--nwp-glow);
	max-width: 500px;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	position: relative;
	z-index: 1;
	margin: 16px 0 24px;
	flex-shrink: 0;
}
.nwp-signup-header {
	background: linear-gradient(135deg, var(--nwp-primary) 0%, var(--nwp-primary-dark) 50%, #1a1a2e 100%);
	color: #fff;
	padding: 24px 20px 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
/* Subtle shimmer overlay */
.nwp-signup-header::after {
	content: '';
	position: absolute;
	top: 0; left: -100%; right: 0; bottom: 0;
	background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
	width: 300%;
	animation: nwp-shimmer 4s ease-in-out infinite;
}
@keyframes nwp-shimmer {
	0% { transform: translateX(-33%); }
	100% { transform: translateX(33%); }
}
.nwp-signup-header > * { position: relative; z-index: 1; }
.nwp-signup-header img {
	max-height: 56px;
	margin-bottom: 12px;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.nwp-brand-name {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	color: rgba(255,255,255,0.7);
	margin-bottom: 8px;
}
.nwp-signup-header h1 {
	font-size: 22px;
	font-weight: 800;
	margin-bottom: 8px;
	line-height: 1.25;
	text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.nwp-signup-header p {
	font-size: 14px;
	opacity: 0.9;
	line-height: 1.5;
	max-width: 100%;
	margin: 0 auto;
}
.nwp-tagline {
	display: inline-block;
	margin-top: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255,255,255,0.5);
	border-top: 1px solid rgba(255,255,255,0.15);
	padding-top: 12px;
}
.nwp-signup-body {
	padding: 20px 16px 24px;
}
.nwp-form-group {
	margin-bottom: 18px;
}
.nwp-form-group label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 6px;
	color: #2d2d3d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.nwp-form-group select,
/* Custom campaign fields can be any input type — a `url` or `date` field was
   falling through these selectors and rendering as an unstyled browser default
   in the middle of a styled form. */
.nwp-form-group input[type="text"],
.nwp-form-group input[type="email"],
.nwp-form-group input[type="tel"],
.nwp-form-group input[type="number"],
.nwp-form-group input[type="url"],
.nwp-form-group input[type="search"],
.nwp-form-group input[type="date"],
.nwp-form-group textarea,
.nwp-form-group select {
	width: 100%;
	padding: 13px 16px;
	border: 2px solid #e5e5ed;
	border-radius: 10px;
	font-size: 16px;
	font-family: 'Karla', sans-serif;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
	background: #fafaff;
}
.nwp-form-group select:focus,
.nwp-form-group input:focus {
	border-color: var(--nwp-primary);
	box-shadow: 0 0 0 3px var(--nwp-glow);
	background: #fff;
}
.nwp-form-group select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
	cursor: pointer;
}
.nwp-form-group input.nwp-error {
	border-color: #e74c3c;
	box-shadow: 0 0 0 3px rgba(231,76,60,0.15);
}
.nwp-field-error {
	color: #e74c3c;
	font-size: 12px;
	font-weight: 600;
	margin-top: 4px;
	display: none;
}
.nwp-form-row {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.nwp-form-row .nwp-form-group {
	flex: 1;
	min-width: 0;
}

/* Opt-in checkboxes */
.nwp-optin-group {
	margin-bottom: 10px;
	padding: 14px 16px;
	background: #f8f7ff;
	border-radius: 10px;
	border: 1px solid #e5e5ed;
}
.nwp-optin-group + .nwp-optin-group {
	margin-top: -2px;
}
.nwp-optin-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.4;
	color: #444;
}
.nwp-optin-label input[type="checkbox"] {
	margin-top: 2px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	accent-color: var(--nwp-primary);
	cursor: pointer;
}
.nwp-optin-text {
	flex: 1;
}
.nwp-optin-text strong {
	color: #2d2d3d;
}
.nwp-optin-disclosure {
	display: block;
	font-size: 11px;
	color: #888;
	margin-top: 3px;
	line-height: 1.4;
}

.nwp-submit-btn {
	width: 100%;
	padding: 15px;
	background: linear-gradient(135deg, var(--nwp-primary) 0%, var(--nwp-primary-dark) 100%);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 800;
	font-family: 'Karla', sans-serif;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.2s;
	margin-top: 12px;
	box-shadow: 0 4px 20px var(--nwp-glow);
}
.nwp-submit-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 30px var(--nwp-glow);
}
.nwp-submit-btn:active { transform: translateY(0) scale(0.99); }
.nwp-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}
.nwp-signup-error {
	background: #fef2f2;
	color: #dc2626;
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 600;
	display: none;
	border: 1px solid #fecaca;
}
.nwp-signup-success {
	text-align: center;
	padding: 52px 32px;
	display: none;
}
.nwp-signup-success .nwp-checkmark {
	width: 90px;
	height: 90px;
	background: linear-gradient(135deg, var(--nwp-primary), #ff6b9d);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
	animation: nwp-pop 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.49);
	box-shadow: 0 8px 30px var(--nwp-glow);
}
.nwp-signup-success .nwp-checkmark svg {
	width: 44px;
	height: 44px;
	color: #fff;
}
.nwp-signup-success h2 {
	font-size: 26px;
	font-weight: 800;
	color: #1a1a2e;
	margin-bottom: 10px;
}
.nwp-signup-success p {
	color: #666;
	font-size: 16px;
	line-height: 1.5;
}
.nwp-game-cta {
	display: none;
	margin-top: 28px;
}
.nwp-game-cta a {
	display: inline-block;
	padding: 16px 40px;
	background: linear-gradient(135deg, var(--nwp-primary), #ff6b9d);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 60px;
	letter-spacing: 0.5px;
	box-shadow: 0 6px 24px var(--nwp-glow);
	animation: nwp-pulse 2s ease-in-out infinite;
	transition: transform 0.2s;
}
.nwp-game-cta a:hover {
	transform: scale(1.05);
}
@keyframes nwp-pulse {
	0%, 100% { box-shadow: 0 6px 24px var(--nwp-glow); }
	50% { box-shadow: 0 6px 40px var(--nwp-glow), 0 0 60px var(--nwp-glow); }
}
.nwp-powered-by {
	text-align: center;
	margin-top: 16px;
	padding-left: env(safe-area-inset-left);
	padding-right: env(safe-area-inset-right);
	padding-bottom: env(safe-area-inset-bottom);
	font-size: 11px;
	color: rgba(255,255,255,0.25);
	position: relative;
	z-index: 1;
}
/* Accessibility: Focus indicators */
*:focus-visible {
	outline: 3px solid var(--nwp-primary);
	outline-offset: 2px;
}
.nwp-submit-btn:focus-visible {
	outline-color: #fff;
	outline-offset: 3px;
}
/* Accessibility: Skip nav */
.nwp-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 24px;
	background: var(--nwp-primary);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border-radius: 0 0 8px 0;
}
.nwp-skip-link:focus {
	left: 0;
}
/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
/* Accessibility: Touch targets (min 44px) */
.nwp-optin-label {
	min-height: 44px;
}
.nwp-optin-label input[type="checkbox"] {
	min-width: 24px;
	min-height: 24px;
}
.nwp-campaign-main {
	flex: 1 0 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* Accessibility: Legal footer links */
.nwp-legal-footer {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 12px;
	padding-left: env(safe-area-inset-left);
	padding-right: env(safe-area-inset-right);
	padding-bottom: env(safe-area-inset-bottom);
	position: relative;
	z-index: 1;
}
.nwp-legal-footer a {
	color: rgba(255,255,255,0.4);
	text-decoration: none;
	font-size: 11px;
}
.nwp-legal-footer a:hover,
.nwp-legal-footer a:focus {
	color: rgba(255,255,255,0.7);
	text-decoration: underline;
}
/* Celebration field */
.nwp-celebration-field {
	margin-bottom: 18px;
	padding: 14px 16px;
	background: #f8f7ff;
	border-radius: 10px;
	border: 1px solid #e5e5ed;
}
.nwp-celebration-field > label {
	display: block;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 10px;
	color: #2d2d3d;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.nwp-celebration-field > label span {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #888;
	font-size: 12px;
}
.nwp-celebration-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.nwp-celebration-options label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #444;
	cursor: pointer;
	padding: 8px 14px;
	background: #fff;
	border: 2px solid #e5e5ed;
	border-radius: 50px;
	transition: border-color 0.15s, background 0.15s;
	min-height: 44px;
}
.nwp-celebration-options label:hover {
	border-color: var(--nwp-primary);
	background: var(--nwp-primary-light);
}
.nwp-celebration-options input[type="radio"] {
	accent-color: var(--nwp-primary);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.nwp-celebration-options input[type="radio"]:checked + * {
	color: var(--nwp-primary-dark);
}
.nwp-celebration-options label:has(input:checked) {
	border-color: var(--nwp-primary);
	background: var(--nwp-primary-light);
}

/* Honeypot */
.nwp-hp { position: absolute; left: -9999px; }
@keyframes nwp-pop {
	0% { transform: scale(0) rotate(-10deg); opacity: 0; }
	60% { transform: scale(1.15) rotate(3deg); opacity: 1; }
	100% { transform: scale(1) rotate(0); }
}
/* Confetti burst on success */
.nwp-confetti {
	position: absolute;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	pointer-events: none;
	animation: nwp-confetti-fall 2s ease-out forwards;
}
@keyframes nwp-confetti-fall {
	0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
	100% { transform: translateY(400px) rotate(720deg) scale(0.3); opacity: 0; }
}
/* ===== Tier Showcase Mode ===== */
.nwp-tier-mode {
	max-width: 560px;
}
.nwp-tier-badge {
	display: inline-block;
	background: var(--badge-color, var(--nwp-primary));
	color: #fff;
	padding: 6px 20px;
	border-radius: 50px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	margin-bottom: 14px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nwp-tier-showcase {
	padding: 20px 16px 20px;
	background: linear-gradient(180deg, #f8f7ff 0%, #fff 100%);
	border-bottom: 1px solid #eee;
}
.nwp-tier-pricing {
	text-align: center;
	margin-bottom: 24px;
}
.nwp-tier-price-main {
	line-height: 1;
}
.nwp-price-currency {
	font-size: 22px;
	font-weight: 800;
	color: var(--nwp-primary);
	vertical-align: top;
	position: relative;
	top: 5px;
}
.nwp-price-amount {
	font-size: 44px;
	font-weight: 800;
	color: #1a1a2e;
	letter-spacing: -2px;
}
.nwp-price-period {
	font-size: 16px;
	font-weight: 600;
	color: #888;
}
.nwp-tier-price-alt {
	font-size: 14px;
	color: #888;
	margin-top: 6px;
}
.nwp-tier-desc {
	text-align: center;
	color: #555;
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 22px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
}
.nwp-tier-features {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px 0;
	margin-bottom: 20px;
}
.nwp-tier-feature {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #2d2d3d;
}
.nwp-check-icon {
	width: 18px;
	height: 18px;
	color: var(--nwp-primary);
	flex-shrink: 0;
}
.nwp-tier-benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding-top: 4px;
}
.nwp-benefit-chip {
	display: inline-block;
	background: var(--nwp-primary-light);
	color: var(--nwp-primary-dark);
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
}
/* Mobile-first: hide decorative sparkles on very small viewports to reduce clutter */
@media (max-width: 380px) {
	body::before, body::after { display: none; }
}
/* Tablet and up: more padding, form row side-by-side */
@media (min-width: 520px) {
	body { padding: 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); padding-bottom: max(20px, env(safe-area-inset-bottom)); padding-top: max(20px, env(safe-area-inset-top)); }
	.nwp-signup-container { margin: 24px 0 32px; }
	.nwp-signup-header { padding: 28px 24px 24px; }
	.nwp-signup-header img { max-height: 64px; margin-bottom: 14px; }
	.nwp-signup-header h1 { font-size: 24px; }
	.nwp-signup-header p { font-size: 15px; max-width: 380px; }
	.nwp-signup-body { padding: 24px 20px 28px; }
	.nwp-form-row { flex-direction: row; gap: 14px; }
	.nwp-tier-showcase { padding: 24px 24px 22px; }
	.nwp-tier-features { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
	.nwp-price-amount { font-size: 48px; }
	.nwp-price-currency { font-size: 24px; top: 6px; }
}
/* Desktop: full padding and two-column tier features */
@media (min-width: 768px) {
	body { justify-content: center; padding: 24px; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); padding-bottom: max(24px, env(safe-area-inset-bottom)); padding-top: max(24px, env(safe-area-inset-top)); }
	.nwp-signup-container { margin: 24px 0; max-width: 500px; }
	.nwp-signup-header { padding: 36px 32px 28px; }
	.nwp-signup-header img { max-height: 72px; margin-bottom: 16px; }
	.nwp-brand-name { font-size: 13px; letter-spacing: 3px; margin-bottom: 10px; }
	.nwp-signup-header h1 { font-size: 28px; margin-bottom: 10px; }
	.nwp-signup-body { padding: 32px; }
	.nwp-tier-showcase { padding: 28px 32px 24px; }
	.nwp-price-amount { font-size: 56px; }
	.nwp-price-currency { font-size: 28px; top: 8px; }
}
