/*
 * Smart Lead Capture – Frontend Styles v2.2.0
 * 3 popup designs: Minimal, Glassmorphism, Career Launcher
 * Scoped with .slcpd-* to prevent conflicts.
 * v2.2.0: Improved popup designs, fixed layout issues
 */

/* ============================================================
   RESET / BASE
   ============================================================ */
.slcpd-popup *,
.slcpd-popup *::before,
.slcpd-popup *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ============================================================
   POPUP WRAPPER (shared)
   ============================================================ */
.slcpd-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.slcpd-popup[aria-hidden="false"],
.slcpd-popup.slcpd-open {
	display: flex;
}

/* Overlay */
.slcpd-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

/* Panel shared */
.slcpd-panel {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	z-index: 1;
	scrollbar-width: thin;
}

/* Close button shared */
.slcpd-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	line-height: 1;
	color: inherit;
	opacity: 0.65;
	transition: opacity 0.15s, transform 0.15s;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
}
.slcpd-close:hover,
.slcpd-close:focus {
	opacity: 1;
	transform: scale(1.1);
}

/* Field */
.slcpd-field {
	margin-bottom: 12px;
}
.slcpd-field:last-of-type {
	margin-bottom: 0;
}

/* Message */
.slcpd-form-message {
	display: block;
	min-height: 18px;
	font-size: 13px;
	margin: 8px 0 4px;
	color: #e53e3e;
	font-weight: 500;
	text-align: center;
}
.slcpd-form-message.slcpd-success {
	color: #38a169;
}
.slcpd-form-message:empty {
	display: none;
}

/* Submit button shared */
.slcpd-submit {
	width: 100%;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	padding: 14px 20px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s ease;
	letter-spacing: 0.01em;
}
.slcpd-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Spinner */
.slcpd-submit__loading {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: slcpd-spin 0.7s linear infinite;
	flex-shrink: 0;
}
.slcpd-submit.slcpd-loading .slcpd-submit__loading {
	display: block;
}
@keyframes slcpd-spin {
	to { transform: rotate(360deg); }
}

/* Trigger button */
.slcpd-btn {
	display: inline-block;
	padding: 12px 24px;
	background: #1a73e8;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, transform 0.1s;
}
.slcpd-btn:hover {
	background: #1557b0;
	transform: translateY(-1px);
}

/* Animations */
.slcpd-popup[aria-hidden="false"] .slcpd-panel {
	animation: slcpd-popIn 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes slcpd-popIn {
	from { opacity: 0; transform: scale(0.9) translateY(12px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   DESIGN 1 – CLEAN MINIMAL
   ============================================================ */

/* ============================================================
   DESIGN 1 — EXIT INTENT PRO (Purple gradient header)
   ============================================================ */

/* Design 3 slide-in: no overlay, fixed bottom-right */
.slcpd-d3 {
	display: none;
	position: fixed !important;
	bottom: 24px !important;
	right: 24px !important;
	top: auto !important;
	left: auto !important;
	z-index: 999999;
	width: 340px;
	max-width: calc(100vw - 32px);
	padding: 0;
	align-items: unset;
	justify-content: unset;
}
.slcpd-d3[aria-hidden="false"],
.slcpd-d3.slcpd-open {
	display: block;
	animation: slcpd-d3-in .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes slcpd-d3-in {
	from { opacity:0; transform: translateX(40px) translateY(40px) scale(.92); }
	to   { opacity:1; transform: translateX(0) translateY(0) scale(1); }
}
/* D1/D2/D4 use overlay + centered panel */
.slcpd-d1,
.slcpd-d2,
.slcpd-d4 {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.slcpd-d1[aria-hidden="false"], .slcpd-d1.slcpd-open,
.slcpd-d2[aria-hidden="false"], .slcpd-d2.slcpd-open,
.slcpd-d4[aria-hidden="false"], .slcpd-d4.slcpd-open {
	display: flex;
}

/* ── D1 Panel ── */
.slcpd-d1__panel {
	width: 100%;
	max-width: 400px;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 28px 64px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.10);
	position: relative;
	z-index: 1;
	animation: slcpd-pop-in .42s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes slcpd-pop-in {
	from { opacity:0; transform: scale(.80) translateY(18px); }
	to   { opacity:1; transform: scale(1) translateY(0); }
}

/* D1 Header */
.slcpd-d1__head {
	background: linear-gradient(135deg, #1557b0 0%, #1a73e8 45%, #4a9af5 100%);
	padding: 26px 22px 22px;
	position: relative;
	overflow: hidden;
}
.slcpd-d1__head::before {
	content:''; position:absolute; width:180px; height:180px; border-radius:50%;
	border:22px solid rgba(255,255,255,.07); top:-64px; right:-44px;
}
.slcpd-d1__head::after {
	content:''; position:absolute; width:90px; height:90px; border-radius:50%;
	border:14px solid rgba(255,255,255,.06); bottom:-38px; left:16px;
}
.slcpd-d1__badge {
	display: inline-flex; align-items:center; gap:6px;
	background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28);
	border-radius: 30px; padding:3px 11px;
	font-family:'Nunito',sans-serif; font-size:10.5px; font-weight:800;
	color:rgba(255,255,255,.95); letter-spacing:.9px; text-transform:uppercase;
	margin-bottom:10px; position:relative; z-index:1;
}
.slcpd-d1__dot {
	width:6px; height:6px; border-radius:50%; background:#ffd740;
	animation: slcpd-blink 1.4s infinite; flex-shrink:0;
}
@keyframes slcpd-blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }
.slcpd-d1__title {
	font-family:'Nunito',sans-serif; font-size:19px; font-weight:900;
	color:#fff; line-height:1.24; position:relative; z-index:1; max-width:290px;
}
.slcpd-d1__sub {
	font-size:13px; color:rgba(255,255,255,.80); margin-top:7px; line-height:1.5; position:relative; z-index:1;
}

/* D1 Close */
.slcpd-d1__close {
	position:absolute; top:13px; right:13px;
	width:28px; height:28px; border-radius:50%;
	background:rgba(255,255,255,.16); border:1.5px solid rgba(255,255,255,.28);
	color:rgba(255,255,255,.9); font-size:14px; cursor:pointer;
	display:flex; align-items:center; justify-content:center;
	transition:background .2s, transform .22s; z-index:5;
	line-height:1;
}
.slcpd-d1__close:hover { background:rgba(255,255,255,.30); transform:rotate(90deg); }

/* Shared inline row — city + target year side by side (all templates) */
.slcpd-inline-row {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}
.slcpd-inline-row > div {
	flex: 1;
	margin-bottom: 0;
}

/* D1 inline-row alias (kept for backwards compat) */
.slcpd-d1__inline-row {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}
.slcpd-d1__inline-row .slcpd-d1__inp-wrap {
	flex: 1;
	margin-bottom: 0;
}

/* D1 Body */
.slcpd-d1__body { padding:22px 22px 20px; }
.slcpd-d1__inp-wrap { position:relative; margin-bottom:10px; }
.slcpd-d1__ico {
	position:absolute; left:12px; top:12px;
	font-size:14px; pointer-events:none;
}
.slcpd-d1__input {
	width:100%; padding:11px 15px 11px 36px;
	border:1.5px solid #dde3ed; border-radius:8px;
	font-family:'DM Sans',sans-serif; font-size:14px; color:#1a1a2e;
	background:#fff; outline:none;
	transition:border-color .2s, box-shadow .2s;
}
.slcpd-d1__input::placeholder { color:#a0aec0; }
.slcpd-d1__input:focus { border-color:#1a73e8; box-shadow:0 0 0 3px rgba(26,115,232,.13); }

/* D1 Button */
.slcpd-d1__btn {
	width:100%; padding:14px; margin-top:14px;
	background:linear-gradient(135deg,#1a73e8 0%,#1557b0 100%);
	color:#fff; font-family:'Nunito',sans-serif; font-size:15px; font-weight:900;
	border:none; border-radius:8px; cursor:pointer; position:relative; overflow:hidden;
	box-shadow:0 6px 20px rgba(26,115,232,.45);
	animation: slcpd-glow 2.8s infinite;
	transition:transform .18s;
}
@keyframes slcpd-glow {
	0%,100%{ box-shadow:0 6px 20px rgba(26,115,232,.45),0 0 0 0 rgba(26,115,232,.3); }
	50%    { box-shadow:0 8px 28px rgba(26,115,232,.55),0 0 22px 6px rgba(26,115,232,.18); }
}
.slcpd-d1__btn:hover { transform:translateY(-2px); animation:none; }
.slcpd-d1__btn::after {
	content:''; position:absolute; top:0; left:-100%; width:55%; height:100%;
	background:linear-gradient(120deg,transparent,rgba(255,255,255,.22),transparent);
	animation: slcpd-shimmer 2.5s infinite;
}
@keyframes slcpd-shimmer { 0%{left:-100%} 60%,100%{left:140%} }

/* D1 Skip + Trust */
.slcpd-d1__skip {
	text-align:center; margin-top:10px; font-size:12px; color:#718096;
}
.slcpd-d1__skip-link {
	background:none; border:none; padding:0;
	color:#1a73e8; text-decoration:underline; cursor:pointer; font-size:12px;
}
.slcpd-d1__skip-link:hover { color:#1557b0; }
.slcpd-d1__trust {
	display:flex; align-items:center; justify-content:center; gap:14px;
	padding-top:12px; border-top:1px solid #eef2f7; margin-top:12px;
	font-size:11px; font-weight:600; color:#718096;
}


/* ============================================================
   DESIGN 2 — SMART LEAD CAPTURE (White card, rainbow bar)
   ============================================================ */
.slcpd-d2__panel {
	width:100%; max-width:400px;
	background:#fff; border-radius:18px; overflow:hidden;
	box-shadow:0 28px 64px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.10);
	position:relative; z-index:1;
	animation: slcpd-slide-up .40s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes slcpd-slide-up {
	from { opacity:0; transform:translateY(28px); }
	to   { opacity:1; transform:translateY(0); }
}
.slcpd-d2__bar {
	height:5px;
	background:linear-gradient(90deg,#1a73e8 0%,#009ede 40%,#8cc945 75%,#1a73e8 100%);
	background-size:200% 100%;
	animation: slcpd-bar-flow 3s linear infinite;
}
@keyframes slcpd-bar-flow { 0%{background-position:0%} 100%{background-position:200%} }

.slcpd-d2__body { padding:26px 24px 24px; position:relative; }

.slcpd-d2__close {
	position:absolute; top:13px; right:13px;
	width:26px; height:26px; border-radius:50%;
	background:#eff1f5; border:1.5px solid #dde3ed;
	color:#4a5568; font-size:13px; cursor:pointer;
	display:flex; align-items:center; justify-content:center;
	transition:background .2s, transform .22s; z-index:5; line-height:1;
}
.slcpd-d2__close:hover { background:#e2e8f0; transform:rotate(90deg); }

.slcpd-d2__title {
	font-family:'Nunito',sans-serif; font-size:20px; font-weight:900;
	color:#1a1a2e; line-height:1.22; margin-bottom:7px; padding-right:30px;
}
.slcpd-d2__desc { font-size:13.5px; color:#4a5568; line-height:1.55; margin-bottom:18px; }

.slcpd-d2__field { margin-bottom:12px; }
.slcpd-d2__lbl {
	display:block; font-family:'Nunito',sans-serif;
	font-size:11px; font-weight:800; letter-spacing:.6px;
	text-transform:uppercase; color:#4a5568; margin-bottom:4px;
}
.slcpd-d2__input {
	width:100%; padding:11px 15px;
	border:1.5px solid #dde3ed; border-radius:8px;
	font-family:'DM Sans',sans-serif; font-size:14px; color:#1a1a2e;
	background:#fff; outline:none;
	transition:border-color .2s, box-shadow .2s;
}
.slcpd-d2__input::placeholder { color:#a0aec0; }
.slcpd-d2__input:focus { border-color:#1a73e8; box-shadow:0 0 0 3px rgba(26,115,232,.13); }

.slcpd-d2__btn {
	width:100%; padding:14px; margin-top:16px;
	background:linear-gradient(135deg,#1a73e8 0%,#1557b0 100%);
	color:#fff; font-family:'Nunito',sans-serif; font-size:15px; font-weight:900;
	border:none; border-radius:8px; cursor:pointer;
	box-shadow:0 4px 16px rgba(26,115,232,.38);
	transition:transform .18s, box-shadow .18s;
}
.slcpd-d2__btn:hover { transform:translateY(-2px); box-shadow:0 8px 26px rgba(26,115,232,.52); }

.slcpd-d2__pills { display:flex; gap:6px; flex-wrap:wrap; margin-top:14px; }
.slcpd-d2__pill {
	display:inline-flex; align-items:center; gap:3px;
	background:#eaf2ff; border:1px solid rgba(26,115,232,.2); color:#1557b0;
	font-size:10.5px; font-weight:700; padding:4px 10px; border-radius:20px;
	font-family:'Nunito',sans-serif;
}
.slcpd-d2__pill--blue { background:#eaf6fc; border-color:#b3dff2; color:#007cbf; }
.slcpd-d2__pill--green { background:#f0faf0; border-color:#c8e6a8; color:#6fad2e; }


/* ============================================================
   DESIGN 3 — SLIDE-IN WIDGET (Orange, bottom-right)
   ============================================================ */
/* outer wrapper already positioned fixed bottom-right above */
.slcpd-d3__strip {
	height:4px;
	background:linear-gradient(90deg,#fb9823,#ffd000 55%,#e07d08);
	border-radius:16px 16px 0 0;
}
.slcpd-d3__head {
	background:linear-gradient(135deg,#1a1a2e 0%,#262042 100%);
	padding:14px 16px; position:relative; overflow:hidden; border-radius:0;
}
.slcpd-d3__head::before {
	content:''; position:absolute; width:110px; height:110px; border-radius:50%;
	background:radial-gradient(circle,rgba(251,152,35,.18) 0%,transparent 70%);
	right:-20px; top:-30px;
}
.slcpd-d3__head-inner { display:flex; align-items:flex-start; gap:10px; position:relative; z-index:1; }
.slcpd-d3__icon {
	width:36px; height:36px; border-radius:9px;
	background:linear-gradient(135deg,#fb9823 0%,#ffd000 100%);
	display:flex; align-items:center; justify-content:center; font-size:17px; flex-shrink:0;
	box-shadow:0 3px 10px rgba(251,152,35,.40);
}
.slcpd-d3__head-text { flex:1; min-width:0; }
.slcpd-d3__eyebrow {
	font-family:'Nunito',sans-serif; font-size:9.5px; font-weight:800;
	color:#fb9823; letter-spacing:1.4px; text-transform:uppercase; margin-bottom:2px;
}
.slcpd-d3__title {
	font-family:'Nunito',sans-serif; font-size:15px; font-weight:900; color:#fff; line-height:1.2;
}
.slcpd-d3__close {
	width:24px; height:24px; border-radius:50%; flex-shrink:0;
	background:rgba(255,255,255,.13); border:1px solid rgba(255,255,255,.22);
	color:rgba(255,255,255,.75); font-size:12px; cursor:pointer;
	display:flex; align-items:center; justify-content:center; line-height:1;
	transition:background .2s, transform .22s;
}
.slcpd-d3__close:hover { background:rgba(255,255,255,.24); transform:rotate(90deg); }

.slcpd-d3__body {
	background:#fff; padding:14px 16px 16px;
	border-radius:0 0 16px 16px;
	box-shadow:0 8px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
}
.slcpd-d3__desc { font-size:12.5px; color:#4a5568; line-height:1.5; margin-bottom:12px; }
.slcpd-d3__input {
	width:100%; padding:10px 13px; margin-bottom:8px;
	border:1.5px solid #dde3ed; border-radius:8px;
	font-family:'DM Sans',sans-serif; font-size:13px; color:#1a1a2e;
	background:#fff; outline:none;
	transition:border-color .2s, box-shadow .2s;
}
.slcpd-d3__input::placeholder { color:#a0aec0; }
.slcpd-d3__input:focus { border-color:#fb9823; box-shadow:0 0 0 3px rgba(251,152,35,.12); }
.slcpd-d3__btn {
	width:100%; padding:13px; margin-top:2px;
	background:linear-gradient(135deg,#fb9823 0%,#e07d08 100%);
	color:#fff; font-family:'Nunito',sans-serif; font-size:15px; font-weight:900;
	border:none; border-radius:8px; cursor:pointer;
	box-shadow:0 4px 14px rgba(251,152,35,.40);
	transition:transform .18s, box-shadow .18s;
}
.slcpd-d3__btn:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(251,152,35,.55); }

.slcpd-d3__stats {
	display:flex; gap:8px; margin-top:12px; padding-top:12px; border-top:1px dashed #e8edf3;
}
.slcpd-d3__stat {
	flex:1; text-align:center; background:#fff8f0;
	border:1px solid #ffe0b2; border-radius:8px; padding:6px 3px;
}
.slcpd-d3__stat-num {
	font-family:'Nunito',sans-serif; font-size:14px; font-weight:900; color:#e07d08; display:block;
}
.slcpd-d3__stat-lbl { font-size:9.5px; color:#718096; font-weight:600; line-height:1.25; }


/* ============================================================
   DESIGN 4 — PDF DOWNLOAD POPUP (Red/orange gradient header)
   ============================================================ */
.slcpd-d4__panel {
	width:100%; max-width:400px;
	background:#fff; border-radius:18px; overflow:hidden;
	box-shadow:0 28px 64px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.10);
	position:relative; z-index:1;
	animation: slcpd-pop-in .42s cubic-bezier(.34,1.56,.64,1) both;
}
.slcpd-d4__head {
	background:linear-gradient(135deg,#c0392b 0%,#e63329 40%,#e74c3c 70%,#fb9823 100%);
	padding:24px 22px 20px; position:relative; overflow:hidden;
}
.slcpd-d4__head::before {
	content:''; position:absolute; width:180px; height:180px; border-radius:50%;
	border:22px solid rgba(255,255,255,.07); top:-60px; right:-40px;
}
.slcpd-d4__head::after {
	content:''; position:absolute; width:100px; height:100px; border-radius:50%;
	border:14px solid rgba(255,255,255,.06); bottom:-40px; left:20px;
}
.slcpd-d4__close {
	position:absolute; top:13px; right:13px;
	width:28px; height:28px; border-radius:50%;
	background:rgba(255,255,255,.16); border:1.5px solid rgba(255,255,255,.28);
	color:rgba(255,255,255,.9); font-size:14px; cursor:pointer;
	display:flex; align-items:center; justify-content:center; line-height:1;
	transition:background .2s, transform .22s; z-index:5;
}
.slcpd-d4__close:hover { background:rgba(255,255,255,.30); transform:rotate(90deg); }

.slcpd-d4__pdf-badge {
	display:inline-flex; align-items:center; gap:8px;
	background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25);
	border-radius:10px; padding:8px 14px; margin-bottom:12px;
	position:relative; z-index:1;
}
.slcpd-d4__pdf-tag {
	background:#fff; color:#e63329; font-family:'Nunito',sans-serif;
	font-size:10px; font-weight:900; padding:2px 6px; border-radius:4px; letter-spacing:.5px;
}
.slcpd-d4__pdf-name { font-size:12.5px; color:rgba(255,255,255,.90); font-weight:600; }

.slcpd-d4__title {
	font-family:'Nunito',sans-serif; font-size:19px; font-weight:900;
	color:#fff; line-height:1.24; position:relative; z-index:1;
}
.slcpd-d4__sub {
	font-size:13px; color:rgba(255,255,255,.78); margin-top:7px; line-height:1.5; position:relative; z-index:1;
}

.slcpd-d4__body { padding:22px 22px 20px; }
.slcpd-d4__inp-wrap { position:relative; margin-bottom:10px; }
.slcpd-d4__ico {
	position:absolute; left:12px; top:12px;
	font-size:14px; pointer-events:none;
}
.slcpd-d4__input {
	width:100%; padding:11px 15px 11px 36px;
	border:1.5px solid #dde3ed; border-radius:8px;
	font-family:'DM Sans',sans-serif; font-size:14px; color:#1a1a2e;
	background:#fff; outline:none;
	transition:border-color .2s, box-shadow .2s;
}
.slcpd-d4__input::placeholder { color:#a0aec0; }
.slcpd-d4__input:focus { border-color:#e63329; box-shadow:0 0 0 3px rgba(230,51,41,.13); }
.slcpd-d4__btn {
	width:100%; padding:14px; margin-top:14px;
	background:linear-gradient(135deg,#e63329 0%,#c0392b 100%);
	color:#fff; font-family:'Nunito',sans-serif; font-size:15px; font-weight:900;
	border:none; border-radius:8px; cursor:pointer; position:relative; overflow:hidden;
	box-shadow:0 5px 18px rgba(230,51,41,.42);
	transition:transform .18s, box-shadow .18s;
}
.slcpd-d4__btn:hover { transform:translateY(-2px); box-shadow:0 9px 26px rgba(230,51,41,.56); }
.slcpd-d4__btn::after {
	content:''; position:absolute; top:0; left:-100%; width:55%; height:100%;
	background:linear-gradient(120deg,transparent,rgba(255,255,255,.20),transparent);
	animation: slcpd-shimmer 2.5s infinite;
}
.slcpd-d4__trust {
	display:flex; align-items:center; gap:14px; flex-wrap:wrap;
	padding-top:12px; border-top:1px solid #eef2f7; margin-top:14px;
	font-size:11px; font-weight:600; color:#718096;
}


/* ============================================================
   SHARED FORM ELEMENTS (all designs)
   ============================================================ */
/* reCAPTCHA widget container — rendered by JS/Google */
.slcpd-recaptcha-widget { margin-bottom:10px; }

/* Form message */
.slcpd-form-message {
	font-size:13px; line-height:1.4; padding:8px 12px; border-radius:6px; margin-bottom:8px;
	display:none;
}
.slcpd-form-message:not(:empty) { display:block; }
.slcpd-form-message.slcpd-success {
	background:#f0faf0; color:#2d7a2d; border:1px solid #b6e0b6;
}
.slcpd-form-message:not(.slcpd-success):not(:empty) {
	background:#fff5f5; color:#c0392b; border:1px solid #f5c6c4;
}

/* Submit button shared loading state */
.slcpd-submit { position:relative; }
.slcpd-submit__loading {
	display:none; width:16px; height:16px; border-radius:50%;
	border:2px solid rgba(255,255,255,.4); border-top-color:#fff;
	animation: slcpd-spin .7s linear infinite;
	position:absolute; right:16px; top:50%; margin-top:-8px;
}
@keyframes slcpd-spin { to { transform:rotate(360deg); } }
.slcpd-submit.slcpd-loading .slcpd-submit__text { opacity:.7; }
.slcpd-submit.slcpd-loading .slcpd-submit__loading { display:block; }
.slcpd-submit:disabled { cursor:not-allowed; opacity:.8; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 440px) {
	.slcpd-d1__panel,
	.slcpd-d2__panel,
	.slcpd-d4__panel { max-width: 96vw; }
	.slcpd-d3 { width: calc(100vw - 24px); right:12px !important; bottom:12px !important; }
	.slcpd-d1__title,
	.slcpd-d4__title { font-size:17px; }
	.slcpd-d2__title { font-size:18px; }
}

/* ── reCAPTCHA v3 badge ──────────────────────────────────────────────────────
 *
 * PROBLEM 1 — Badge visible on every page:
 *   Google's v3 script injects the badge on every page it loads. We hide it
 *   by default and only reveal it when our popup is open (body.slcpd-body-lock
 *   is added by openPopup() and removed by closePopup()).
 *
 * PROBLEM 2 — Badge shows full expanded "protected by reCAPTCHA" text strip:
 *   Collapse to icon-only (46px) by default, expand on hover. Google's own
 *   guidelines allow hiding the badge entirely if you disclose reCAPTCHA usage
 *   in your privacy policy — icon-only is a good middle ground.
 *
 * PROBLEM 3 — CSS transform traps fixed badge inside panel (overflow:hidden):
 *   The slcpd-pop-in animation applies transform to the panel, creating a new
 *   fixed-positioning containing block. Force correct placement explicitly. */

/* 1. Hidden on all pages by default */
.grecaptcha-badge {
	visibility: hidden !important;
	opacity: 0 !important;
	transition: opacity 0.2s, width 0.3s ease !important;
	pointer-events: none !important;
}

/* 2. Only show when a v3-enabled popup is open — body.slcpd-recaptcha-active
      is added by openPopup() only when recaptcha_version === 'v3' */
body.slcpd-recaptcha-active .grecaptcha-badge {
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	position: fixed !important;
	bottom: 14px !important;
	right: 0 !important;
	z-index: 9999999 !important;
	/* Collapsed to icon-only (shield icon) by default */
	width: 46px !important;
	overflow: hidden !important;
	border-radius: 4px 0 0 4px !important;
	transition: width 0.3s ease, opacity 0.2s !important;
}

/* 3. Expand to full "protected by reCAPTCHA" badge on hover */
body.slcpd-recaptcha-active .grecaptcha-badge:hover {
	width: 256px !important;
}

/* ── Block TOC plugins from rendering inside popups ─────────────────────────
 * Easy TOC, LuckyWP, Rank Math TOC and similar plugins inject their container
 * via client-side JS by scanning the DOM for h2/h3 tags after page load.
 * PHP filter removal cannot stop this — we must hide it via CSS as a first
 * line of defence, and remove it via JS (see frontend-popup.js) as a second. */

/* Hide any TOC container injected inside our popup wrappers */
.slcpd-popup [id*="ez-toc"],
.slcpd-popup [class*="ez-toc"],
.slcpd-popup [class*="eztoc"],
.slcpd-popup [class*="luckywp-toc"],
.slcpd-popup [class*="wts-toc"],
.slcpd-popup [class*="rank-math-toc"],
.slcpd-popup [class*="wp-block-table-of-contents"],
.slcpd-popup [class*="table-of-contents"],
.slcpd-popup [id*="toc_container"],
.slcpd-popup .toc_list,
.slcpd-popup nav.toc {
	display: none !important;
}

/* ============================================================
   CAREER LAUNCHER BRAND — City & Target Year Fields
   Brand color: #1a73e8 (CL Purple)
   ============================================================ */

/* Shared: city text input and target year select — all designs */
.slcpd-popup input[name="city"],
.slcpd-popup select[name="target_year"] {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1.5px solid #dde3ed;
	border-radius: 8px;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: #1a1a2e;
	background: #fff;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}
.slcpd-popup select[name="target_year"] {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a73e8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}
.slcpd-popup input[name="city"]::placeholder { color: #a0aec0; }
.slcpd-popup input[name="city"]:focus,
.slcpd-popup select[name="target_year"]:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.13);
}

/* D3 override — orange design gets blue for new fields to match CL brand */
.slcpd-d3 input[name="city"]:focus,
.slcpd-d3 select[name="target_year"]:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.13);
}

/* D4 override — red design gets blue for new fields */
.slcpd-d4 input[name="city"]:focus,
.slcpd-d4 select[name="target_year"]:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.13);
}

/* Career/Glass/Minimal designs */
.slcpd-career__input[name="city"],
.slcpd-career__input[name="target_year"],
.slcpd-glass__input[name="city"],
.slcpd-glass__input[name="target_year"],
.slcpd-minimal__input[name="city"],
.slcpd-minimal__input[name="target_year"] {
	border-color: #dde3ed;
}
.slcpd-career__input[name="city"]:focus,
.slcpd-career__input[name="target_year"]:focus,
.slcpd-glass__input[name="city"]:focus,
.slcpd-glass__input[name="target_year"]:focus,
.slcpd-minimal__input[name="city"]:focus,
.slcpd-minimal__input[name="target_year"]:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.13);
}

/* inp-wrap icon alignment for new fields */
.slcpd-d1__inp-wrap .slcpd-ico,
.slcpd-d2__inp-wrap .slcpd-ico,
.slcpd-d3__inp-wrap .slcpd-ico,
.slcpd-d4__inp-wrap .slcpd-ico {
	color: #1a73e8;
}

/* City & Target Year — text label (replaces icon) */
.slcpd-field-lbl {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #4a5568;
	margin-bottom: 4px;
	letter-spacing: 0.3px;
}

/* ── OTP Block ─────────────────────────────────────────────────────────────── */

.slcpd-otp-block {
	margin-top: 6px;
	margin-bottom: 0;
}

/* Send OTP button row */
.slcpd-otp-send-row {
	display: flex;
}

.slcpd-otp-send-btn {
	width: 100%;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	outline: none;
	background: #1a73e8;
	color: #fff;
	transition: background 0.18s, opacity 0.18s;
	white-space: nowrap;
	letter-spacing: 0.3px;
}
.slcpd-otp-send-btn:hover:not(:disabled) {
	background: #1558b0;
}
.slcpd-otp-send-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* OTP entry row — input + actions, shown after send */
.slcpd-otp-entry-row {
	margin-top: 6px;
}

.slcpd-otp-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 15px;
	border: 1.5px solid #dde3ed;
	border-radius: 8px;
	font-size: 15px;
	letter-spacing: 4px;
	font-weight: 600;
	color: #1a1a1a;
	background: #fff;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	margin-bottom: 6px;
}
.slcpd-otp-input:focus {
	border-color: #1a73e8;
	box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.13);
}
.slcpd-otp-input[readonly] {
	background: #f3f4f6;
	color: #6b7280;
	cursor: not-allowed;
}

/* Verify + Resend row */
.slcpd-otp-entry-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.slcpd-otp-verify-btn,
.slcpd-otp-resend-btn {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	outline: none;
	transition: background 0.18s, opacity 0.18s;
	white-space: nowrap;
}
.slcpd-otp-verify-btn:disabled,
.slcpd-otp-resend-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Verify — green */
.slcpd-otp-verify-btn {
	background: #16a34a;
	color: #fff;
	flex: 1;
}
.slcpd-otp-verify-btn:hover:not(:disabled) {
	background: #15803d;
}

/* Resend — ghost */
.slcpd-otp-resend-btn {
	background: transparent;
	color: #1a73e8;
	border: 1.5px solid #1a73e8;
}
.slcpd-otp-resend-btn:hover:not(:disabled) {
	background: #eff6ff;
}

/* Status message */
.slcpd-otp-msg {
	display: none;
	margin-top: 5px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}
.slcpd-otp-msg.slcpd-otp-ok,
.slcpd-otp-msg.slcpd-otp-err { display: block; }
.slcpd-otp-msg.slcpd-otp-ok  { color: #16a34a; }
.slcpd-otp-msg.slcpd-otp-err { color: #dc2626; }
