/* IeB Webinar Popup — all rules scoped under .ieb-wp so the theme isn't affected */
.ieb-wp {
	--ieb-navy: #0d3474;
	--ieb-ink: #10284d;
	--ieb-blue: #1565d8;
	--ieb-sky: #e3f0fd;
	--ieb-line: #d9e0ea;
	--ieb-muted: #6b7a90;
	--ieb-star: #ffd43b;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--ieb-ink);
	-webkit-font-smoothing: antialiased;
}
.ieb-wp[hidden] { display: none; }
.ieb-wp *, .ieb-wp *::before, .ieb-wp *::after { box-sizing: border-box; }

.ieb-wp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 25, 45, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.ieb-wp__dialog {
	position: relative;
	display: grid;
	gap: 28px;
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 24px;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 30px 80px rgba(10, 30, 70, 0.35);
	animation: ieb-wp-in 0.28s ease-out;
}
@keyframes ieb-wp-in {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

/* ---------- Left: form ---------- */
.ieb-wp__form-col { padding: 4px 8px 8px; display: flex; flex-direction: column; }

.ieb-wp__badge {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px;
	border-radius: 999px;
	background: var(--ieb-sky);
	color: var(--ieb-navy);
	font-size: 17px;
	font-weight: 500;
}
.ieb-wp__badge svg { width: 26px; height: 26px; color: var(--ieb-navy); }

.ieb-wp__title {
	margin: 16px 0 12px;
	font-family: inherit;
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.22;
	font-weight: 700;
	color: var(--ieb-ink);
	letter-spacing: -0.01em;
}
.ieb-wp__subtitle {
	margin: 0 0 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ieb-line);
	font-size: clamp(15px, 1.4vw, 18px);
	line-height: 1.5;
	font-style: italic;
	font-weight: 500;
	color: var(--ieb-ink);
}

.ieb-wp__form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.ieb-wp__field label {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 500;
	color: var(--ieb-ink);
}
.ieb-wp__field label span { color: #e0342b; }

.ieb-wp__input { position: relative; }
.ieb-wp__input > svg {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
	color: #5f6f86;
	pointer-events: none;
}
.ieb-wp__input input,
.ieb-wp__input select {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px 0 52px;
	border: 1px solid var(--ieb-line);
	border-radius: 10px;
	background: #fbfcfe;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	font-family: inherit;
	color: var(--ieb-ink);
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.ieb-wp__input input::placeholder { color: #8391a6; }
.ieb-wp__input select {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2310284d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 18px;
}
.ieb-wp__input select:invalid { color: #8391a6; }
.ieb-wp__input input:focus,
.ieb-wp__input select:focus {
	outline: none;
	border-color: var(--ieb-blue);
	box-shadow: 0 0 0 3px rgba(21, 101, 216, 0.18);
	background-color: #fff;
}
.ieb-wp__input [aria-invalid="true"] { border-color: #e0342b; }

.ieb-wp__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ieb-muted);
	cursor: pointer;
}
.ieb-wp__consent input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--ieb-navy); flex: none; }
.ieb-wp__consent a { color: var(--ieb-blue); }

.ieb-wp__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ieb-wp__message { margin: 0; min-height: 0; font-size: 14px; color: #c62b22; }
.ieb-wp__message:empty { display: none; }

.ieb-wp__submit {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 260px;
	height: 60px;
	margin: 4px 0 0;
	padding: 0 32px;
	border: 0;
	border-radius: 10px;
	background: var(--ieb-navy);
	color: #fff;
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
}
.ieb-wp__submit svg { width: 24px; height: 24px; transition: transform 0.15s; }
.ieb-wp__submit:hover { background: #0a2a5f; }
.ieb-wp__submit:hover svg { transform: translateX(3px); }
.ieb-wp__submit:focus-visible { outline: 3px solid #7fb2f5; outline-offset: 3px; }
.ieb-wp__submit[disabled] { opacity: 0.65; cursor: progress; }

.ieb-wp__success h3 { margin: 4px 0 8px; font-size: 24px; font-weight: 700; color: var(--ieb-ink); }
.ieb-wp__success p { margin: 0 0 20px; font-size: 16px; line-height: 1.55; }

/* ---------- Right: artwork panel ---------- */
.ieb-wp__promo {
	position: relative;
	align-self: center;
	line-height: 0;
}
.ieb-wp__panel {
	display: block;
	width: min(560px, 40vw, calc((100vh - 110px) * 0.8286)) !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	border: 0 !important;
	padding: 0 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
}
.ieb-wp__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(13, 52, 116, 0.85);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	transition: background 0.15s;
}
.ieb-wp__close svg { width: 20px; height: 20px; }
.ieb-wp__close:hover { background: var(--ieb-navy); }
.ieb-wp__close:focus-visible { outline: 2px solid #7fb2f5; outline-offset: 2px; }

/* ---------- Guard against theme styles leaking in ---------- */
.ieb-wp, .ieb-wp h2, .ieb-wp h3, .ieb-wp p, .ieb-wp label, .ieb-wp span,
.ieb-wp input, .ieb-wp select, .ieb-wp button, .ieb-wp a, .ieb-wp strong {
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
	text-transform: none !important;
	letter-spacing: normal;
}
.ieb-wp h2.ieb-wp__title { font-size: clamp(24px, 2.4vw, 34px) !important; font-weight: 700 !important; line-height: 1.22 !important; color: var(--ieb-ink) !important; margin: 16px 0 12px !important; padding: 0 !important; letter-spacing: -0.01em; }
.ieb-wp p.ieb-wp__subtitle { font-size: clamp(15px, 1.3vw, 18px) !important; font-style: italic !important; font-weight: 500 !important; line-height: 1.5 !important; color: var(--ieb-ink) !important; }
.ieb-wp .ieb-wp__field label { font-size: 16px !important; font-weight: 500 !important; color: var(--ieb-ink) !important; margin: 0 0 8px !important; }
.ieb-wp .ieb-wp__input input, .ieb-wp .ieb-wp__input select { height: 52px !important; padding-left: 52px !important; font-size: 16px !important; border-radius: 10px !important; line-height: 1.2 !important; }
.ieb-wp button.ieb-wp__submit { color: #fff !important; background: var(--ieb-navy) !important; font-size: 20px !important; font-weight: 500 !important; border-radius: 10px !important; }
.ieb-wp button.ieb-wp__submit:hover { background: #0a2a5f !important; }

/* ---------- Responsive ---------- */
.ieb-wp__dialog { grid-template-columns: minmax(0, 1fr) auto; align-items: center; width: auto; max-width: min(1180px, 100%); }
.ieb-wp__form-col { width: min(560px, 44vw); }

@media (max-width: 900px) {
	.ieb-wp { padding: 12px; align-items: flex-start; }
	.ieb-wp__dialog { grid-template-columns: 1fr; gap: 18px; padding: 16px; width: 100%; max-height: calc(100vh - 24px); border-radius: 16px; }
	.ieb-wp__form-col { width: auto; }
	.ieb-wp__panel { width: 100% !important; max-width: 560px !important; margin: 0 auto !important; }
	.ieb-wp__close { position: fixed; top: 20px; right: 20px; background: var(--ieb-navy); }
	.ieb-wp button.ieb-wp__submit { width: 100%; min-width: 0; }
}

/* Short laptop screens (1366x768 etc.): tighten the form so it fits without scrolling */
@media (min-width: 901px) and (max-height: 820px) {
	.ieb-wp { padding: 16px; }
	.ieb-wp__dialog { padding: 18px; max-height: calc(100vh - 32px); }
	.ieb-wp__badge { padding: 6px 14px; font-size: 15px; }
	.ieb-wp h2.ieb-wp__title { font-size: 26px !important; margin: 12px 0 8px !important; }
	.ieb-wp p.ieb-wp__subtitle { font-size: 15px !important; margin-bottom: 12px !important; padding-bottom: 12px; }
	.ieb-wp__form { gap: 11px; }
	.ieb-wp .ieb-wp__field label { font-size: 15px !important; margin-bottom: 6px !important; }
	.ieb-wp .ieb-wp__input input, .ieb-wp .ieb-wp__input select { height: 46px !important; }
	.ieb-wp button.ieb-wp__submit { height: 52px; font-size: 18px !important; }
	.ieb-wp__panel { width: min(520px, 40vw, calc((100vh - 70px) * 0.8286)) !important; }
}

@media (prefers-reduced-motion: reduce) {
	.ieb-wp__dialog { animation: none; }
	.ieb-wp__submit, .ieb-wp__submit svg, .ieb-wp__close { transition: none; }
}
