/*
 * Site-wide form layout that Forminator's custom CSS can't hold (its prefixer breaks @media).
 * The rest of the enquiry form's look is in the form's own Appearance > Custom CSS.
 */

/* Until select2's stylesheet arrives, the native selects it hides are full width and placed absolutely, which
   scrolled the page sideways for a moment on load. The form now contains and clips them (with room for focus rings). */
.forminator-ui.forminator-custom-form-202 {
	position: relative;
	overflow-x: clip;
	overflow-clip-margin: 4px;
}

/* Enquiry form (Forminator 202): two columns as drawn, 317px | 57px | 482px of an 856px form.
   Below 783px Forminator stacks the columns itself. One class more than Forminator's grid rules, which load later. */
@media (min-width: 783px) {
	.forminator-ui.forminator-custom-form.forminator-custom-form-202[data-grid] .forminator-row:has(> .forminator-field-group) {
		display: flex;
		justify-content: space-between;
		margin: 0;
	}

	.forminator-ui.forminator-custom-form.forminator-custom-form-202[data-grid] .forminator-field-group.forminator-col-left {
		flex: 0 0 37.03%;
		max-width: 37.03%;
		padding: 0;
	}

	.forminator-ui.forminator-custom-form.forminator-custom-form-202[data-grid] .forminator-field-group.forminator-col-right {
		flex: 0 0 56.31%;
		max-width: 56.31%;
		padding: 0;
	}
}
