/* EBS Poster Opt-in. Palette and type follow the site: #0c4686 blue, #6eba01 green, Montserrat. */

.ebs-poster {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.ebs-poster[hidden] { display: none; }

.ebs-poster__overlay {
	position: absolute;
	inset: 0;
	background: rgba(12, 70, 134, 0.62);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	animation: ebs-poster-fade 0.25s ease-out;
}

.ebs-poster__dialog {
	position: relative;
	width: 100%;
	max-width: 760px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
	display: flex;
	outline: none;
	animation: ebs-poster-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ebs-poster--has-media .ebs-poster__dialog { max-width: 860px; }

.ebs-poster__media {
	flex: 0 0 40%;
	background: #eef2f7;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 20px;
}
.ebs-poster__media img {
	max-width: 100%;
	height: auto;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
	transform: rotate(-2deg);
}

.ebs-poster__content {
	flex: 1 1 auto;
	padding: 40px 40px 32px;
	min-width: 0;
}

.ebs-poster__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #5a6b7d;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
}
.ebs-poster__close:hover,
.ebs-poster__close:focus-visible { background: #eef2f7; color: #0c4686; outline: none; }

/* The form (shared by popup, inline shortcode and the confirm page) */
.ebs-poster-form { margin: 0; color: #1f2933; }
.ebs-poster-form__title {
	font-family: inherit;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	color: #0c4686;
	margin: 0 0 12px;
	padding: 0;
}
.ebs-poster-form__body {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 20px;
	padding: 0;
	color: #3b4a5a;
}
.ebs-poster-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ebs-poster-form__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.ebs-poster-form__input {
	flex: 1 1 220px;
	min-width: 0;
	height: 50px;
	padding: 0 14px;
	font: 500 15px/1 inherit;
	font-family: inherit;
	color: #1f2933;
	background: #fff;
	border: 2px solid #c9d3de;
	border-radius: 0;
	box-shadow: none;
	transition: border-color 0.15s;
}
.ebs-poster-form__input:focus { border-color: #0c4686; outline: none; }
.ebs-poster-form--error .ebs-poster-form__input { border-color: #c0392b; }
.ebs-poster-form__submit {
	flex: 0 0 auto;
	height: 50px;
	padding: 0 24px;
	border: 2px solid #6eba01;
	border-radius: 0;
	background: #6eba01;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.ebs-poster-form__submit:hover,
.ebs-poster-form__submit:focus-visible { background: #fff; color: #6eba01; outline: none; }
.ebs-poster-form__submit[disabled] { opacity: 0.6; cursor: wait; }
.ebs-poster-form__hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.ebs-poster-form__fine {
	font-size: 12px;
	line-height: 1.5;
	color: #6b7a89;
	margin: 14px 0 0;
	padding: 0;
}
.ebs-poster-form__msg {
	font-size: 13px;
	line-height: 1.5;
	color: #c0392b;
	margin: 10px 0 0;
	padding: 0;
	min-height: 1em;
}
.ebs-poster-form__msg:empty { display: none; }

.ebs-poster-form__done { text-align: center; padding: 8px 0; }
.ebs-poster-form__done[hidden] { display: none; }
.ebs-poster-form__check {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #6eba01;
	color: #fff;
	font-size: 28px;
	line-height: 56px;
	font-weight: 700;
}
.ebs-poster-form__done-title {
	font-family: inherit;
	font-size: 24px;
	font-weight: 700;
	color: #0c4686;
	margin: 0 0 10px;
	padding: 0;
}
.ebs-poster-form__done-body {
	font-size: 15px;
	line-height: 1.6;
	color: #3b4a5a;
	margin: 0;
	padding: 0;
}

/* Inline shortcode */
.ebs-poster-inline {
	background: #fff;
	border: 1px solid #dfe6ee;
	border-left: 6px solid #6eba01;
	padding: 28px 32px;
	margin: 24px 0;
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
	box-shadow: 0 6px 24px rgba(12, 70, 134, 0.08);
}
.ebs-poster-inline--confirm { border: 0; padding: 0; margin: 8px 0 0; box-shadow: none; }

/* Opener button shortcode */
.ebs-poster-cta {
	display: inline-block;
	border: 2px solid #6eba01;
	background: #6eba01;
	color: #fff;
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 14px 28px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.ebs-poster-cta:hover,
.ebs-poster-cta:focus-visible { background: #fff; color: #6eba01; }
.ebs-poster-image-button {
	display: block;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	max-width: 100%;
}
.ebs-poster-image-button img { display: block; max-width: 100%; height: auto; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.ebs-poster-image-button:hover img { transform: translateY(-3px); }

/* Poster landing page layout (used inside a Divi Text module) */
.ebs-poster-page {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	margin: 8px 0 24px;
}
.ebs-poster-page__media { flex: 1 1 380px; min-width: 0; }
.ebs-poster-page__media:empty { display: none; }
.ebs-poster-page__text { flex: 1 1 360px; min-width: 0; }
.ebs-poster-page__text .ebs-poster-inline { margin-top: 20px; }
@media (max-width: 720px) {
	.ebs-poster-page { gap: 24px; }
}

html.ebs-poster-lock { overflow: hidden; }

@keyframes ebs-poster-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ebs-poster-rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.ebs-poster__overlay,
	.ebs-poster__dialog { animation: none; }
}

@media (max-width: 720px) {
	.ebs-poster { padding: 0; align-items: flex-end; }
	.ebs-poster__dialog {
		flex-direction: column;
		max-width: none;
		max-height: 92vh;
		border-radius: 12px 12px 0 0;
	}
	.ebs-poster__media { flex: 0 0 auto; padding: 22px 20px 6px; }
	.ebs-poster__media img { max-height: 160px; width: auto; transform: none; }
	.ebs-poster__content { padding: 24px 22px 28px; }
	.ebs-poster-form__title { font-size: 22px; padding-right: 32px; }
	.ebs-poster-form__submit { flex: 1 1 100%; }
	.ebs-poster-inline { padding: 22px 18px; }
}
