/**
 * Gravity Forms 3.x (legacy markup) compatibility for literacy-ny.
 * GF 3 changed parts of the form markup that main.css styles; these rules re-apply the
 * main.css form styling to the new markup so forms look as they did with GF 2.4.
 */

/* GF 3 wraps the label text in <span class="gform-field-label__text">, which Enfold's
   "#top label span { font-weight: normal; font-size: 13px }" turned thin. */
#top .gform_wrapper .gform_body .gform_fields .gfield .gfield_label .gform-field-label__text {
	font-weight: inherit;
}

/* GF 3 renders the submit control as <button> instead of <input type="submit">;
   main.css only styles ".gform_footer input". */
#top .gform_wrapper .gform_footer button.gform_button {
	font-size: 20px;
	font-family: "Rubik";
	font-weight: 700;
	margin: 0;
	padding: 11px 49.5px;
	border-radius: 5px;
	width: auto;
}
@media only screen and (max-width: 641px) {
	/* GF's phone rule "line-height: 2; min-height: 2rem" only targets inputs. */
	#top .gform_wrapper .gform_footer button.gform_button {
		padding: 3px 49.5px;
		line-height: 2;
		min-height: 2rem;
	}
}

/* GF 3 nests the required marker as <span class="gfield_required"><span class="gfield_required_asterisk">*</span></span>,
   and GF's legacy stylesheet puts "margin-left: 4px" on every ".gfield_required", so the two spans added up to an 8px gap
   before the asterisk. GF 2.4 had a single span and a 4px gap. Keep the outer span's 4px and drop the inner one. */
#top .gform_wrapper .gform_body .gform_fields .gfield .gfield_label .gfield_required .gfield_required_asterisk {
	margin-left: 0;
}
