/* Smart Homepage Lead Popup Pro – Public CSS v2 */

/* ── Overlay ────────────────────────────────────── */
.shlp-overlay {
	position: fixed; inset: 0; z-index: 9999999;
	background: rgba(0,0,0,.72);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	opacity: 0; visibility: hidden;
	transition: opacity .38s ease, visibility .38s ease;
}
.shlp-overlay.shlp-open { opacity: 1; visibility: visible; }

/* ── Popup ──────────────────────────────────────── */
.shlp-popup {
	position: relative; background: var(--shlp-right-bg, #fff);
	border-radius: var(--shlp-popup-radius, 20px);
	box-shadow: 0 32px 90px rgba(0,0,0,.32);
	width: 100%; max-width: var(--shlp-popup-width, 960px);
	max-height: 94vh; overflow: hidden;
	transform: scale(.9) translateY(24px);
	transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.shlp-overlay.shlp-open .shlp-popup { transform: scale(1) translateY(0); }

/* ── Columns ────────────────────────────────────── */
.shlp-cols { display: flex; min-height: 560px; }

/* ── Left ───────────────────────────────────────── */
.shlp-col-left {
	flex: 1.1;
	background: linear-gradient(148deg, var(--shlp-left-bg-start, #1a1a1a) 0%, var(--shlp-left-bg-end, #2d2d2d) 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%;
}
.shlp-col-left::before {
	width: 280px; height: 280px;
	background: rgba(255,207,35,.06);
	top: -90px; right: -80px;
}
.shlp-col-left::after {
	width: 340px; height: 340px;
	background: rgba(255,207,35,.04);
	bottom: -110px; left: -70px;
}
.shlp-left-inner { position: relative; z-index: 2; }

/* ── Badge ──────────────────────────────────────── */
.shlp-badge {
	display: inline-flex; align-items: center; gap: 7px;
	background: rgba(255,207,35,.15);
	border: 1px solid rgba(255,207,35,.35);
	color: var(--shlp-primary, #FFCF23);
	font-size: 12px; font-weight: 700; padding: 6px 14px;
	border-radius: 50px; letter-spacing: .4px; margin-bottom: 22px;
}
.shlp-badge-icon { flex-shrink: 0; }

/* ── Heading ────────────────────────────────────── */
.shlp-heading {
	font-size: var(--shlp-heading-size, 26px) !important;
	font-weight: 800 !important; color: #ffffff !important;
	line-height: 1.3 !important; margin: 0 0 14px !important; padding: 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.shlp-sub {
	font-size: var(--shlp-sub-size, 14px) !important;
	color: rgba(255,255,255,.76) !important;
	line-height: 1.65 !important; margin: 0 0 28px !important;
}

/* ── Feature list ───────────────────────────────── */
.shlp-feat { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.shlp-feat li {
	display: flex !important; align-items: center !important; gap: 12px !important;
	color: rgba(255,255,255,.9) !important;
	font-size: 14px !important; font-weight: 500 !important; margin-bottom: 12px !important;
}
.shlp-tick {
	display: flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
	background: var(--shlp-primary, #FFCF23); color: #000;
}

/* ── Right ──────────────────────────────────────── */
.shlp-col-right {
	flex: 1; padding: var(--shlp-form-padding, 40px);
	background: var(--shlp-form-bg, #fff);
	overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.shlp-form-title {
	font-size: 21px !important; font-weight: 700 !important;
	color: var(--shlp-form-heading-color, #111827) !important;
	margin: 0 0 5px !important; padding: 0 !important;
	font-family: inherit !important;
}
.shlp-form-sub {
	font-size: 13.5px !important; color: var(--shlp-form-sub-color, #6b7280) !important;
	margin: 0 0 20px !important;
}

/* ── Alert ──────────────────────────────────────── */
.shlp-alert {
	display: none; padding: 11px 15px; border-radius: 9px;
	font-size: 13.5px; font-weight: 500; margin-bottom: 14px;
}
.shlp-alert.shlp-err  { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.shlp-alert.shlp-warn { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* ── Field groups ───────────────────────────────── */
#shlp-form { display: flex; flex-wrap: wrap; gap: 12px; }
.shlp-fg { width: 100%; box-sizing: border-box; }
.shlp-fg.shlp-half { width: calc(50% - 6px); }

.shlp-label {
	display: block; font-size: 12.5px; font-weight: 600;
	color: var(--shlp-label-color, #374151); margin-bottom: 5px;
}
.shlp-req { color: var(--shlp-req-star, #ef4444); }

.shlp-input, .shlp-textarea {
	width: 100%; height: 44px; padding: 0 13px;
	border: 1.5px solid var(--shlp-input-border, #e5e7eb);
	border-radius: calc(var(--shlp-form-radius, 12px) * 0.7);
	font-size: 14px; color: var(--shlp-input-text, #111827);
	background: var(--shlp-input-bg, #f9fafb);
	box-sizing: border-box; font-family: inherit;
	transition: border-color .2s, box-shadow .2s, background .2s;
	outline: none; -webkit-appearance: none;
}
.shlp-textarea { height: auto; padding: 10px 13px; resize: vertical; }
.shlp-input:focus, .shlp-textarea:focus {
	border-color: var(--shlp-input-focus, #FFCF23);
	background: #fff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--shlp-input-focus, #FFCF23) 20%, transparent);
}
.shlp-input::placeholder, .shlp-textarea::placeholder { color: var(--shlp-placeholder-color, #9ca3af); }

/* ── Select ─────────────────────────────────────── */
.shlp-sw { position: relative; }
.shlp-select {
	width: 100%; height: 44px; padding: 0 40px 0 13px;
	border: 1.5px solid var(--shlp-input-border, #e5e7eb);
	border-radius: calc(var(--shlp-form-radius, 12px) * 0.7);
	font-size: 14px; color: var(--shlp-dropdown-text, #111827);
	background: var(--shlp-dropdown-bg, #f9fafb);
	box-sizing: border-box; font-family: inherit; outline: none;
	cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
.shlp-select:focus {
	border-color: var(--shlp-input-focus, #FFCF23);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--shlp-input-focus, #FFCF23) 20%, transparent);
}
.shlp-caret {
	position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
	pointer-events: none; color: #6b7280;
}

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

/* ── Button ─────────────────────────────────────── */
.shlp-btn-submit {
	width: 100%; height: 50px; margin-top: 4px;
	background: var(--shlp-btn-bg, #FFCF23);
	color: var(--shlp-btn-text, #000);
	border: none;
	border-radius: calc(var(--shlp-form-radius, 12px) * 0.7);
	font-size: 15px; font-weight: 800; cursor: pointer; font-family: inherit;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	letter-spacing: .3px;
	box-shadow: 0 6px 20px rgba(255,207,35,.35);
	transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.shlp-btn-submit:hover:not(:disabled) {
	background: var(--shlp-btn-hover-bg, #e6b800);
	color: var(--shlp-btn-hover-text, #000);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(255,207,35,.48);
}
.shlp-btn-submit:active:not(:disabled) { transform: translateY(0); }
.shlp-btn-submit:disabled { opacity: .72; cursor: not-allowed; }

.shlp-spin {
	display: none; width: 18px; height: 18px;
	border: 2px solid rgba(0,0,0,.25); border-top-color: #000;
	border-radius: 50%; animation: shlp-spin .65s linear infinite;
}
.shlp-btn-submit.shlp-loading .shlp-spin { display: inline-block; }
.shlp-btn-submit.shlp-loading .shlp-btn-txt { opacity: .7; }
@keyframes shlp-spin { to { transform: rotate(360deg); } }

/* ── Privacy ────────────────────────────────────── */
.shlp-priv { text-align: center; font-size: 11px !important; color: #9ca3af !important; margin: 8px 0 0 !important; }

/* ── Success ────────────────────────────────────── */
.shlp-success { display: none; text-align: center; padding: 28px 10px 10px; }
.shlp-success.shlp-show { display: block; }
.shlp-suc-ico {
	font-size: 54px; display: block; margin-bottom: 14px;
	animation: shlp-pop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes shlp-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.shlp-success h3 { font-size: 20px !important; font-weight: 700 !important; color: #111 !important; margin: 0 0 8px !important; }
.shlp-success p  { font-size: 14px !important; color: #6b7280 !important; margin: 0 !important; }

/* ── Close ──────────────────────────────────────── */
.shlp-close {
	position: absolute; top: 14px; right: 14px; z-index: 10;
	width: 34px; height: 34px; border-radius: 50%; border: none;
	background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .18s, transform .22s;
}
.shlp-close:hover { background: rgba(255,255,255,.26); transform: rotate(90deg); }

/* ── 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: 30px 26px; }
	.shlp-heading { font-size: 22px !important; }
	.shlp-col-right { padding: 28px 24px; }
	.shlp-fg.shlp-half { width: 100%; }
}

/* ── Mobile ─────────────────────────────────────── */
@media (max-width: 480px) {
	.shlp-overlay { padding: 10px; }
	.shlp-popup   { max-width: 95%; border-radius: 16px; }
	.shlp-col-left { padding: 26px 20px; }
	.shlp-heading  { font-size: 19px !important; }
	.shlp-feat     { display: none !important; }
	.shlp-col-right { padding: 22px 18px; }
	.shlp-form-title { font-size: 18px !important; }
	.shlp-close { background: rgba(0,0,0,.25); color: #fff; }
}
