/* ============================================================
   TourZoom Lead Generation — Frontend Styles
   Brand: #3b71fe (blue), #1a3460 (navy), Plus Jakarta Sans
   ============================================================ */

/* ── Exit-Intent Popup ─────────────────────── */

.tz-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(26, 52, 96, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: tzPopFadeIn 0.25s ease-out;
}
.tz-popup-overlay.tz-popup-active {
	display: flex;
	align-items: center;
	justify-content: center;
}

@keyframes tzPopFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tzPopSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.tz-popup-card {
	background: #fff;
	border-radius: 16px;
	padding: 36px 32px 28px;
	max-width: 420px;
	width: 90vw;
	position: relative;
	box-shadow: 0 20px 60px rgba(26, 52, 96, 0.25);
	animation: tzPopSlideUp 0.3s ease-out 0.05s both;
	text-align: center;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.tz-popup-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	color: #94a3b8;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
	transition: color 0.15s;
}
.tz-popup-close:hover { color: #1a3460; }

.tz-popup-badge {
	display: inline-block;
	background: #eff6ff;
	color: #3b71fe;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 100px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 14px;
}
.tz-popup-card h2 {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 24px;
	font-weight: 400;
	color: #1a3460;
	margin: 0 0 8px;
	line-height: 1.3;
}
.tz-popup-sub {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 20px;
	line-height: 1.5;
}
.tz-popup-form { display: flex; flex-direction: column; gap: 10px; }
.tz-popup-form input[type="email"],
.tz-popup-form select {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid #e2e8f0;
	border-radius: 100px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.15s;
	box-sizing: border-box;
}
.tz-popup-form input[type="email"]:focus,
.tz-popup-form select:focus { border-color: #3b71fe; }
.tz-popup-form select { border-radius: 12px; }

.tz-popup-btn {
	width: 100%;
	padding: 13px 24px;
	background: #3b71fe;
	color: #fff;
	border: none;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
}
.tz-popup-btn:hover { background: #2b5ee0; }
.tz-popup-btn:active { transform: scale(0.98); }
.tz-popup-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.tz-popup-privacy { font-size: 11px; color: #94a3b8; margin-top: 12px; }
.tz-popup-privacy a { color: #3b71fe; text-decoration: underline; }

.tz-popup-success { display: none; text-align: center; padding: 12px 0; }
.tz-popup-success .tz-popup-check {
	width: 48px;
	height: 48px;
	background: #ecfdf5;
	color: #10b981;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 12px;
}
.tz-popup-success h3 { font-size: 18px; color: #1a3460; margin: 0 0 6px; font-weight: 700; }
.tz-popup-success p { font-size: 13px; color: #64748b; margin: 0; }

@media (max-width: 480px) {
	.tz-popup-card { padding: 28px 20px 22px; }
	.tz-popup-card h2 { font-size: 20px; }
}


/* ── Newsletter Footer Form ──────────────── */

.tzlg-newsletter--footer {
	background: #1a3460;
	padding: 32px 24px;
	text-align: center;
}
.tzlg-newsletter__heading {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 22px;
	font-weight: 400;
	color: #fff;
	margin: 0 0 6px;
}
.tzlg-newsletter__sub {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 18px;
}
.tzlg-newsletter__row {
	display: flex;
	gap: 8px;
	max-width: 480px;
	margin: 0 auto;
}
.tzlg-newsletter__input {
	flex: 1;
	padding: 12px 18px;
	border: 1.5px solid rgba(255,255,255,0.2);
	border-radius: 100px;
	font-size: 14px;
	font-family: inherit;
	background: rgba(255,255,255,0.08);
	color: #fff;
	outline: none;
	transition: border-color 0.15s;
}
.tzlg-newsletter__input::placeholder { color: rgba(255,255,255,0.4); }
.tzlg-newsletter__input:focus { border-color: #3b71fe; }

.tzlg-newsletter__btn {
	padding: 12px 24px;
	background: #3b71fe;
	color: #fff;
	border: none;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
}
.tzlg-newsletter__btn:hover { background: #2b5ee0; }
.tzlg-newsletter__btn:disabled { opacity: 0.6; cursor: not-allowed; }

.tzlg-newsletter__privacy {
	font-size: 11px;
	color: rgba(255,255,255,0.4);
	margin-top: 10px;
}
.tzlg-newsletter__privacy a { color: #3b71fe; text-decoration: underline; }

.tzlg-newsletter__msg {
	font-size: 13px;
	margin-top: 10px;
	padding: 8px 16px;
	border-radius: 8px;
}
.tzlg-newsletter__msg--success { background: #ecfdf5; color: #166534; }
.tzlg-newsletter__msg--error { background: #fef2f2; color: #991b1b; }

/* Shortcode variant (not in footer) */
.tzlg-newsletter--shortcode {
	background: #f8f9fc;
	padding: 28px 24px;
	border-radius: 12px;
	text-align: center;
}
.tzlg-newsletter--shortcode .tzlg-newsletter__heading { color: #1a3460; }
.tzlg-newsletter--shortcode .tzlg-newsletter__sub { color: #64748b; }
.tzlg-newsletter--shortcode .tzlg-newsletter__input {
	background: #fff;
	border-color: #e2e8f0;
	color: #1e293b;
}
.tzlg-newsletter--shortcode .tzlg-newsletter__input::placeholder { color: #94a3b8; }
.tzlg-newsletter--shortcode .tzlg-newsletter__privacy { color: #94a3b8; }

@media (max-width: 540px) {
	.tzlg-newsletter__row { flex-direction: column; }
	.tzlg-newsletter__btn { width: 100%; }
}


/* ── Newsletter Elementor CTA Widget ──────── */

.tzlg-cta {
	padding: 40px 24px;
	border-radius: 16px;
}
.tzlg-cta__inner {
	max-width: 600px;
	margin: 0 auto;
	text-align: center;
}
.tzlg-cta__heading {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 28px;
	font-weight: 400;
	margin: 0 0 8px;
	line-height: 1.3;
}
.tzlg-cta__sub {
	font-size: 15px;
	margin: 0 0 24px;
	line-height: 1.6;
}
.tzlg-cta__row {
	display: flex;
	gap: 8px;
	max-width: 480px;
	margin: 0 auto;
}
.tzlg-cta__input {
	flex: 1;
	padding: 14px 20px;
	border: 1.5px solid #e2e8f0;
	border-radius: 100px;
	font-size: 15px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.15s;
}
.tzlg-cta__input:focus { border-color: #3b71fe; }

.tzlg-cta__btn {
	padding: 14px 28px;
	background: #3b71fe;
	color: #fff;
	border: none;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s;
}
.tzlg-cta__btn:hover { background: #2b5ee0; }

.tzlg-cta__proof {
	font-size: 12px;
	margin: 10px 0 0;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.tzlg-cta__privacy { font-size: 11px; margin-top: 8px; }
.tzlg-cta__privacy a { color: #3b71fe; text-decoration: underline; }

.tzlg-cta__msg { font-size: 13px; margin-top: 10px; padding: 8px 16px; border-radius: 8px; }
.tzlg-cta__msg--success { background: #ecfdf5; color: #166534; }
.tzlg-cta__msg--error { background: #fef2f2; color: #991b1b; }

/* Style: Branded (blue background) */
.tzlg-cta--branded { background: #3b71fe; }
.tzlg-cta--branded .tzlg-cta__heading { color: #fff; }
.tzlg-cta--branded .tzlg-cta__sub { color: rgba(255,255,255,0.85); }
.tzlg-cta--branded .tzlg-cta__btn { background: #1a3460; }
.tzlg-cta--branded .tzlg-cta__btn:hover { background: #0f2340; }
.tzlg-cta--branded .tzlg-cta__proof { color: rgba(255,255,255,0.7); }
.tzlg-cta--branded .tzlg-cta__privacy { color: rgba(255,255,255,0.5); }
.tzlg-cta--branded .tzlg-cta__privacy a { color: #fff; }
.tzlg-cta--branded .tzlg-cta__input { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: #fff; }
.tzlg-cta--branded .tzlg-cta__input::placeholder { color: rgba(255,255,255,0.5); }

/* Style: Minimal (white) */
.tzlg-cta--minimal { background: #f8f9fc; }
.tzlg-cta--minimal .tzlg-cta__heading { color: #1a3460; }
.tzlg-cta--minimal .tzlg-cta__sub { color: #64748b; }
.tzlg-cta--minimal .tzlg-cta__proof { color: #64748b; }
.tzlg-cta--minimal .tzlg-cta__privacy { color: #94a3b8; }

/* Style: Dark (navy) */
.tzlg-cta--dark { background: #1a3460; }
.tzlg-cta--dark .tzlg-cta__heading { color: #fff; }
.tzlg-cta--dark .tzlg-cta__sub { color: rgba(255,255,255,0.75); }
.tzlg-cta--dark .tzlg-cta__proof { color: rgba(255,255,255,0.6); }
.tzlg-cta--dark .tzlg-cta__privacy { color: rgba(255,255,255,0.4); }
.tzlg-cta--dark .tzlg-cta__privacy a { color: #3b71fe; }
.tzlg-cta--dark .tzlg-cta__input { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; }
.tzlg-cta--dark .tzlg-cta__input::placeholder { color: rgba(255,255,255,0.4); }

@media (max-width: 540px) {
	.tzlg-cta__row { flex-direction: column; }
	.tzlg-cta__btn { width: 100%; }
	.tzlg-cta__heading { font-size: 22px; }
}


/* ── Trust Badges ────────────────────────── */

.tzlg-badges {
	display: flex;
	gap: 16px;
	padding: 20px 0;
	margin-top: 16px;
	border-top: 1px solid #e2e8f0;
	justify-content: center;
	flex-wrap: wrap;
}
.tzlg-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	flex: 0 0 auto;
}
.tzlg-badge__icon {
	width: 36px;
	height: 36px;
	background: #eff6ff;
	color: #3b71fe;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.tzlg-badge__icon svg { width: 18px; height: 18px; }
.tzlg-badge__title {
	font-size: 13px;
	font-weight: 600;
	color: #1a3460;
	line-height: 1.2;
}
.tzlg-badge__sub {
	font-size: 11px;
	color: #94a3b8;
	line-height: 1.2;
}

@media (max-width: 600px) {
	.tzlg-badges { flex-direction: column; align-items: flex-start; gap: 10px; }
}


/* ── Social Proof Toast ──────────────────── */

.tzlg-toast {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 99999;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(26, 52, 96, 0.15);
	padding: 14px 40px 14px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 360px;
	transform: translateY(120%);
	opacity: 0;
	transition: transform 0.35s ease-out, opacity 0.35s ease-out;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.tzlg-toast--visible {
	transform: translateY(0);
	opacity: 1;
}
.tzlg-toast__icon {
	width: 32px;
	height: 32px;
	background: #ecfdf5;
	color: #10b981;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.tzlg-toast__text { font-size: 13px; color: #334155; line-height: 1.4; }
.tzlg-toast__text strong { color: #1a3460; }

.tzlg-toast__close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: none;
	border: none;
	font-size: 16px;
	color: #94a3b8;
	cursor: pointer;
	padding: 2px;
	line-height: 1;
}
.tzlg-toast__close:hover { color: #1a3460; }

@media (max-width: 480px) {
	.tzlg-toast { left: 10px; right: 10px; max-width: none; bottom: 10px; }
}
