/* ProzessX Academy – Lead-Capture Popup (Brand colors) */
:root {
	--pxa-accent: #ff0393;        /* ProzessX Pink */
	--pxa-accent-dark: #d4027b;   /* Hover */
	--pxa-cyan: #00d1ff;          /* Sekundär-Akzent */
	--pxa-ink: #171717;           /* Text dunkel */
	--pxa-muted: #7a7a7a;         /* Text grau */
	--pxa-border: #e3e3ea;
	--pxa-bg: #fcfcfc;
	--pxa-pink-tint: #fff0f8;
	--pxa-pink-border: #ffc6e4;
}

.pxa-modal { display: none; position: fixed; inset: 0; z-index: 99999; }
.pxa-modal.is-open { display: block; }
body.pxa-modal-open { overflow: hidden; }

.pxa-modal__overlay {
	position: absolute; inset: 0;
	background: rgba(23, 23, 23, .58);
	backdrop-filter: blur(2px);
}
.pxa-modal__dialog {
	position: relative;
	max-width: 460px;
	width: calc(100% - 32px);
	margin: 8vh auto;
	background: #fff;
	border-radius: 16px;
	padding: 34px 28px 26px;
	box-shadow: 0 24px 60px rgba(255, 3, 147, .18), 0 12px 40px rgba(0, 0, 0, .22);
	border-top: 4px solid var(--pxa-accent);
	font-family: inherit;
	color: var(--pxa-ink);
	animation: pxa-pop .18s ease-out;
	max-height: 86vh;
	overflow-y: auto;
}
@keyframes pxa-pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

.pxa-modal__close {
	position: absolute; top: 10px; right: 14px;
	background: none; border: 0;
	font-size: 30px; line-height: 1;
	color: #b3b3b3; cursor: pointer; padding: 4px;
	transition: color .15s;
}
.pxa-modal__close:hover { color: var(--pxa-accent); }

.pxa-modal__title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; color: var(--pxa-ink); font-weight: 800; }
.pxa-modal__product { margin: 0 0 18px; color: var(--pxa-accent); font-weight: 700; font-size: 15px; }

.pxa-field { display: block; margin-bottom: 14px; }
.pxa-field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--pxa-ink); }
.pxa-field input {
	width: 100%; box-sizing: border-box;
	padding: 12px 14px; font-size: 15px;
	border: 1px solid var(--pxa-border); border-radius: 10px;
	background: var(--pxa-bg); color: var(--pxa-ink);
	transition: border-color .15s, box-shadow .15s;
}
.pxa-field input:focus { outline: none; border-color: var(--pxa-accent); box-shadow: 0 0 0 3px rgba(255, 3, 147, .16); background: #fff; }

.pxa-checkbox { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 18px; font-size: 13px; color: var(--pxa-muted); line-height: 1.45; cursor: pointer; }
.pxa-checkbox input { margin-top: 2px; accent-color: var(--pxa-accent); }

.pxa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pxa-submit {
	width: 100%;
	background: var(--pxa-accent) !important; color: #fff !important;
	border: 0 !important; border-radius: 12px !important;
	padding: 14px 18px !important; font-size: 16px !important; font-weight: 800 !important;
	cursor: pointer; transition: background .15s, transform .05s, box-shadow .15s;
	box-shadow: 0 6px 18px rgba(255, 3, 147, .28);
}
.pxa-submit:hover { background: var(--pxa-accent-dark) !important; }
.pxa-submit:active { transform: translateY(1px); }
.pxa-submit.is-loading { opacity: .65; cursor: progress; }
.pxa-submit.is-loading::after { content: " …"; }

.pxa-consent { font-size: 11.5px; color: var(--pxa-muted); margin: 14px 0 0; line-height: 1.5; }
.pxa-consent a { color: var(--pxa-accent); }

.pxa-lead-result {
	margin-top: 14px; padding: 16px 16px; border-radius: 12px;
	font-size: 14.5px; line-height: 1.5;
}
.pxa-lead-result.is-success { background: var(--pxa-pink-tint); color: var(--pxa-ink); border: 1px solid var(--pxa-pink-border); }
.pxa-lead-result.is-error { background: #fef3f2; color: #b42318; border: 1px solid #f5c2bd; }

/* Bestaetigte Download-Box auf der Produktseite */
.pxa-download-box {
	background: var(--pxa-pink-tint); border: 1px solid var(--pxa-pink-border); border-radius: 14px;
	padding: 20px 22px; margin: 0 0 22px;
}
.pxa-download-box strong { display: block; font-size: 17px; color: var(--pxa-accent); margin-bottom: 4px; font-weight: 800; }
.pxa-download-box p { margin: 0 0 12px; color: var(--pxa-ink); }
.pxa-download-box .button,
.pxa-download-box a.button {
	background: var(--pxa-accent) !important; color: #fff !important; border: 0 !important;
	border-radius: 10px !important; font-weight: 700 !important;
}
.pxa-download-box .button:hover { background: var(--pxa-accent-dark) !important; }

/* "Kostenlos" Preis */
.pxa-free-price { font-weight: 800; color: #ff0393; }

@media (max-width: 520px) {
	.pxa-modal__dialog { margin: 4vh auto; padding: 28px 20px 22px; }
	.pxa-modal__title { font-size: 19px; }
}
