/**
 * Platz K9 — Newsletter Popup Styles
 * Modal con overlay, responsive, accesible.
 */

/* Overlay */
.pk9-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.pk9-popup-overlay.pk9-popup-active {
	display: flex;
	opacity: 1;
}

/* Modal */
.pk9-popup-modal {
	position: relative;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	max-width: 420px;
	width: 90%;
	padding: 32px 28px 28px;
	text-align: center;
	transform: translateY(20px);
	transition: transform 0.3s ease;
}
.pk9-popup-overlay.pk9-popup-active .pk9-popup-modal {
	transform: translateY(0);
}

/* Close button */
.pk9-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none !important;
	border: none !important;
	padding: 4px !important;
	cursor: pointer;
	color: #999 !important;
	font-size: 22px;
	line-height: 1;
	border-radius: 50% !important;
	width: 32px;
	height: 32px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: color 0.2s, background 0.2s;
	box-shadow: none !important;
}
.pk9-popup-close:hover {
	color: #333 !important;
	background: #f0f0f0 !important;
}

/* Logo */
.pk9-popup-logo {
	max-height: 48px;
	width: auto;
	margin: 0 auto 16px;
	display: block;
}

/* Typography */
.pk9-popup-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 6px;
	line-height: 1.3;
}
.pk9-popup-subtitle {
	font-size: 14px;
	color: #666;
	margin: 0 0 20px;
	line-height: 1.5;
}

/* Form */
.pk9-popup-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pk9-popup-email {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
}
.pk9-popup-email:focus {
	border-color: #f5a623;
}

/* RGPD checkbox */
.pk9-popup-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	text-align: left;
	font-size: 12px;
	color: #888;
	line-height: 1.4;
}
.pk9-popup-consent input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}
.pk9-popup-consent a {
	color: #0088cc;
	text-decoration: underline;
}

/* Submit button */
.pk9-popup-submit {
	width: 100%;
	padding: 13px 20px !important;
	background: #e63946 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s !important;
	box-shadow: none !important;
}
.pk9-popup-submit:hover {
	background: #c5303c !important;
}
.pk9-popup-submit:active {
	transform: scale(0.98);
}
.pk9-popup-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Legal text */
.pk9-popup-legal {
	font-size: 11px;
	color: #aaa;
	margin: 4px 0 0;
	line-height: 1.4;
}

/* Error message */
.pk9-popup-error {
	color: #e63946;
	font-size: 13px;
	font-weight: 600;
	margin: 0;
	min-height: 18px;
}

/* Success state */
.pk9-popup-success {
	text-align: center;
}
.pk9-popup-success-icon {
	font-size: 48px;
	margin-bottom: 12px;
	display: block;
}
.pk9-popup-coupon-code {
	display: inline-block;
	background: #f0fff4;
	color: #166534;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 2px;
	padding: 10px 24px;
	border-radius: 8px;
	border: 2px dashed #22c55e;
	margin: 12px 0;
	font-family: monospace;
}
.pk9-popup-copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #166534 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 8px 18px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: background 0.2s !important;
	box-shadow: none !important;
}
.pk9-popup-copy-btn:hover {
	background: #14532d !important;
}

/* Mobile */
@media (max-width: 480px) {
	.pk9-popup-modal {
		width: 95%;
		padding: 24px 20px 20px;
	}
	.pk9-popup-title {
		font-size: 19px;
	}
}
