/* Contact Form 7 inside the custom pages: hides CF7's helpers and gives its messages the same look the old forms had. */
.wpcf7-form .hidden-fields-container { display: none; margin: 0; padding: 0; border: 0; }
.wpcf7-form .wpcf7-form-control-wrap { display: block; position: relative; }
.wpcf7-form .wpcf7-spinner { display: none; }
.wpcf7-form .wpcf7-response-output:empty { display: none; }
.wpcf7-form .wpcf7-response-output { margin: 10px 0 0; padding: 0; border: 0; font-size: 14px; line-height: 1.4; }
.wpcf7-form[data-status="sent"] .wpcf7-response-output { color: #5CB85C; }
.wpcf7-form[data-status="invalid"] .wpcf7-response-output,
.wpcf7-form[data-status="failed"] .wpcf7-response-output,
.wpcf7-form[data-status="spam"] .wpcf7-response-output,
.wpcf7-form[data-status="aborted"] .wpcf7-response-output,
.wpcf7-form[data-status="unaccepted"] .wpcf7-response-output { color: #D9534F; }
.wpcf7-form .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 13px; line-height: 1.3; color: #D9534F; }
.wpcf7-form.submitting button[type="submit"] { opacity: 0.6; cursor: wait; }
.wpcf7-form .wpcf7-list-item { display: inline; margin: 0; }

/* Contact page. */
.gg-ct .wpcf7-not-valid.gg-ct-field { box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05), inset 0 0 0 1px #D9534F; }
.gg-ct-option .wpcf7-form-control-wrap,
.gg-ct-option .wpcf7-form-control { display: inline; }
.gg-ct-option .wpcf7-form-control-wrap + span { font-size: 14px; line-height: 14px; vertical-align: middle; color: #47494C; cursor: pointer; }
.gg-ct-option label { cursor: pointer; }
.gg-ct-form .wpcf7-response-output { margin-top: 10px; }

/* Sample page. */
.gg-sample-form .wpcf7-not-valid-tip { margin-top: 4px; font-size: 12px; line-height: 1.4; }
.gg-sample .gg-sample-form__field .wpcf7-not-valid { box-shadow: 0 0 0 1px #D9534F; }
.gg-sample-form__accept label { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 3px; margin: 5px 0 0; padding: 0 0 2px; font-size: 14px; line-height: 14px; color: #47494C; cursor: pointer; }
.gg-sample-form__accept .wpcf7-form-control-wrap,
.gg-sample-form__accept .wpcf7-form-control,
.gg-sample-form__accept .wpcf7-list-item { display: contents; }
.gg-sample-form__accept label > span:last-child { margin-top: 0; }
.gg-sample-form__accept .wpcf7-not-valid-tip { flex: 0 0 100%; }
.gg-sample-form .wpcf7-response-output { margin-top: 10px; }

/* Footer newsletter. */
.gg-ft-news__form .wpcf7-form-control-wrap { flex: 1 1 0; min-width: 0; }
.gg-ft .gg-ft-news__form .gg-ft-news__input { width: 100%; }
.gg-ft-news__form .wpcf7-response-output,
.gg-ft-news__form .wpcf7-not-valid-tip { position: absolute; top: 100%; left: 0; margin: 8px 0 0; font-size: 14px; line-height: 20px; }
.gg-ft-news__form[data-status="sent"] .wpcf7-response-output { color: #0E0E0E; }
.gg-ft-news__form .wpcf7-not-valid-tip,
.gg-ft-news__form[data-status="invalid"] .wpcf7-response-output,
.gg-ft-news__form[data-status="failed"] .wpcf7-response-output,
.gg-ft-news__form[data-status="spam"] .wpcf7-response-output { color: #b42318; }
@media (max-width: 767px) {
	.gg-ft-news__form .wpcf7-form-control-wrap { flex: 0 0 auto; width: 100%; }
}

/* CF7 wraps each form in div.wpcf7: let the form lay out as it did before the wrapper existed. */
.gg-ct-left > .wpcf7,
.gg-sample__sec > .wpcf7,
.gg-ft-news__in > .wpcf7 { display: contents; }

/* Checkbox rows: the label now wraps the box, so give it the old row metrics. */
.gg-ct-option > label { font-size: inherit; line-height: inherit; color: inherit; }
.gg-sample-form__accept label { margin: 0; }
.gg-sample-form__accept label > span:last-child { margin-top: 5px; }

/* Contact checkbox row: exactly 24px high, like the Elementor form. */
.gg-ct-group--accept .gg-ct-option { display: flex; height: 24px; }
.gg-ct-option > label { display: flex; align-items: flex-start; gap: 3px; height: 24px; font-size: 14px; line-height: 14px; color: #47494C; }
.gg-ct-option .wpcf7-form-control-wrap,
.gg-ct-option .wpcf7-form-control,
.gg-ct-option .wpcf7-list-item { display: contents; }
.gg-ct-option input[type="checkbox"] { margin: 4px 0 0; }
.gg-ct-option > label > span:last-child { margin-top: 5px; vertical-align: baseline; }

.gg-ct-option > label { gap: 4px; }
@media (max-width: 767px) {
	.gg-ct .wpcf7-form-control-wrap textarea.gg-ct-field { margin-bottom: 0; }
}

/* CF7 screen-reader announcement: visually hidden. */
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.wpcf7 .screen-reader-response ul { display: none; }


/* Spam trap field stays off-screen wherever the bundle is skipped. */
.gg-ct-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
