/* Webinar sign-up band above the footer (inc/webinar-stopka.php). Scoped under #webinar-stopka. */
#webinar-stopka {
	--wbs-navy: #221a4a;
	--wbs-ink: #221a4a;
	--wbs-muted: #5d5783;
	--wbs-pink: #f0629f;
	--wbs-line: #e0d6f3;
	--wbs-err: #c0264f;
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 56px 20px;
	overflow: hidden;
	clear: both;
	background:
		radial-gradient(55% 90% at 92% 0%, rgba(138, 107, 242, .16) 0%, rgba(138, 107, 242, 0) 60%),
		radial-gradient(45% 80% at 0% 100%, rgba(255, 124, 184, .14) 0%, rgba(255, 124, 184, 0) 60%),
		#f6f1fd;
	color: var(--wbs-ink);
	font-family: inherit;
	line-height: 1.5;
	text-align: left;
}

#webinar-stopka[hidden] { display: none !important; }
#webinar-stopka *,
#webinar-stopka *::before,
#webinar-stopka *::after { box-sizing: border-box; }

#webinar-stopka::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(2px 2px at 12% 22%, rgba(138, 107, 242, .35), transparent),
		radial-gradient(1.5px 1.5px at 32% 78%, rgba(255, 124, 184, .4), transparent),
		radial-gradient(2px 2px at 58% 14%, rgba(91, 168, 224, .35), transparent),
		radial-gradient(1.5px 1.5px at 76% 70%, rgba(138, 107, 242, .3), transparent),
		radial-gradient(2px 2px at 94% 40%, rgba(255, 124, 184, .35), transparent);
	pointer-events: none;
}

#webinar-stopka .wbs__in {
	position: relative;
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	max-width: 960px;
	margin: 0 auto;
}

#webinar-stopka .wbs__foto {
	position: relative;
	display: block;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	padding: 6px;
	background: linear-gradient(135deg, #ff7cb8, #8a6bf2 60%, #5ba8e0);
	box-shadow: 0 18px 40px rgba(34, 26, 74, .22);
}

#webinar-stopka .wbs__foto img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

#webinar-stopka .wbs__data {
	position: absolute;
	right: -6px;
	bottom: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: #ffd84d;
	color: var(--wbs-navy);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.1;
	box-shadow: 0 8px 18px rgba(34, 26, 74, .25);
	transform: rotate(-8deg);
}

#webinar-stopka .wbs__data b { font-size: 20px; }

#webinar-stopka .wbs__body { min-width: 0; max-width: 660px; }

#webinar-stopka .wbs__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--wbs-pink);
}

#webinar-stopka .wbs__kropka {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff5d8f;
	box-shadow: 0 0 0 0 rgba(255, 93, 143, .6);
	animation: wbs-puls 1.8s ease-out infinite;
}

@keyframes wbs-puls {
	70% { box-shadow: 0 0 0 8px rgba(255, 93, 143, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 93, 143, 0); }
}

#webinar-stopka .wbs__tytul {
	margin: 0 0 10px;
	padding: 0;
	font-family: "Baloo 2", inherit;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.01em;
	color: var(--wbs-ink);
	text-transform: none;
	text-wrap: balance;
}

#webinar-stopka .wbs__tytul span {
	background: linear-gradient(90deg, #f0629f, #8a6bf2);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

#webinar-stopka .wbs__lead { margin: 0 0 20px; font-size: 17px; color: var(--wbs-muted); }
#webinar-stopka .wbs__lead a,
#webinar-stopka .wbs__fine a { color: var(--wbs-ink); text-decoration: underline; text-underline-offset: 2px; }
#webinar-stopka .wbs__fine a { color: inherit; }
#webinar-stopka .wbs__lead a { font-weight: 700; white-space: nowrap; }

#webinar-stopka .wbs__form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

#webinar-stopka .wbs__input {
	flex: 1 1 190px;
	min-width: 0;
	height: 54px;
	margin: 0;
	padding: 0 22px;
	border: 1.5px solid var(--wbs-line);
	border-radius: 48px;
	background: #fff;
	color: var(--wbs-navy);
	font: inherit;
	font-size: 16px;
	line-height: 1;
	box-shadow: none;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

#webinar-stopka .wbs__input--imie { flex: 0 1 130px; }
#webinar-stopka .wbs__input::placeholder { color: #8f89ad; opacity: 1; }
#webinar-stopka .wbs__input:focus { border-color: var(--wbs-ink); box-shadow: 0 0 0 3px rgba(34, 26, 74, .12); }
#webinar-stopka .wbs__input[aria-invalid="true"] { border-color: var(--wbs-err); box-shadow: 0 0 0 3px rgba(192, 38, 79, .12); }

#webinar-stopka .wbs__btn {
	position: relative;
	flex: 0 0 auto;
	height: 54px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 48px;
	background: linear-gradient(90deg, #f472b6, #a78bfa 70%, #8ea2f8);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 8px 20px rgba(240, 98, 159, .3);
	cursor: pointer;
	transition: transform .1s, filter .15s;
}

#webinar-stopka .wbs__btn:hover { filter: brightness(1.06); }
#webinar-stopka .wbs__btn:active { transform: translateY(1px); }
#webinar-stopka .wbs__btn-txt { display: inline-flex; align-items: center; gap: 8px; }
#webinar-stopka .wbs__btn[aria-busy="true"] { pointer-events: none; }
#webinar-stopka .wbs__btn[aria-busy="true"] .wbs__btn-txt { visibility: hidden; }

#webinar-stopka .wbs__spin {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2.5px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wbs-spin .7s linear infinite;
}

#webinar-stopka .wbs__btn[aria-busy="true"] .wbs__spin { display: block; }
@keyframes wbs-spin { to { transform: rotate(360deg); } }

#webinar-stopka .wbs__btn:focus-visible,
#webinar-stopka a:focus-visible,
#webinar-stopka .wbs__msg button:focus-visible { outline: 3px solid var(--wbs-ink); outline-offset: 3px; }

#webinar-stopka .wbs__msg { margin: 8px 0 0 22px; font-size: 14px; color: var(--wbs-err); }
#webinar-stopka .wbs__msg:empty { display: none; }

#webinar-stopka .wbs__msg button {
	display: inline;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--wbs-ink);
	font: inherit;
	font-weight: 800;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}

#webinar-stopka .wbs__fine { margin: 12px 0 0 22px; font-size: 13px; color: var(--wbs-muted); }

#webinar-stopka .wbs__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
#webinar-stopka .wbs__sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

#webinar-stopka .wbs__ok { outline: none; }
#webinar-stopka .wbs__ok-tytul { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--wbs-ink); overflow-wrap: anywhere; }
#webinar-stopka .wbs__ok-txt { margin: 0; font-size: 15px; color: var(--wbs-muted); }
#webinar-stopka .wbs__ok-txt strong { color: var(--wbs-ink); }
#webinar-stopka .wbs__ok-linki { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }

#webinar-stopka .wbs__jasny {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border: 1.5px solid var(--wbs-line);
	border-radius: 40px;
	background: #fff;
	color: var(--wbs-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color .15s, background .15s;
}

#webinar-stopka .wbs__jasny:hover { border-color: var(--wbs-pink); }

@media (max-width: 720px) {
	#webinar-stopka { padding: 40px 16px; }
	#webinar-stopka .wbs__in { grid-template-columns: 1fr; gap: 22px; justify-items: center; text-align: center; }
	#webinar-stopka .wbs__foto { width: 132px; height: 132px; padding: 5px; }
	#webinar-stopka .wbs__data { width: 58px; height: 58px; font-size: 11px; right: -12px; bottom: 0; }
	#webinar-stopka .wbs__data b { font-size: 16px; }
	#webinar-stopka .wbs__eyebrow { display: block; letter-spacing: 1.2px; font-size: 11px; }
	#webinar-stopka .wbs__kropka { display: inline-block; margin-right: 6px; vertical-align: 1px; }
	#webinar-stopka .wbs__tytul { font-size: 27px; }
	#webinar-stopka .wbs__lead { font-size: 16px; }
	#webinar-stopka .wbs__input,
	#webinar-stopka .wbs__input--imie,
	#webinar-stopka .wbs__btn { flex: 1 1 100%; }
	#webinar-stopka .wbs__btn-txt { justify-content: center; }
	#webinar-stopka .wbs__msg,
	#webinar-stopka .wbs__fine { margin-left: 0; }
	#webinar-stopka .wbs__ok-linki { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	#webinar-stopka * { transition: none !important; animation: none !important; }
	#webinar-stopka .wbs__data { transform: none; }
}
