/* Creative Button (matches site EAE Creative Button) */
.d4m-creative-btn {
	display: inline-block;
	border: 0;
	padding: 7px 7px 7px 23px;
	background-color: #bde5e5;
	color: #182a54;
	border-radius: 30px;
	font-family: "Galano", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.d4m-creative-btn:hover,
.d4m-creative-btn:focus-visible:hover {
	background-color: #0cbab4;
	color: #fff;
}

.d4m-creative-btn:focus,
.d4m-creative-btn:focus-visible {
	background-color: #bde5e5;
	color: #182a54;
	outline: 2px solid #0cbab4;
	outline-offset: 2px;
}

.d4m-creative-btn__inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

.d4m-creative-btn__icon {
	display: flex;
	margin-left: 17px;
	flex-shrink: 0;
}

.d4m-creative-btn__icon svg {
	display: block;
	width: 32px;
	height: 30px;
}

/* Dialog centering */
.d4m-gated-download__dialog:modal,
.d4m-gated-download__dialog[open] {
	position: fixed;
	inset: unset;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	max-width: 36rem;
	width: calc(100% - 2rem);
	border: 0;
	border-radius: 16px;
	padding: 0;
	background-color: #fff;
	box-shadow: rgba(0, 0, 0, 0.2) 2px 8px 23px 3px;
}

.d4m-gated-download__dialog::backdrop {
	background: rgba(17, 31, 62, 0.65);
}

.d4m-gated-download__dialog-inner {
	position: relative;
	padding: 2rem 2rem 1.75rem;
}

/* Close button */
.d4m-gated-download__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 41px;
	height: 41px;
	border: 0;
	border-radius: 50%;
	background-color: #0cbab4;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #fff;
	transition: background-color 0.3s ease;
}

.d4m-gated-download__close:hover {
	background-color: #182a54;
}

/* Gravity Form overrides */
.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework {
	--gf-local-bg-color: #bde5e5;
	--gf-local-color: #182a54;
	--gf-local-radius: 30px;
	--gf-local-border-color: transparent;
	--gf-local-border-width: 0;
}

.d4m-gated-download__dialog .gform_heading {
	display: none;
}

.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework .gfield_label,
.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework .gform-field-label {
	font-family: "Galano", sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #182a54;
}

.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework .gfield_required,
.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework .gfield_required_text {
	color: #0cbab4;
}

.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework input[type="text"],
.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #9dcfca;
	border-radius: 4px;
	background-color: #fff;
	color: #182a54;
	font-family: "Galano", sans-serif;
	font-size: 14px;
}

.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework input[type="text"]:focus,
.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework input[type="email"]:focus {
	outline: none;
	border-color: #0cbab4;
	box-shadow: 0 0 0 1px #0cbab4;
}

.d4m-gated-download__dialog .gform_footer {
	margin-top: 1.25rem;
	padding: 0;
}

.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework input[type="submit"].gform_button.button {
	display: inline-block;
	border: 0;
	box-sizing: border-box;
	padding: 7px 56px 7px 23px !important;
	width: auto !important;
	min-height: 44px;
	text-align: left !important;
	background-color: #bde5e5 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='30' viewBox='0 0 32 30' fill='none'%3E%3Cellipse cx='15.564' cy='15' rx='15.564' ry='15' fill='%230CBAB4'/%3E%3Cpath d='M19.7262 14.989L14.6256 10.0389L14.439 20.0493L19.7262 14.989Z' fill='white'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 7px center !important;
	background-size: 32px 30px !important;
	color: #182a54 !important;
	border-radius: 30px !important;
	font-family: "Galano", sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework input[type="submit"].gform_button.button:hover,
.d4m-gated-download__dialog .gform_wrapper.gform-theme--framework input[type="submit"].gform_button.button:focus-visible {
	background-color: #0cbab4 !important;
	color: #fff !important;
}

.d4m-gated-download__dialog .gform_validation_errors {
	border-color: #ec174c;
}

.d4m-gated-download__dialog .gfield_validation_message {
	color: #ec174c;
	font-family: "Galano", sans-serif;
	font-size: 13px;
}

.d4m-gf-confirmation {
	margin: 0;
}

.d4m-gf-confirmation p {
	font-family: "Galano", sans-serif;
	font-size: 14px;
	color: #182a54;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.d4m-gated-download__dialog-inner {
		padding: 2.5rem 1.25rem 1.5rem;
	}

	.d4m-gated-download__close {
		width: 30px;
		height: 30px;
		font-size: 18px;
		top: 0.75rem;
		right: 0.75rem;
	}
}
