/* Modal */
.pojd-cbm {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}
.pojd-cbm.is-open { opacity: 1; visibility: visible; }
.pojd-cbm__overlay { position: absolute; inset: 0; background: rgba(1, 40, 70, .6); }
.pojd-cbm__dialog:focus { outline: 0; }
.pojd-cbm__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: visible;
	padding: 36px 28px 28px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	text-align: center;
}
.pojd-cbm__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #014674;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.pojd-cbm__title { margin: 0 0 8px; color: #014674; font-size: 26px; line-height: 1.2; }
.pojd-cbm__text { margin: 0 0 20px; color: #333; font-size: 16px; line-height: 1.4; }
/* Short screens: scroll inside the dialog */
@media (max-height: 600px) {
	.pojd-cbm__dialog { overflow-y: auto; }
}
html.pojd-cbm-lock, html.pojd-cbm-lock body { overflow: hidden; }

/* Form inside the modal */
.pojd-cbm .gform_wrapper { margin: 0; }
.pojd-cbm .gform_wrapper .gform_fields { display: block; }
.pojd-cbm .gform_wrapper .gfield { margin: 0 0 14px; padding: 0; }
.pojd-cbm .gform_wrapper .gfield_label { display: block; margin: 0 0 6px; color: #014674; font-size: 14px; font-weight: 600; text-align: left; }
.pojd-cbm .gform_wrapper input[type="tel"],
.pojd-cbm .gform_wrapper input[type="text"] {
	width: 100%;
	max-width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid #014674;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: #014674;
	font-size: 18px;
	font-weight: 700;
	box-sizing: border-box;
}
.pojd-cbm .gform_wrapper input:focus { outline: 2px solid rgba(1, 70, 116, .25); outline-offset: 1px; }
.pojd-cbm .gform_wrapper .gform_footer,
.pojd-cbm .gform_wrapper .gform_page_footer { margin: 0; padding: 0; }
.pojd-cbm .gform_wrapper .gform_button {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: #014674;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.pojd-cbm .gform_wrapper .gform_button:hover { background: #01365a; }
.pojd-cbm .gform_wrapper .gfield_validation_message,
.pojd-cbm .gform_wrapper .validation_message { margin-top: 6px; color: #c02b0a; font-size: 14px; text-align: left; }
.pojd-cbm .gform_confirmation_message { color: #014674; font-size: 18px; font-weight: 600; line-height: 1.4; }

/* Mobile bar */
.pojd-cbm-bar { display: none; }

@media (max-width: 768px) {
	.pojd-cbm-bar {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		width: 100%;
		height: calc(56px + env(safe-area-inset-bottom, 0px));
		margin: 0;
		padding: 0 16px env(safe-area-inset-bottom, 0px);
		border: 0;
		border-radius: 0;
		background: #014674;
		color: #fff;
		font-size: 17px;
		font-weight: 700;
		cursor: pointer;
		box-sizing: border-box;
	}
	body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
	.seopress-user-consent.seopress-edit-choice { bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important; }
	#ast-scroll-top { bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Keep theme button hover/focus from overriding our buttons */
button.pojd-cbm__close:hover,
button.pojd-cbm__close:focus { background: transparent; color: #014674; }
button.pojd-cbm-bar:hover,
button.pojd-cbm-bar:focus { background: #014674; color: #fff; }
