/* =====================================================
   Email Capture Popup
   ===================================================== */

.ph-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.60);
	z-index: 99999;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.ph-popup-overlay.is-visible {
	opacity: 1;
	pointer-events: all;
}

.ph-popup-box {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 460px;
	width: 100%;
	overflow: hidden;
	transform: translateY(28px) scale(0.97);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s;
	opacity: 0;
	box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.ph-popup-overlay.is-visible .ph-popup-box {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.ph-popup-content {
	padding: 44px 36px 36px;
	text-align: center;
}

.ph-popup-badge {
	display: inline-block;
	background: #e8460e;
	color: #fff;
	font-size: 28px;
	font-weight: 900;
	padding: 12px 24px;
	border-radius: 12px;
	margin-bottom: 18px;
	letter-spacing: -0.02em;
	line-height: 1;
}

.ph-popup-content h2 {
	font-size: 22px;
	font-weight: 800;
	color: #151515;
	margin: 0 0 10px;
	line-height: 1.25;
}

.ph-popup-content p {
	font-size: 14px;
	color: #555;
	margin: 0 0 20px;
	line-height: 1.55;
}

.ph-popup-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ph-popup-form input[type="email"] {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s;
	background: #fafafa;
	box-sizing: border-box;
}

.ph-popup-form input[type="email"]:focus {
	border-color: #e8460e;
	background: #fff;
}

.ph-popup-form button[type="submit"] {
	width: 100%;
	background: #e8460e;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	text-transform: uppercase;
}

.ph-popup-form button[type="submit"]:hover {
	background: #c93a0b;
	transform: translateY(-1px);
}

.ph-popup-small {
	font-size: 11.5px !important;
	color: #aaa !important;
	margin: 12px 0 0 !important;
}

.ph-popup-success {
	padding: 10px 16px;
	background: #f0fdf4;
	border: 1.5px solid #86efac;
	border-radius: 8px;
	color: #166534;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	display: none;
}

.ph-popup-success .ph-success-code {
	display: inline-block;
	margin-top: 8px;
	background: #151515;
	color: #fff;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 16px;
	font-weight: 900;
	letter-spacing: 0.08em;
	cursor: pointer;
}

.ph-popup-error {
	font-size: 12px;
	color: #dc2626;
	margin: 4px 0 0;
	display: none;
}

.ph-popup-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #aaa;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	transition: color 0.18s, background 0.18s;
	z-index: 2;
}

.ph-popup-close:hover {
	color: #333;
	background: #f5f5f5;
}

@media (max-width: 500px) {
	.ph-popup-content {
		padding: 36px 22px 28px;
	}
	.ph-popup-badge {
		font-size: 24px;
	}
	.ph-popup-content h2 {
		font-size: 19px;
	}
}
