/* Styles added for the custom PHP build (behaviour the WordPress plugins used to provide). */

/* Popup: hidden until opened; template content visible inside the modal */
.elementor-popup-modal[hidden] { display: none !important; }
.elementor-popup-modal [data-elementor-type="popup"] { display: block; }
.elementor-popup-modal .dialog-close-button { background: none; border: 0; padding: 0; cursor: pointer; }
.elementor-popup-modal .dialog-widget-content { animation: cgFadeIn .3s ease; }
body.cg-modal-open { overflow: hidden; }

/* Honeypot field */
.cg-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Form feedback (same look as the original form plugin's messages) */
.elementor-form .elementor-message { width: 100%; margin: 10px 0 0; font-size: 1em; line-height: 1.4; }
.elementor-form .elementor-message-success { color: #5cb85c; }
.elementor-form .elementor-message-danger { color: #d9534f; }
.elementor-form .cg-field-error { display: block; width: 100%; color: #d9534f; font-size: 13px; margin-top: 4px; }
.elementor-form [aria-invalid="true"] { border-color: #d9534f !important; }
.elementor-form button[disabled] { opacity: .65; cursor: progress; }

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
.elementor-menu-toggle:focus-visible, .js-play-trigger:focus-visible {
	outline: 2px solid #000; outline-offset: 2px;
}

/* Entrance animations: hidden until scrolled into view (same as the original) */
.elementor-invisible { visibility: hidden; }
@keyframes cgFadeIn { from { opacity: 0 } to { opacity: 1 } }

/* Testimonial carousel arrows rendered as buttons */
.elementor-swiper-button { background: none; border: 0; padding: 0; }

/* Slick: original loaded slick from a CDN with `visibility:hidden` until initialised */
.my-video-slider.slick-initialized { visibility: visible; }
.slick-dots li button { cursor: pointer; }

/* Thank-you page (styled to match the inner-page banners) */
.cg-thanks-banner {
	background-color: var(--e-global-color-primary);
	margin-top: -72px; padding: 160px 20px 80px; text-align: center;
}
.cg-thanks-title {
	margin: 0; font-family: "Oswald", Sans-serif; font-size: 50px; font-weight: 500;
	text-transform: uppercase; line-height: 58px; color: #000;
}
.cg-thanks-body { max-width: 700px; margin: 0 auto; padding: 60px 20px 80px; text-align: center; }
.cg-thanks-lead { font-family: "Inter", Sans-serif; font-size: 16px; line-height: 1.6; color: #000; margin: 0 0 30px; }
.cg-thanks-button .elementor-button {
	background-color: #BDBAA9; font-family: "Inter", Sans-serif; font-size: 16px; font-weight: 500;
	color: #000; border: 1px solid #000; border-radius: 25px; padding: 15px 25px;
}
.cg-thanks-button .elementor-button:hover, .cg-thanks-button .elementor-button:focus { background-color: #000; color: #fff; }
@media (max-width: 767px) {
	.cg-thanks-title { font-size: 36px; line-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.elementor-invisible { visibility: visible; }
}

/* Carousels inside flex columns: stop their track width from stretching the page sideways
   (the original site scrolled horizontally on tablet/mobile because of this). */
.elementor-column, .elementor-widget-wrap { min-width: 0; }
.elementor-main-swiper, .my-video-slider { max-width: 100%; }
/* Slide-in animations and slider arrows must not cause sideways scrolling */
html, body { overflow-x: clip; }
