/**
 * UniteElements pSEO & AI Growth Liquid Glass Stylesheet
 * Optimized for 0 CLS, <1.2s LCP, and ultra-high conversion SXO.
 */

.uniteelements-pseo-wrapper {
	padding-bottom: 100px;
	color: var(--uniteelements-color-text-primary, #0f172a);
	background: var(--uniteelements-color-bg-base, #ffffff);
}

.uniteelements-pseo-hero {
	padding: 60px 0 40px;
	text-align: center;
	background: radial-gradient(circle at top, rgba(43, 93, 245, 0.05) 0%, transparent 70%);
	border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.uniteelements-pseo-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(43, 93, 245, 0.08);
	color: #2B5DF5;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 20px;
	border: 1px solid rgba(43, 93, 245, 0.2);
}

.uniteelements-pulse-dot {
	width: 8px;
	height: 8px;
	background: #2B5DF5;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(43, 93, 245, 0.7);
	animation: ue-pulse 2s infinite;
}

@keyframes ue-pulse {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(43, 93, 245, 0.7); }
	70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(43, 93, 245, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(43, 93, 245, 0); }
}

.uniteelements-pseo-title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	max-width: 900px;
	margin: 0 auto 24px;
	color: #0f172a;
}

.uniteelements-aeo-box {
	max-width: 820px;
	margin: 0 auto 32px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(43, 93, 245, 0.2);
	border-left: 4px solid #2B5DF5;
	border-radius: 12px;
	padding: 20px 24px;
	text-align: left;
	box-shadow: 0 4px 20px rgba(43, 93, 245, 0.06);
}

.uniteelements-aeo-header {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #2B5DF5;
	font-size: 14px;
	margin-bottom: 8px;
}

.uniteelements-aeo-text {
	font-size: 15px;
	line-height: 1.6;
	color: #334155;
	margin: 0;
}

.uniteelements-pseo-hero-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

/* Primary Centered High-Converting Lead Trigger Button */
.uniteelements-btn--lead-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(135deg, #2B5DF5 0%, #1d4ed8 100%);
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(43, 93, 245, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.uniteelements-btn--lead-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -4px rgba(43, 93, 245, 0.5), 0 0 20px rgba(43, 93, 245, 0.3);
}

.ue-btn-icon {
	font-size: 18px;
	line-height: 1;
}

.ue-btn-price-pill {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	font-size: 12.5px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 999px;
	backdrop-filter: blur(4px);
}

/* Direct WhatsApp Button */
.uniteelements-btn--whatsapp-hero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	padding: 14px 24px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.35);
	transition: all 0.25s ease;
}

.uniteelements-btn--whatsapp-hero:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -4px rgba(37, 211, 102, 0.45);
	color: #ffffff !important;
}

.uniteelements-btn--whatsapp-hero svg {
	fill: #ffffff;
	flex-shrink: 0;
}

/* Bottom Callout Section */
.uniteelements-pseo-callout-section {
	padding: 70px 0 50px;
}

.uniteelements-callout-card {
	background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	padding: clamp(30px, 5vw, 60px) clamp(20px, 4vw, 40px);
	text-align: center;
	color: #ffffff;
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.5);
}

.uniteelements-callout-card h2 {
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 800;
	color: #ffffff;
	margin: 14px 0 12px;
	letter-spacing: -0.02em;
}

.uniteelements-callout-card p {
	font-size: 16px;
	color: #94A3B8;
	max-width: 620px;
	margin: 0 auto 30px;
	line-height: 1.6;
}

.uniteelements-callout-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.uniteelements-pseo-trust-strip {
	display: flex;
	justify-content: center;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #64748b;
	font-weight: 500;
}

.uniteelements-trust-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.uniteelements-pseo-section {
	padding: 60px 0;
	border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.uniteelements-section-header {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 40px;
}

.uniteelements-section-header h2 {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 10px;
	color: #0f172a;
}

.uniteelements-section-header p {
	color: #64748b;
	font-size: 15px;
	margin: 0;
}

/* Comparison Table */
.uniteelements-matrix-table-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.uniteelements-comparison-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.uniteelements-comparison-table th,
.uniteelements-comparison-table td {
	padding: 16px 20px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 14px;
}

.uniteelements-comparison-table th {
	background: #f8fafc;
	font-weight: 700;
	color: #475569;
}

.uniteelements-col-highlight {
	background: rgba(43, 93, 245, 0.03);
	color: #0f172a;
	font-weight: 600;
}

.uniteelements-check-cell {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #0f172a;
}

.uniteelements-icon-check {
	color: #10b981;
	font-weight: 800;
}

.uniteelements-cross-cell {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #94a3b8;
}

.uniteelements-icon-cross {
	color: #ef4444;
	font-weight: 800;
}

/* TCO Card */
.uniteelements-tco-card {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border-radius: 16px;
	padding: 40px;
	color: #fff;
	text-align: center;
}

.uniteelements-badge-pill {
	display: inline-block;
	background: rgba(43, 93, 245, 0.3);
	color: #93c5fd;
	border: 1px solid rgba(43, 93, 245, 0.5);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.uniteelements-tco-card h3 {
	font-size: 1.8rem;
	font-weight: 800;
	margin: 0 0 10px;
	color: #fff;
}

.uniteelements-tco-card p {
	color: #94a3b8;
	font-size: 15px;
	max-width: 600px;
	margin: 0 auto 30px;
}

.uniteelements-tco-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.uniteelements-tco-stat {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 24px 16px;
}

.uniteelements-stat-active {
	background: rgba(43, 93, 245, 0.2);
	border-color: #2B5DF5;
}

.uniteelements-tco-label {
	font-size: 13px;
	color: #94a3b8;
	font-weight: 600;
	display: block;
	margin-bottom: 8px;
}

.uniteelements-tco-value {
	font-size: 2rem;
	font-weight: 800;
	margin-bottom: 4px;
}

.uniteelements-val-danger { color: #f87171; }
.uniteelements-val-success { color: #4ade80; }
.uniteelements-val-accent { color: #60a5fa; }

.uniteelements-tco-sub {
	font-size: 11px;
	color: #64748b;
}

/* Code Card */
.uniteelements-code-card {
	max-width: 800px;
	margin: 0 auto;
	background: #0f172a;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.uniteelements-code-header {
	background: #1e293b;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.uniteelements-code-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.uniteelements-code-dot.red { background: #ef4444; }
.uniteelements-code-dot.yellow { background: #f59e0b; }
.uniteelements-code-dot.green { background: #10b981; }

.uniteelements-code-filename {
	margin-left: 10px;
	color: #94a3b8;
	font-size: 12px;
	font-family: monospace;
}

.uniteelements-code-body {
	margin: 0;
	padding: 20px;
	color: #e2e8f0;
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 13px;
	line-height: 1.6;
	overflow-x: auto;
}

/* HowTo Grid */
.uniteelements-howto-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.uniteelements-howto-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 28px;
	position: relative;
}

.uniteelements-howto-num {
	width: 36px;
	height: 36px;
	background: #2B5DF5;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 15px;
	margin-bottom: 16px;
}

.uniteelements-howto-card h4 {
	font-size: 1.1rem;
	margin: 0 0 8px;
	color: #0f172a;
}

.uniteelements-howto-card p {
	color: #64748b;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* FAQ Accordion */
.uniteelements-faq-accordion {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.uniteelements-faq-item {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.uniteelements-faq-question {
	padding: 18px 20px;
	font-weight: 700;
	font-size: 15px;
	color: #0f172a;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	list-style: none;
}

.uniteelements-faq-question::-webkit-details-marker { display: none; }

.uniteelements-faq-answer {
	padding: 0 20px 18px;
	color: #475569;
	font-size: 14px;
	line-height: 1.6;
}

/* Sticky Bottom Conversion Dock */
.uniteelements-pseo-sticky-dock {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(16px);
	border-top: 1px solid #e2e8f0;
	padding: 12px 0;
	z-index: 990;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.uniteelements-dock-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.uniteelements-dock-info {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: #0f172a;
}

.uniteelements-dock-price {
	font-weight: 800;
	color: #2B5DF5;
	font-size: 16px;
}

.uniteelements-dock-tag {
	font-size: 11px;
	background: #EFF6FF;
	padding: 3px 8px;
	border-radius: 999px;
	color: #2B5DF5;
	font-weight: 700;
	border: 1px solid #DBEAFE;
}

.uniteelements-dock-action {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ========================================================================= */
/* INTELLIGENT LEAD CAPTURE MODAL (GLASSMORPHISM) */
/* ========================================================================= */
.ue-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.ue-modal-backdrop.is-active {
	opacity: 1;
	pointer-events: auto;
}

.ue-lead-modal-card {
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 20px;
	width: 100%;
	max-width: 580px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px 28px 24px;
	box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
	position: relative;
	transform: scale(0.94) translateY(10px);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ue-modal-backdrop.is-active .ue-lead-modal-card {
	transform: scale(1) translateY(0);
}

.ue-lead-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: #F1F5F9;
	border: none;
	font-size: 22px;
	line-height: 1;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #64748B;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.ue-lead-modal-close:hover {
	background: #E2E8F0;
	color: #0F172A;
}

.ue-lead-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ECFDF5;
	color: #059669;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid #A7F3D0;
	margin-bottom: 10px;
}

.ue-pulse-dot-green {
	width: 7px;
	height: 7px;
	background: #10B981;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: ue-pulse-green 2s infinite;
}

@keyframes ue-pulse-green {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
	70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ue-lead-modal-title {
	font-size: 20px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 6px;
	line-height: 1.25;
}

.ue-lead-modal-sub {
	font-size: 13px;
	color: #64748B;
	margin: 0 0 20px;
	line-height: 1.5;
}

.ue-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.ue-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ue-form-group label {
	font-size: 12px;
	font-weight: 700;
	color: #334155;
}

.ue-input,
.ue-select,
.ue-textarea {
	width: 100%;
	background: #F8FAFC;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13.5px;
	color: #0F172A;
	font-family: inherit;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.ue-input:focus,
.ue-select:focus,
.ue-textarea:focus {
	outline: none;
	border-color: #2B5DF5;
	background: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(43, 93, 245, 0.15);
}

.ue-chips-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ue-chip {
	background: #F1F5F9;
	border: 1px solid #E2E8F0;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ue-chip:hover {
	background: #E2E8F0;
	color: #0F172A;
}

.ue-chip.is-selected {
	background: #EFF6FF;
	border-color: #2B5DF5;
	color: #2B5DF5;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(43, 93, 245, 0.15);
}

.uniteelements-btn--lead-submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
	color: #ffffff !important;
	border: none;
	border-radius: 12px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
	transition: all 0.2s ease;
}

.uniteelements-btn--lead-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -4px rgba(37, 211, 102, 0.5);
}

.ue-lead-guarantee {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 11.5px;
	color: #64748B;
	margin-top: 14px;
	text-align: center;
}

/* Legacy floating widget removed in favor of global #ue-whatsapp-desk */
.ue-floating-lead-widget {
	display: none !important;
}

/* ========================================================================= */
/* RESPONSIVE OPTIMIZATIONS (MOBILE-FIRST) */
/* ========================================================================= */
@media (max-width: 768px) {
	.uniteelements-pseo-hero {
		padding: 40px 0 30px;
	}
	.uniteelements-pseo-title {
		font-size: 1.85rem;
	}
	.uniteelements-pseo-hero-actions {
		flex-direction: column;
		width: 100%;
	}
	.uniteelements-btn--lead-primary,
	.uniteelements-btn--whatsapp-hero {
		width: 100%;
		box-sizing: border-box;
		padding: 14px 20px;
		font-size: 14px;
	}
	.ue-form-grid {
		grid-template-columns: 1fr;
	}
	.uniteelements-tco-grid,
	.uniteelements-howto-grid {
		grid-template-columns: 1fr;
	}
	.uniteelements-dock-flex {
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
	.uniteelements-dock-action {
		width: 100%;
		flex-direction: column;
	}
	.uniteelements-dock-action .uniteelements-btn {
		width: 100%;
		justify-content: center;
	}
	.ue-floating-lead-widget {
		bottom: 120px;
		right: 16px;
	}
	.ue-floating-tooltip {
		width: 260px;
	}
	.ue-floating-orb-btn {
		width: 52px;
		height: 52px;
	}
	.ue-floating-orb-btn svg {
		width: 24px;
		height: 24px;
	}
}
