/*
 * The theme only draws the boxed fields while the form has the "init" class
 * (before the first submit). Keep the same look in every other state
 * (invalid / sent / failed / submitting ...), and mark invalid fields in red.
 */
form.wpcf7-form:not(.init) .wpcf7-form-control-wrap .wpcf7-form-control:not(.wpcf7-submit) {
	border: 1px solid var(--cus-border-color);
	border-radius: 8px;
	background-color: #fff;
	padding: 15px 15px 15px 18px !important;
}
form.wpcf7-form:not(.init) .wpcf7-form-control-wrap .wpcf7-form-control.wpcf7-not-valid {
	border-color: #dc3232 !important;
}

/*
 * Popup form (Submit Inquiry): the form gets the theme's "contact-form-wrapper"
 * classes (see tg-contact-form.php), so it looks like the Contact Us form.
 * The popup and Contact Us page "Send Message" button (same as the header "Get In Touch"): 15px radius, 57px high, white text.
 */
.white-popup-block form.wpcf7-form .wpcf7-submit,
.contact-form-wrapper form.wpcf7-form .wpcf7-submit {
	border-radius: 15px !important;
	height: 57px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: 57px !important;
	color: #ffffff !important;
	background-color: #a87c31 !important;
	border: 0 !important;
	font-family: "Instrument Sans", sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	text-transform: capitalize !important;
	transition: background-color 250ms, color 250ms;
}
.white-popup-block form.wpcf7-form .wpcf7-submit:hover,
.white-popup-block form.wpcf7-form .wpcf7-submit:focus,
.contact-form-wrapper form.wpcf7-form .wpcf7-submit:hover,
.contact-form-wrapper form.wpcf7-form .wpcf7-submit:focus {
	background-color: #08321a !important;
	color: #ffffff !important;
}

/*
 * Popup form and Contact Us form: show the error text in the normal flow, directly below its field,
 * so a long (two-line) message pushes the next row down instead of growing
 * upward over the field it belongs to.
 */
.white-popup-block form.wpcf7-form .wpcf7-form-control-wrap,
form.wpcf7-form.contact-form-wrapper .wpcf7-form-control-wrap,
.contact-form-wrapper form.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
	margin-bottom: 20px;
}
.white-popup-block form.wpcf7-form .wpcf7-form-control-wrap .wpcf7-form-control,
form.wpcf7-form.contact-form-wrapper .wpcf7-form-control-wrap .wpcf7-form-control,
.contact-form-wrapper form.wpcf7-form .wpcf7-form-control-wrap .wpcf7-form-control {
	margin-bottom: 0;
}
.white-popup-block form.wpcf7-form .wpcf7-form-control-wrap .wpcf7-not-valid-tip,
form.wpcf7-form.contact-form-wrapper .wpcf7-form-control-wrap .wpcf7-not-valid-tip,
.contact-form-wrapper form.wpcf7-form .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
	position: static;
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.3;
}

/* Validation errors show only under each field: hide the generic summary message
   (success / failure messages are still shown). */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form[data-status="invalid"] .wpcf7-response-output,
form.wpcf7-form.invalid .wpcf7-response-output,
form.wpcf7-form[data-status="invalid"] .wpcf7-response-output {
    display: none !important;
}
