/* Newsletter Popup Lightbox — CSS-only visibility toggle */

.newsletter-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

#newsletter-popup-toggle:checked ~ .newsletter-popup-overlay {
	display: flex;
}

.newsletter-popup-card {
	background: #ffffff;
	border-radius: 12px;
	max-width: 480px;
	width: 100%;
	padding: 40px;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	font-family: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.newsletter-popup-close {
	position: absolute;
	top: 16px;
	right: 20px;
	font-size: 28px;
	line-height: 1;
	color: #686868;
	cursor: pointer;
	text-decoration: none;
	border: none;
	background: none;
}

.newsletter-popup-close:hover {
	color: #111111;
}

.newsletter-popup-card h2 {
	margin: 0 0 8px 0;
	font-size: 24px;
	font-weight: 700;
	color: #111111;
	line-height: 1.3;
}

.newsletter-popup-card .newsletter-popup-tagline {
	margin: 0 0 24px 0;
	font-size: 15px;
	line-height: 1.6;
	color: #686868;
}

.newsletter-popup-card input[type="text"],
.newsletter-popup-card input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	border: 1px solid #d0d0d0;
	border-radius: 0.25rem;
	font-size: 15px;
	font-family: inherit;
	margin-bottom: 12px;
	color: #111111;
	background: #ffffff;
}

.newsletter-popup-card input[type="text"]:focus,
.newsletter-popup-card input[type="email"]:focus {
	outline: none;
	border-color: #111111;
}

.newsletter-popup-card .newsletter-popup-gdpr {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.5;
	color: #686868;
}

.newsletter-popup-card .newsletter-popup-gdpr input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.newsletter-popup-card button[type="submit"] {
	display: inline-block;
	padding: 0.75rem 2rem;
	background: #111111;
	color: #ffffff;
	border: none;
	border-radius: 9999px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: opacity 0.2s;
}

.newsletter-popup-card button[type="submit"]:hover {
	opacity: 0.85;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
	.newsletter-popup-card {
		background: #2a2a2a !important;
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	}

	.newsletter-popup-close {
		color: #999999;
	}

	.newsletter-popup-close:hover {
		color: #e0e0e0;
	}

	.newsletter-popup-card h2 {
		color: #e0e0e0 !important;
	}

	.newsletter-popup-card .newsletter-popup-tagline {
		color: #aaaaaa !important;
	}

	.newsletter-popup-card input[type="text"],
	.newsletter-popup-card input[type="email"] {
		background: #333333 !important;
		border-color: #555555 !important;
		color: #e0e0e0 !important;
	}

	.newsletter-popup-card .newsletter-popup-gdpr {
		color: #aaaaaa !important;
	}

	.newsletter-popup-card button[type="submit"] {
		background: #e0e0e0 !important;
		color: #1a1a1a !important;
	}
}

/* Mobile */
@media screen and (max-width: 600px) {
	.newsletter-popup-card {
		padding: 28px 20px;
	}

	.newsletter-popup-card h2 {
		font-size: 20px;
	}
}
