input[type=text],
input[type=email],
input[type=tel],
textarea,
select {
	line-height: 1.2em;
}

input[type=checkbox] {
	background-color: #efefef;
}

input[type=submit],
button {
	background-color: $colorRed;
	transition: background-color .25s ease-in-out;

	&:hover {
		background-color: $colorRedDark;
	}

	&:active,
	&:focus {
		outline: none;
	}
}

// Override ACF form styles
.acf-form {
	max-width: $formWidth;
	margin: 0 auto;

	input[type=submit] {
		display: block;
		height: $ctaHeight;
		margin: 30px auto 100px;
		padding: 0 40px;
	}

	.field_type-message {
		padding-bottom: 0;

		h2 {
			padding-bottom: 0;
		}
	}
}

.acf-input-wrap {
	input,
	select {
		height: $inputHeightS;
	}
}

.acf-fields {
	.acf-field-message {
		.acf-label {
			label {
				display: none;
			}
		}
	}
}

.acf_postbox {
	> .inside {
		> .field {
			padding-top: 5px;
			padding-bottom: 5px;
			border: 0;

			&.field_type-message {
				padding-bottom: 0;

				h2 {
					font-weight: bold;
					color: $colorRed;
				}

				&:nth-child(2) {
					margin-top: $globalMargin !important;
				}
			}

			&.field_type-message + .field {
				padding-top: 0;

				> label {
					display: none;
				}
			}

			&.error + .field.error {
				border: #CC0000 solid 1px !important;
			}
		}
	}

	.field {
		&:not(#acf-question_contact_method) {
			> p.label {
				label {
					display: none;
				}
			}
		}

		&.error {
			padding-bottom: 15px !important;
		}

		input[type=text],
		input[type=email],
		input[type=tel],
		textarea {
			padding: 10px;
			transition: border-color .5s ease-in-out;

			&:focus {
				border-color: $colorRed;
			}
		}

		/** SELECT **/
		select {
			height: 40px;
			padding: 10px;
			color: gray;
			border-radius: 0;
			background-color: #efefef;
			cursor: pointer;
			appearance: none;

			&:-moz-focusring {
				color: transparent;
				text-shadow: 0 0 0 #000;
			}
		}

		.acf-taxonomy-field {
			position: relative;

			&:after {
				display: block;
				content: '\f140';
				position: absolute;
				right: 20px;
				top: 5px;
				width: 16px;
				font: 400 2.25em dashicons;
				pointer-events: none;
			}
		}
	}
}

#poststuff {
	h2 {
		padding-left: 0;
		padding-bottom: 0;
		font-size: 1.618em;
	}
}

.postbox {
	border: 0;

	.hndle {
		border-bottom: 0;
	}
}

.acf-checkbox-list,
.acf-radio-list {
	li {
		list-style: none;
	}
}

.acf-checkbox-list {
	li {
		display: inline-block;
		margin-right: 40px;

		label {
			font-weight: normal;
		}

		input[type=checkbox] {
			@include responsive('<', 782px, (
				width: 25px !important
			));
		}
	}
}

.acf-radio-list {
	li {
		input[type=radio] {
			@include responsive('<', 782px, (
				width: 25px !important
			));
		}
	}
}
#message.error{
	max-width: 500px;
    margin: 0 auto;
}
  