/* Smart Homepage Lead Popup v2 – Public Styles */

/* ── Overlay ──────────────────────────────────────── */
.shlp-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	background: rgba(10, 20, 50, 0.65);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.shlp-overlay.shlp-open {
	opacity: 1;
	visibility: visible;
}

/* ── Popup box ─────────────────────────────────────── */
.shlp-popup {
	position: relative;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
	width: 100%;
	max-width: 900px;
	max-height: 94vh;
	overflow: hidden;
	transform: scale(0.92) translateY(24px);
	transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shlp-overlay.shlp-open .shlp-popup {
	transform: scale(1) translateY(0);
}

/* ── Two-column layout ─────────────────────────────── */
.shlp-cols {
	display: flex;
	min-height: 540px;
}

/* ── Left panel ─────────────────────────────────────── */
.shlp-col-left {
	flex: 1.1;
	background: linear-gradient(148deg, #1c4ed8 0%, #1e3a8a 55%, #172554 100%);
	padding: 52px 44px;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.shlp-col-left::before,
.shlp-col-left::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.shlp-col-left::before {
	width: 260px;
	height: 260px;
	top: -80px;
	right: -80px;
}

.shlp-col-left::after {
	width: 320px;
	height: 320px;
	bottom: -100px;
	left: -60px;
	background: rgba(255, 255, 255, 0.04);
}

.shlp-left-inner {
	position: relative;
	z-index: 2;
}

.shlp-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 50px;
	letter-spacing: 0.4px;
	margin-bottom: 22px;
}

.shlp-heading {
	font-size: 27px !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	line-height: 1.32 !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.shlp-sub {
	font-size: 14.5px !important;
	color: rgba(255, 255, 255, 0.82) !important;
	line-height: 1.6 !important;
	margin: 0 0 30px !important;
	font-weight: 400 !important;
}

.shlp-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.shlp-list li {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	margin-bottom: 13px !important;
}

.shlp-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

/* ── Right panel ─────────────────────────────────────── */
.shlp-col-right {
	flex: 1;
	padding: 46px 42px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.shlp-form-wrap {
	height: 100%;
}

.shlp-form-title {
	font-size: 21px !important;
	font-weight: 700 !important;
	color: #111827 !important;
	margin: 0 0 5px !important;
	padding: 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.shlp-form-sub {
	font-size: 13.5px !important;
	color: #6b7280 !important;
	margin: 0 0 22px !important;
}

/* ── Alert ───────────────────────────────────────────── */
.shlp-alert {
	display: none;
	padding: 11px 15px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 500;
	margin-bottom: 16px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.shlp-alert.shlp-alert-error {
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

.shlp-alert.shlp-alert-warn {
	background: #fffbeb;
	color: #d97706;
	border: 1px solid #fde68a;
}

/* ── Fields ──────────────────────────────────────────── */
.shlp-field-group {
	margin-bottom: 15px;
}

.shlp-label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 5px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.shlp-req { color: #ef4444; }

.shlp-input {
	width: 100%;
	height: 44px;
	padding: 0 13px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	color: #111827;
	background: #f9fafb;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	outline: none;
	-webkit-appearance: none;
}

.shlp-input:focus {
	border-color: #1c4ed8;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(28, 78, 216, 0.12);
}

.shlp-input.shlp-has-error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ── Select ──────────────────────────────────────────── */
.shlp-select-wrap {
	position: relative;
}

.shlp-select {
	width: 100%;
	height: 44px;
	padding: 0 40px 0 13px;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	color: #111827;
	background: #f9fafb;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.shlp-select:focus {
	border-color: #1c4ed8;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(28, 78, 216, 0.12);
}

.shlp-caret {
	position: absolute;
	right: 13px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

/* ── Honeypot ─────────────────────────────────────────── */
.shlp-hp-field {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
	height: 0;
	overflow: hidden;
}

/* ── Submit button ─────────────────────────────────────── */
.shlp-submit-btn {
	width: 100%;
	height: 48px;
	margin-top: 8px;
	background: linear-gradient(135deg, #1c4ed8 0%, #1e3a8a 100%);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	letter-spacing: 0.3px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.shlp-submit-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 28px rgba(28, 78, 216, 0.42);
}

.shlp-submit-btn:active:not(:disabled) {
	transform: translateY(0);
}

.shlp-submit-btn:disabled {
	opacity: 0.72;
	cursor: not-allowed;
}

.shlp-spinner {
	display: none;
	width: 17px;
	height: 17px;
	border: 2px solid rgba(255, 255, 255, 0.38);
	border-top-color: #fff;
	border-radius: 50%;
	animation: shlp-spin 0.65s linear infinite;
}

.shlp-submit-btn.shlp-loading .shlp-spinner { display: inline-block; }
.shlp-submit-btn.shlp-loading .shlp-btn-label { opacity: 0.7; }

@keyframes shlp-spin { to { transform: rotate(360deg); } }

/* ── Privacy note ──────────────────────────────────────── */
.shlp-privacy {
	text-align: center;
	font-size: 11.5px !important;
	color: #9ca3af !important;
	margin: 10px 0 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ── Success state ──────────────────────────────────────── */
.shlp-success-state {
	display: none;
	text-align: center;
	padding: 20px 0;
}

.shlp-success-state.shlp-visible { display: block; }

.shlp-success-icon {
	font-size: 52px;
	display: block;
	margin-bottom: 14px;
	animation: shlp-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes shlp-pop {
	from { transform: scale(0.5); opacity: 0; }
	to   { transform: scale(1);   opacity: 1; }
}

.shlp-success-state h3 {
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #111827 !important;
	margin: 0 0 8px !important;
}

.shlp-success-state p {
	font-size: 14px !important;
	color: #6b7280 !important;
	margin: 0 !important;
}

/* ── Close button ───────────────────────────────────────── */
.shlp-close {
	position: absolute;
	top: 15px;
	right: 15px;
	z-index: 10;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.07);
	color: #6b7280;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.shlp-close:hover {
	background: rgba(0, 0, 0, 0.13);
	color: #111827;
	transform: rotate(90deg);
}

/* ── Responsive – Tablet ─────────────────────────────────── */
@media (max-width: 768px) {
	.shlp-popup {
		max-width: 90%;
		max-height: 92vh;
		overflow-y: auto;
	}

	.shlp-cols { flex-direction: column; min-height: auto; }

	.shlp-col-left  { padding: 32px 28px; }
	.shlp-heading   { font-size: 22px !important; }
	.shlp-col-right { padding: 28px; }
}

/* ── Responsive – Mobile ─────────────────────────────────── */
@media (max-width: 480px) {
	.shlp-overlay { padding: 10px; }

	.shlp-popup {
		max-width: 95%;
		border-radius: 16px;
	}

	.shlp-col-left  { padding: 28px 22px; }
	.shlp-heading   { font-size: 19px !important; }
	.shlp-list      { display: none !important; }
	.shlp-col-right { padding: 24px 20px; }
	.shlp-form-title{ font-size: 18px !important; }
}
