/*
 * Pelso Lead Popup – scope-olt, beágyazott stílus.
 * Minden szelektor .pelso-lead- prefixszel; nem támaszkodunk a Tailwindre.
 */

.pelso-lead-overlay,
.pelso-lead-overlay * {
	box-sizing: border-box;
}

.pelso-lead-overlay[hidden] {
	display: none !important;
}

/* Háttér-görgetés tiltása, amíg az overlay nyitva van. */
body.pelso-lead-noscroll {
	overflow: hidden !important;
}

.pelso-lead-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
	line-height: 1.5;
	color: #555;
	-webkit-font-smoothing: antialiased;
}

.pelso-lead-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 48, 22, 0.78);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.pelso-lead-card {
	position: relative;
	z-index: 1;
	background: #ffffff;
	width: 92%;
	max-width: 560px;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 24px 60px rgba(15, 48, 22, 0.32);
	max-height: 90vh;
	overflow-y: auto;
	animation: pelso-lead-in 180ms ease-out;
}

@keyframes pelso-lead-in {
	from {
		opacity: 0;
		transform: scale(0.96) translateY(8px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pelso-lead-card {
		animation: none;
	}
}

.pelso-lead-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #aaa;
	cursor: pointer;
	padding: 4px 8px;
}
.pelso-lead-close:hover {
	color: #555;
}

.pelso-lead-brand {
	color: #1e88a8;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.02em;
	margin-bottom: 10px;
}

.pelso-lead-title {
	font-family: "Baloo 2", "Nunito", sans-serif;
	font-size: 24px;
	line-height: 1.25;
	color: #000;
	margin: 0 0 8px;
	font-weight: 800;
}

.pelso-lead-subtitle {
	font-size: 15px;
	color: #555;
	margin: 0 0 18px;
}

.pelso-lead-form {
	margin: 0;
}

.pelso-lead-question {
	border: 0;
	margin: 0 0 16px;
	padding: 0;
}

.pelso-lead-question-label {
	display: block;
	font-weight: 700;
	color: #17324d;
	font-size: 14px;
	margin-bottom: 8px;
	padding: 0;
}

.pelso-lead-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Chip / pill checkbox. A natív checkbox vizuálisan rejtett, de jelen van. */
.pelso-lead-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	border: 1.5px solid #d8e6ee;
	background: #f5fafc;
	border-radius: 999px;
	padding: 9px 16px;
	cursor: pointer;
	font-size: 14px;
	color: #17324d;
	transition: border-color 120ms, background 120ms;
	user-select: none;
}
.pelso-lead-chip:hover {
	border-color: #a7d8f0;
}

.pelso-lead-checkbox {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.pelso-lead-chip:has(.pelso-lead-checkbox:checked),
.pelso-lead-chip.is-checked {
	border-color: #1e88a8;
	background: #1e88a8;
	color: #ffffff;
	font-weight: 700;
}

.pelso-lead-chip:focus-within {
	outline: 2px solid #a7d8f0;
	outline-offset: 2px;
}

.pelso-lead-field {
	margin: 0 0 12px;
}

.pelso-lead-label {
	display: block;
	font-weight: 700;
	color: #17324d;
	font-size: 14px;
	margin-bottom: 5px;
}

.pelso-lead-input {
	width: 100%;
	border: 1.5px solid #d8e6ee;
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 15px;
	color: #17324d;
	background: #fff;
	font-family: inherit;
}
.pelso-lead-input:focus {
	outline: none;
	border-color: #1e88a8;
}

.pelso-lead-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0;
	font-size: 13px;
	color: #555;
	cursor: pointer;
}
.pelso-lead-consent-checkbox {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: #1e88a8;
}
.pelso-lead-privacy-link {
	color: #1e88a8;
	text-decoration: underline;
}

/* Honeypot: teljesen elrejtve. */
.pelso-lead-hp-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pelso-lead-message {
	margin: 10px 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
}
.pelso-lead-message.is-error {
	background: #fdecec;
	color: #b30000;
	border: 1px solid #ffb3b3;
}
.pelso-lead-message.is-success {
	background: #eafaf1;
	color: #1c7a4a;
	border: 1px solid #a8e6c4;
}

.pelso-lead-submit {
	width: 100%;
	background: #ffde59;
	color: #b30000;
	border: 1px solid #ff3333;
	border-radius: 12px;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	font-family: inherit;
	transition: filter 120ms, opacity 120ms;
}
.pelso-lead-submit:hover:not(:disabled) {
	filter: brightness(0.97);
}
.pelso-lead-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.pelso-lead-dismiss {
	display: block;
	width: 100%;
	background: transparent;
	border: 0;
	color: #888;
	text-decoration: underline;
	font-size: 13px;
	margin-top: 12px;
	cursor: pointer;
	font-family: inherit;
}
.pelso-lead-dismiss:hover {
	color: #555;
}

.pelso-lead-footer-note {
	text-align: center;
	font-size: 11px;
	color: #aaa;
	margin: 12px 0 0;
}

/* Reszponzív (≤480px). */
@media (max-width: 480px) {
	.pelso-lead-card {
		width: 96%;
		padding: 20px 18px;
	}
	.pelso-lead-title {
		font-size: 21px;
	}
	.pelso-lead-options {
		flex-direction: column;
	}
	.pelso-lead-chip {
		width: 100%;
		justify-content: center;
	}
}
