/*
 * LegalInfo — layout fixes on top of the verbatim legacy stylesheets.
 * Loaded last. The legacy files in this folder stay untouched; every fix lives here.
 */

/* Sidebar quick-contact box (#QuickContactBox in .cate-sec-2-left) on phones:
   legacy used fixed px widths + a fixed right margin per breakpoint, so the fields
   sat off-centre on most phone widths (e.g. 9px left / 19px right at 393px). */
@media only screen and (max-width: 550px) {
	.cate-sec-2 .cate-sec-2-left form input[type="text"],
	.cate-sec-2 .cate-sec-2-left form select,
	.cate-sec-2 .cate-sec-2-left form input[type="button"],
	.cate-sec-2 .cate-sec-2-left form input[type="submit"] {
		width: calc(100% - 40px) !important;
		margin: 6px 20px 0 20px !important;
		box-sizing: border-box;
	}
	.cate-sec-2 .cate-sec-2-left form input[type="button"],
	.cate-sec-2 .cate-sec-2-left form input[type="submit"] {
		margin-top: 16px !important;
	}
}

/* …and the box itself: legacy forced 350px/342px/329px widths below 380px, which
   pushed it off-centre or past the screen edge. Let it fill its column instead. */
@media only screen and (max-width: 550px) {
	.cate-sec-2 .cate-sec-2-left {
		width: auto !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		float: none;
	}
}

/* Gravity Forms contact form (/contact/) with GF CSS disabled: reuse the legacy look.
   Fields carry the legacy classes form-group / sec_right / sec_left. */
.li-gf-contact .gform_fields { list-style: none; margin: 0; padding: 0 0 0 20px; }
.li-gf-contact .gform_fields::after { content: ""; display: table; clear: both; }
.li-gf-contact .gfield { margin: 0 0 10px; padding: 0; }
.li-gf-contact .gfield.sec_right { width: 49%; float: right; }
.li-gf-contact .gfield.sec_left { width: 49%; float: left; }
.li-gf-contact .gfield.li-clear { clear: both; }
.li-gf-contact .gfield.li-full { clear: both; width: 100%; }
.li-gf-contact .gfield input[type="text"],
.li-gf-contact .gfield input[type="tel"],
.li-gf-contact .gfield input[type="email"] { width: 100%; padding: 0 20px; box-sizing: border-box; }
.li-gf-contact .gfield_label,
.li-gf-contact .hidden_label .gfield_label { position: absolute; left: -9999px; }
.li-gf-contact .gform_hidden,
.li-gf-contact .gform_validation_container,
.gform_wrapper .gform_hidden,
.gform_wrapper .gform_validation_container { display: none !important; }
.li-gf-contact .validation_message { color: #e51313; font-size: 14px; padding: 4px 20px 0; }
.li-gf-contact .gfield_error input { border-color: #e51313; }
.gform_wrapper .validation_error { color: #e51313; margin: 0 0 10px; }
.li-gf-contact .gform_footer { clear: both; }
.li-gf-contact .gform_ajax_spinner { margin-right: 10px; vertical-align: middle; }
.gform_confirmation_message h3 { color: #e51313; padding: 20px 0; }
@media only screen and (max-width: 790px) {
	.li-gf-contact .gform_fields { padding-left: 0; }
	.li-gf-contact .gfield.sec_right,
	.li-gf-contact .gfield.sec_left { width: 100%; float: none; }
}
