/* Gravity Forms: underline-only fields that inherit the theme palette. Loaded only when GF is active. */

.gform_wrapper .gform_required_legend {
	display: none;
}

.gform-theme--foundation .gform_fields {
	column-gap: 10px !important;
	row-gap: 14px !important;
}

.gform_wrapper :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select) {
	background-color: transparent !important;
	color: currentColor !important;
	border-width: 0 0 1px 0 !important;
	border-color: currentColor !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding-inline: 0 !important;
	font-family: inherit !important;
}

/* Focus: the field's own box-shadow ring is removed above, so mark the active field
   with a cyan outline (keyboard and mouse: users need to see where they're typing). */
.gform_wrapper :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select):focus {
	outline: 2px solid var(--wp--preset--color--contrast-2) !important;
	outline-offset: 4px !important;
}

.gform_wrapper .gform_footer :is(button, input)[type="submit"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast-2) !important;
	outline-offset: 4px !important;
}

.gform_wrapper :is(label, legend, .ginput_counter) {
	color: inherit !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 400 !important;
}

.gform_wrapper .gform_footer :is(button, input)[type="submit"] {
	min-block-size: 0 !important;
	padding: 0 0 2px !important;
	background: transparent !important;
	color: inherit !important;
	border: 0 !important;
	border-bottom: 1px solid currentColor !important;
	border-radius: 0 !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: var(--wp--preset--font-size--small) !important;
	letter-spacing: 0.1em;
	text-transform: uppercase !important;
	transition: var(--wp--custom--transition);
}

.gform_wrapper .gform_footer :is(button, input)[type="submit"]:hover {
	color: var(--wp--preset--color--primary) !important;
}
