/* Agency AI MNS layout fixes — survive style-extract (linked stylesheet). */

/* Divi entrance animations that never fire leave opacity:0 while still
   occupying layout — huge blank white gaps (homepage form section). */
.et_animated:not(.et_had_animation) {
	opacity: 1 !important;
	animation: none !important;
}

/* Mega-menu dropdown panels must not occupy document flow when hidden. */
.et-l--header .et_pb_section_2_tb_header,
.et-l--header .et_pb_section_4_tb_header,
.et-l--header .et_pb_section_6_tb_header,
.et-l--header .et_pb_section_8_tb_header,
.et-l--header .et_pb_section_10_tb_header,
.et-l--header .et_pb_section_12_tb_header {
	position: absolute !important;
	left: 0;
	right: 0;
	width: 100%;
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

.et-l--header .et_pb_section_2_tb_header[style*="visibility: visible"],
.et-l--header .et_pb_section_4_tb_header[style*="visibility: visible"],
.et-l--header .et_pb_section_6_tb_header[style*="visibility: visible"],
.et-l--header .et_pb_section_8_tb_header[style*="visibility: visible"],
.et-l--header .et_pb_section_10_tb_header[style*="visibility: visible"],
.et-l--header .et_pb_section_12_tb_header[style*="visibility: visible"] {
	height: auto !important;
	overflow: visible !important;
	z-index: 99999 !important;
}

/* Homepage embeds: avoid oversized white voids when third-party paint fails. */
#inline-GU1tyLiovVAaRADsqXG1 {
	max-width: 100%;
	background: #ffffff;
}

.et_pb_section_5 iframe[src*="google.com/maps"] {
	max-width: 100%;
	width: 100% !important;
	height: 450px;
}
