/**
 * Free Consultation popup — any CF7 instance (o1, o2, o3, …).
 * Works before JS runs (:has) and after JS tags .ta-lead-form-popup.
 */
.wpcf7[id^="wpcf7-f92987-"]:has(.lead-form-popup-wrapper),
.wpcf7.ta-lead-form-popup {
	display: block !important;
	visibility: hidden;
	opacity: 0;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 10000 !important;
	background-color: rgba(0, 0, 0, 0.51);
	overflow-y: auto;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.wpcf7[id^="wpcf7-f92987-"]:has(.lead-form-popup-wrapper).popup-visible,
.wpcf7[id^="wpcf7-f92987-"]:has(.lead-form-popup-wrapper).show,
.wpcf7.ta-lead-form-popup.popup-visible,
.wpcf7.ta-lead-form-popup.show {
	visibility: visible !important;
	opacity: 1 !important;
}

.wpcf7[id^="wpcf7-f92987-"]:has(.lead-form-popup-wrapper) form,
.wpcf7.ta-lead-form-popup form {
	height: 100%;
}

.wpcf7[id^="wpcf7-f92987-"]:has(.lead-form-popup-wrapper) .lead-form-popup-container,
.wpcf7.ta-lead-form-popup .lead-form-popup-container {
	transition: all 0.3s;
	transform: scale(0.9);
}

.wpcf7[id^="wpcf7-f92987-"]:has(.lead-form-popup-wrapper).popup-visible .lead-form-popup-container,
.wpcf7[id^="wpcf7-f92987-"]:has(.lead-form-popup-wrapper).show .lead-form-popup-container,
.wpcf7.ta-lead-form-popup.popup-visible .lead-form-popup-container,
.wpcf7.ta-lead-form-popup.show .lead-form-popup-container {
	transform: scale(1);
}

.wpcf7[id^="wpcf7-f92987-"]:has(.lead-form-popup-wrapper)::-webkit-scrollbar,
.wpcf7.ta-lead-form-popup::-webkit-scrollbar {
	width: 0;
}

.wpcf7.ta-lead-form-popup-duplicate,
.wpcf7[id^="wpcf7-f92987-"].ta-lead-form-popup-duplicate {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.wpcf7.ta-lead-form-popup.popup-hidden,
.wpcf7[id^="wpcf7-f92987-"]:has(.lead-form-popup-wrapper).popup-hidden {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
