/* Insight Popup Modal Styles */
.insight-trigger-wrapper {
	display: flex;
	justify-content: center; /* Adjust based on Elementor alignment if needed, but defaults are good */
}

.insight-trigger-button {
	cursor: pointer;
	border: none;
	background: none;
	position: relative;
	transition: all 0.3s ease;
	/* Typography, colors, padding etc. will be injected by Elementor dynamic CSS */
}

/* Gradient Border Mask Technique */
.insight-trigger-button.has-gradient-border,
.insight-submit-button.has-gradient-border,
.insight-download-button.has-gradient-border {
	border: none !important; /* Override standard border if enabled */
	z-index: 1;
	position: relative;
}

.insight-trigger-button.has-gradient-border::before,
.insight-submit-button.has-gradient-border::before,
.insight-download-button.has-gradient-border::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px; /* fallback, overridden by Elementor */
	background: linear-gradient(90deg, #00d28d 0%, #83ff00 100%); /* fallback */
	-webkit-mask: 
	   linear-gradient(#fff 0 0) content-box, 
	   linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
			mask-composite: exclude;
	pointer-events: none;
	z-index: -1;
}

.insight-trigger-button.has-gradient-text,
.insight-submit-button.has-gradient-text,
.insight-download-button.has-gradient-text {
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
}

/* Custom Placeholder Styles Support */
.insight-form-input::-webkit-input-placeholder {
	opacity: 1;
}
.insight-form-input::-moz-placeholder {
	opacity: 1;
}
.insight-form-input:-ms-input-placeholder {
	opacity: 1;
}
.insight-form-input::placeholder {
	opacity: 1;
}

/* Modal Base */
.insight-popup-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.insight-popup-modal.is-active {
	opacity: 1;
	visibility: visible;
}

/* Overlay */
.insight-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent */
	z-index: 1;
}

/* Modal Content Container */
.insight-popup-content {
	position: relative;
	z-index: 2;
	background-color: #1a1a24; /* Default dark background from screenshot */
	border-radius: 12px;
	padding: 40px;
	width: 90%;
	max-width: 500px; /* Default max-width */
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	/* Other properties injected by Elementor */
}

/* Close Icon */
.insight-popup-close-icon {
	position: absolute;
	top: 20px;
	right: 20px;
	background: transparent !important;
	border: none !important;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
	padding: 5px;
	opacity: 0.7;
	transition: opacity 0.2s ease;
	outline: none !important;
	box-shadow: none !important;
	z-index: 10002 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	min-height: 30px;
}

.insight-popup-close-icon:hover,
.insight-popup-close-icon:focus,
.insight-popup-close-icon:active {
	opacity: 1;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Titles and Texts */
.insight-popup-title {
	text-align: center;
	margin-top: 0;
	margin-bottom: 15px;
	/* Colors and typography from Elementor */
}

.insight-popup-description {
	text-align: center;
	margin-bottom: 25px;
	/* Colors and typography from Elementor */
}

/* Form Styles */
.insight-popup-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.insight-form-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.insight-form-label {
	font-weight: 600;
	/* Colors and typography from Elementor */
}

.insight-form-label .required-asterisk {
	margin-left: 2px;
}

.insight-form-input {
	width: 100%;
	box-sizing: border-box;
	border: 0 solid #333; /* Use 0 by default, let Elementor inject the sub-pixel value */
	background-color: #111;
	color: #fff;
	border-radius: 6px;
	padding: 10px 15px;
	font-size: 14px;
	outline: none !important;
	transition: all 0.2s ease;
	/* Elementor overrides below */
}

.insight-form-input:focus {
	border-color: #5cb85c; /* Default focus color, can be customized or kept simple */
}

.insight-form-footer-text {
	text-align: center;
	font-size: 12px;
	margin: 10px 0;
	opacity: 0.7;
	/* Typography from Elementor */
}

.insight-submit-button {
	cursor: pointer;
	border: none;
	width: 100%;
	text-align: center;
	transition: all 0.3s ease;
	/* Background, typography, padding from Elementor */
}

/* Success Screen Styles */
.insight-popup-success-screen {
	text-align: center;
	animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.insight-success-title {
	margin-top: 0;
	margin-bottom: 15px;
	/* Typography from Elementor */
}

.insight-success-description {
	margin-bottom: 25px;
	/* Typography from Elementor */
}

.insight-download-button {
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
	/* Colors, padding, max-width, typography from elementor */
}

.insight-download-button:hover {
	opacity: 0.9;
	text-decoration: none; /* Override standard link hover */
}
