/**
 * IEMA Form Callout block styles.
 *
 * Two-column card (Figma: 1280x554, 16px radius): full-bleed image beside a
 * light-grey panel with a brand-green (#c1d82a) top accent, containing a
 * Gravity Form. Desktop is a 50/50 row; on mobile it stacks with the form
 * on top and the image below. Gravity Forms output is restyled to match the
 * design, scoped entirely under `.iema-form-callout`.
 */

.iema-form-callout {
	width: 100%;
	box-sizing: border-box;
	background-color: #ffffff;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

.iema-form-callout__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 64px 80px;
	box-sizing: border-box;
}

.iema-form-callout__card {
	display: flex;
	align-items: stretch;
	border-radius: 16px;
	overflow: hidden;
	background-color: #f5f5f5;
}

.iema-form-callout--img-right .iema-form-callout__card {
	flex-direction: row-reverse;
}

/* Image ------------------------------------------------------------- */
.iema-form-callout__media {
	flex: 1 1 50%;
	min-width: 0;
	align-self: stretch;
}

.iema-form-callout__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	object-fit: cover;
}

.iema-form-callout__img--placeholder {
	background: #d9dee3;
}

/* Panel ------------------------------------------------------------- */
.iema-form-callout__panel {
	flex: 1 1 50%;
	min-width: 0;
	box-sizing: border-box;
	background-color: #f5f5f5;
	border-top: 5px solid #c1d82a;
	padding: 60px 64px 65px;
}

.iema-form-callout__note {
	margin: 0;
	color: #757575;
}

/* --- Gravity Form, restyled to the design (scoped) ---------------- */
.iema-form-callout__panel .gform_wrapper {
	margin: 0;
}

.iema-form-callout__panel .gform_heading {
	margin: 0;
	padding: 0;
}

.iema-form-callout__panel .gform_title {
	margin: 0 0 24px;
	color: #002147;
	font-family: inherit;
	font-weight: 700;
	font-size: 40px;
	line-height: 110%;
}

.iema-form-callout__panel .gform_description {
	display: block;
	margin: 0 0 24px;
	max-width: 520px;
	color: #707070;
	font-family: inherit;
	font-weight: 400;
	font-size: 16px;
	line-height: 140%;
}

.iema-form-callout__panel .gform_fields {
	grid-row-gap: 16px;
	grid-column-gap: 16px;
	row-gap: 16px;
	column-gap: 16px;
}

.iema-form-callout__panel .gfield {
	margin: 0;
}

/* Labels are hidden in the form config; keep them out of the flow but
   available to assistive tech. */
.iema-form-callout__panel .gfield_label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.iema-form-callout__panel .ginput_container {
	margin-top: 0;
}

.iema-form-callout__panel .gform_wrapper input[type="text"],
.iema-form-callout__panel .gform_wrapper input[type="email"],
.iema-form-callout__panel .gform_wrapper input[type="tel"],
.iema-form-callout__panel .gform_wrapper input[type="url"],
.iema-form-callout__panel .gform_wrapper input[type="number"],
.iema-form-callout__panel .gform_wrapper select {
	width: 100% !important;
	height: 46px !important;
	box-sizing: border-box;
	padding: 0 16px !important;
	border: 1px solid #bfbfbf !important;
	border-radius: 8px !important;
	background-color: #ffffff !important;
	color: #333333;
	font-family: inherit;
	font-size: 14px;
	line-height: 44px;
}

.iema-form-callout__panel .gform_wrapper textarea {
	width: 100% !important;
	box-sizing: border-box;
	min-height: 120px;
	padding: 12px 16px !important;
	border: 1px solid #bfbfbf !important;
	border-radius: 8px !important;
	background-color: #ffffff !important;
	color: #333333;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
}

.iema-form-callout__panel .gform_wrapper input:focus,
.iema-form-callout__panel .gform_wrapper textarea:focus,
.iema-form-callout__panel .gform_wrapper select:focus {
	outline: none;
	border-color: #002147 !important;
	box-shadow: 0 0 0 1px #002147;
}

.iema-form-callout__panel .gform_wrapper ::placeholder {
	color: #757575;
	opacity: 1;
}

.iema-form-callout__panel .gform_wrapper.gravity-theme input[type="text"],
.iema-form-callout__panel .gform_wrapper.gravity-theme input[type="email"],
.iema-form-callout__panel .gform_wrapper.gravity-theme input[type="tel"] {
	font-size: 12px;
	line-height: normal;
}

/* Consent / checkbox rows */
.iema-form-callout__panel .gform_wrapper .gfield_checkbox label,
.iema-form-callout__panel .gform_wrapper .gfield_consent_label,
.iema-form-callout__panel .gform_wrapper legend.gfield_label {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0 0 0 8px;
	clip: auto;
	color: #002147;
	font-size: 14px;
	line-height: 1.4;
}

.iema-form-callout__panel .gform_footer {
	margin: 24px 0 0;
	padding: 0;
}

.iema-form-callout__panel .gform_wrapper .gform_footer input[type="submit"],
.iema-form-callout__panel .gform_wrapper .gform_button {
	display: inline-block;
	width: auto;
	background-color: #002147 !important;
	color: #ffffff !important;
	border: 1px solid #002147 !important;
	border-radius: 999px !important;
	padding: 16px 24px !important;
	font-family: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: normal;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.iema-form-callout__panel .gform_wrapper .gform_footer input[type="submit"]:hover,
.iema-form-callout__panel .gform_wrapper .gform_button:hover {
	background-color: #00152D !important;
	border-color: #C1D82A !important;
	color: #FFFFFF !important;
	box-shadow: 0 5px 25px 0 rgba(0, 0, 0, 0.15) !important;
}

/* Validation messages — keep readable, scoped. */
.iema-form-callout__panel .gform_wrapper .gfield_description.validation_message,
.iema-form-callout__panel .gform_wrapper .validation_error {
	font-size: 13px;
}

/* Mobile: stack, form on top, image below (Figma). ------------------ */
@media (max-width: 900px) {
	.iema-form-callout__inner {
		padding: 40px 24px;
	}

	.iema-form-callout__card,
	.iema-form-callout--img-right .iema-form-callout__card {
		flex-direction: column-reverse;
	}

	.iema-form-callout__media {
		flex: none;
		aspect-ratio: 382 / 200;
	}

	.iema-form-callout__panel {
		padding: 40px 24px 44px;
	}

	.iema-form-callout__panel .gform_title {
		font-size: 32px;
		line-height: 36px;
	}
}
