/*
 * Gravity Forms 3.x compatibility overrides.
 *
 * GF 3.x changed some markup the theme's LESS relied on:
 *  - the inline submit wrapper ID went from #field_submit to #field_submit_{form_id}
 *  - the multi-page "Next" button went from <input type="button"> to <button>
 *
 * These rules are written to work on both GF 2.x and 3.x and intentionally use
 * stable classes instead of generated IDs. Loaded after the compiled theme CSS
 * by gravity_forms.decl.php, so it does not depend on the LESS build.
 */

/* Footer newsletter form (#gform_wrapper_88): email 9 cols, button 3 cols. */
#footer-newsletter #gform_wrapper_88 .gfield--type-submit {
	grid-column: span 6;
}

@media (min-width: 640px) {
	#footer-newsletter #gform_wrapper_88 .gfield--type-submit {
		grid-column: span 3;
	}
}

/*
 * Button text color: GF 3.x renders buttons as <button> (2.x used <input>), so the
 * theme's white-on-gold button rule no longer wins. Applies to both "legacy" and
 * current markup forms. The Accelerated Application form's own button styles use
 * far more specific selectors, so they are unaffected.
 */
body .gform_wrapper button.gform_next_button,
body .gform_wrapper button.gform_button,
body .gform_wrapper button.FormItem-action,
body .gform_wrapper.gform_legacy_markup_wrapper button.gform_previous_button,
body .gform_wrapper button.gform_next_button:hover,
body .gform_wrapper button.gform_button:hover,
body .gform_wrapper button.FormItem-action:hover,
body .gform_wrapper.gform_legacy_markup_wrapper button.gform_previous_button:hover,
body .gform_wrapper button.gform_next_button:focus,
body .gform_wrapper button.gform_button:focus,
body .gform_wrapper button.FormItem-action:focus,
body .gform_wrapper.gform_legacy_markup_wrapper button.gform_previous_button:focus,
body .gform_wrapper button.gform_next_button:active,
body .gform_wrapper button.gform_button:active,
body .gform_wrapper button.FormItem-action:active,
body .gform_wrapper.gform_legacy_markup_wrapper button.gform_previous_button:active {
	color: #ffffff;
}

/* "Next" button: same look the old <input type="button"> rule gave it. */
.gform_widget .gform_wrapper button.gform_next_button {
	border-radius: 0;
	font-size: 12px !important;
	font-style: normal;
	font-weight: 700;
	line-height: 100% !important;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	text-shadow: none;
	border: none;
	padding: 14px 40px !important;
}
