/* Lead Funnel — standalone landing (no header/footer) */

/* Hide default reCAPTCHA v3 badge — legal notice shown in form */
.grecaptcha-badge { visibility: hidden; }

:root {
	--vima-funnel-primary: #1e40af;
	--vima-funnel-primary-dark: #1e3a8a;
	--vima-funnel-accent: #f97316;
	--vima-funnel-accent-glow: rgba(249, 115, 22, 0.45);
	--vima-funnel-dark: #0f172a;
	--vima-funnel-muted: #94a3b8;
	--vima-funnel-glass: rgba(255, 255, 255, 0.88);
	--vima-funnel-radius: 20px;
}

body.vima-lead-funnel-page {
	margin: 0;
	min-height: 100dvh;
	font-family: 'Alibaba', Tahoma, sans-serif;
	color: var(--vima-funnel-dark);
	background: #0b1220;
	overflow-x: clip;
}

body.vima-lead-funnel-page .vima-site,
body.vima-lead-funnel-page #page {
	min-height: 100dvh;
}

.vima-lead-funnel {
	position: relative;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

/* Background */
.vima-lead-funnel__bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 80% 60% at 20% 10%, rgba(30, 64, 175, 0.55), transparent 55%),
		radial-gradient(ellipse 70% 50% at 85% 85%, rgba(249, 115, 22, 0.35), transparent 50%),
		linear-gradient(160deg, #0b1220 0%, #111827 45%, #1e293b 100%);
	overflow: hidden;
}

.vima-lead-funnel__orb {
	position: absolute;
	border-radius: 999px;
	filter: blur(60px);
	opacity: 0.7;
	animation: vima-funnel-float 12s ease-in-out infinite;
}

.vima-lead-funnel__orb--1 {
	width: 320px; height: 320px;
	background: #3b82f6;
	top: -80px; right: -60px;
}

.vima-lead-funnel__orb--2 {
	width: 280px; height: 280px;
	background: #f97316;
	bottom: -60px; left: -40px;
	animation-delay: -4s;
}

.vima-lead-funnel__orb--3 {
	width: 200px; height: 200px;
	background: #6366f1;
	top: 40%; left: 55%;
	animation-delay: -8s;
}

.vima-lead-funnel__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

@keyframes vima-funnel-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(20px, -16px) scale(1.05); }
}

/* Shell */
.vima-lead-funnel__shell {
	position: relative;
	z-index: 1;
	width: min(100%, 720px);
	max-width: 100%;
	background: var(--vima-funnel-glass);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: calc(var(--vima-funnel-radius) + 4px);
	box-shadow:
		0 24px 64px rgba(0, 0, 0, 0.35),
		0 0 0 1px rgba(255, 255, 255, 0.08) inset;
	padding: 1.75rem 1.5rem 2rem;
	animation: vima-funnel-in 0.6s ease;
	overflow-x: hidden;
	max-height: calc(100vh - 1.5rem);
	overflow-y: auto;
}

@keyframes vima-funnel-in {
	from { opacity: 0; transform: translateY(24px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

.vima-lead-funnel__brand {
	text-align: center;
	margin-bottom: 1.25rem;
}

.vima-lead-funnel__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--vima-funnel-dark);
	font-weight: 800;
	font-size: 1.05rem;
	text-decoration: none;
}

.vima-lead-funnel__logo-icon { font-size: 1.5rem; }

/* Progress */
.vima-lead-funnel__progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.vima-lead-funnel__progress-dot {
	width: 10px; height: 10px;
	border-radius: 999px;
	background: #cbd5e1;
	transition: all 0.3s;
}

.vima-lead-funnel__progress-dot.is-active {
	background: var(--vima-funnel-primary);
	box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.2);
	transform: scale(1.15);
}

.vima-lead-funnel__progress-line {
	width: 48px; height: 2px;
	background: #e2e8f0;
}

/* Steps */
.vima-lead-funnel__step[hidden] { display: none !important; }

.vima-lead-funnel__step.is-active {
	animation: vima-funnel-step 0.45s ease;
}

@keyframes vima-funnel-step {
	from { opacity: 0; transform: translateX(12px); }
	to { opacity: 1; transform: none; }
}

.vima-lead-funnel__hero { text-align: center; margin-bottom: 1.5rem; }

.vima-lead-funnel__badge {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	color: var(--vima-funnel-primary);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.vima-lead-funnel__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.4rem, 4vw, 1.85rem);
	line-height: 1.3;
	color: var(--vima-funnel-dark);
}

.vima-lead-funnel__subtitle {
	margin: 0;
	color: #64748b;
	font-size: 0.95rem;
	line-height: 1.7;
}

.vima-lead-funnel__back {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0.75rem;
	padding: 0.35rem 0.75rem;
	background: #f1f5f9;
	border: 0;
	border-radius: 999px;
	color: #475569;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.vima-lead-funnel__back:hover { background: #e2e8f0; }

/* Intent choices */
.vima-lead-funnel__choices {
	display: grid;
	gap: 1rem;
}

.vima-lead-funnel__choice {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	width: 100%;
	padding: 1.25rem 1.35rem;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: var(--vima-funnel-radius);
	cursor: pointer;
	text-align: right;
	font-family: inherit;
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.vima-lead-funnel__choice:hover {
	transform: translateY(-3px);
	border-color: var(--vima-funnel-primary);
	box-shadow: 0 12px 32px rgba(30, 64, 175, 0.12);
}

.vima-lead-funnel__choice-icon { font-size: 2rem; line-height: 1; }

.vima-lead-funnel__choice-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--vima-funnel-dark);
}

.vima-lead-funnel__choice-desc {
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.6;
}

/* Course cards */
.vima-lead-funnel__courses {
	display: grid;
	gap: 0.85rem;
}

.vima-lead-funnel__course {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: var(--vima-funnel-radius);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.vima-lead-funnel__course:hover {
	transform: translateY(-2px);
	border-color: var(--vima-funnel-accent);
	box-shadow: 0 10px 28px var(--vima-funnel-accent-glow);
	color: inherit;
}

.vima-lead-funnel__course-icon {
	font-size: 2rem;
	flex-shrink: 0;
	width: 52px; height: 52px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #fff7ed, #ffedd5);
	border-radius: 14px;
}

.vima-lead-funnel__course-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.vima-lead-funnel__course-body strong {
	font-size: 1rem;
	color: var(--vima-funnel-dark);
}

.vima-lead-funnel__course-body small {
	color: #64748b;
	font-size: 0.85rem;
	line-height: 1.5;
}

.vima-lead-funnel__course-cta {
	flex-shrink: 0;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--vima-funnel-accent);
}

/* Form */
.vima-lead-funnel__form {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.vima-lead-funnel__form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.15rem;
	margin-bottom: 1.15rem;
	width: 100%;
	min-width: 0;
}

.vima-lead-funnel__field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	min-width: 0;
	max-width: 100%;
}

.vima-lead-funnel__field--wide {
	grid-column: 1 / -1;
}

.vima-lead-funnel__field--full {
	margin-bottom: 1rem;
	grid-column: 1 / -1;
}

.vima-lead-funnel__field label {
	font-size: 0.85rem;
	font-weight: 700;
	color: #334155;
	line-height: 1.5;
}

.vima-lead-funnel__input {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: 0.75rem 0.95rem;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	font-family: inherit;
	font-size: 0.95rem;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

select.vima-lead-funnel__input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 0.85rem center;
	padding-left: 2rem;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

select.vima-lead-funnel__input option {
	white-space: normal;
}

.vima-lead-funnel__input:focus {
	outline: none;
	border-color: var(--vima-funnel-primary);
	box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

.vima-lead-funnel__textarea { resize: vertical; min-height: 96px; }

.vima-lead-funnel__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 1.25rem 0 1rem;
	padding: 0.85rem 1rem;
	background: #f8fafc;
	border-radius: 12px;
	font-size: 0.875rem;
	color: #475569;
	cursor: pointer;
	line-height: 1.6;
}

.vima-lead-funnel__consent input { margin-top: 0.25rem; flex-shrink: 0; }

.vima-lead-funnel__section {
	margin-bottom: 1.35rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e2e8f0;
}

.vima-lead-funnel__section:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

.vima-lead-funnel__section-title {
	margin: 0 0 0.65rem;
	font-size: 1rem;
	color: var(--vima-funnel-primary);
}

.vima-lead-funnel__section-hint {
	margin: 0 0 0.75rem;
	font-size: 0.82rem;
	color: #64748b;
	line-height: 1.6;
}

.vima-lead-funnel__checks,
.vima-lead-funnel__radios {
	display: grid;
	gap: 0.55rem;
}

.vima-lead-funnel__check,
.vima-lead-funnel__radio {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	font-size: 0.9rem;
	line-height: 1.55;
}

.vima-lead-funnel__check:has(input:checked),
.vima-lead-funnel__radio:has(input:checked) {
	border-color: var(--vima-funnel-primary);
	background: #eff6ff;
}

.vima-lead-funnel__check input,
.vima-lead-funnel__radio input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.vima-lead-funnel__form-grid--compact {
	margin-top: 0.85rem;
}

.vima-lead-funnel__recaptcha-note {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	color: #94a3b8;
	line-height: 1.6;
	text-align: center;
}

.vima-lead-funnel__recaptcha-note a { color: #64748b; }

.vima-lead-funnel__hint {
	margin: 0 0 0.75rem;
	padding: 0.75rem 0.95rem;
	border-radius: 10px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	font-size: 0.875rem;
	line-height: 1.6;
	text-align: center;
}

.vima-lead-funnel__hint[hidden] {
	display: none !important;
	margin: 0;
	padding: 0;
	border: 0;
}

.vima-lead-funnel__recaptcha-error {
	display: none;
	margin: 0 0 0.85rem;
	padding: 1rem;
	border-radius: 12px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	text-align: center;
}

.vima-lead-funnel__recaptcha-error.is-visible {
	display: block;
}

.vima-lead-funnel__recaptcha-error-text {
	margin: 0 0 0.5rem;
	color: #991b1b;
	font-size: 0.9rem;
	line-height: 1.7;
	font-weight: 700;
}

.vima-lead-funnel__recaptcha-error-hint {
	margin: 0 0 0.85rem;
	color: #7f1d1d;
	font-size: 0.85rem;
	line-height: 1.7;
}

.vima-lead-funnel__reload-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.25rem;
	border: 0;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}

.vima-lead-funnel__reload-btn:hover {
	background: #b91c1c;
}

.vima-lead-funnel__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.95rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--vima-funnel-accent), #ea580c);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 24px var(--vima-funnel-accent-glow);
	transition: transform 0.2s, box-shadow 0.2s;
}

.vima-lead-funnel__submit:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 12px 32px var(--vima-funnel-accent-glow);
}

.vima-lead-funnel__submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	filter: grayscale(0.2);
}

.vima-lead-funnel__submit--ghost {
	display: inline-flex;
	width: auto;
	margin-top: 1rem;
	background: transparent;
	color: var(--vima-funnel-primary);
	border: 2px solid var(--vima-funnel-primary);
	box-shadow: none;
	text-decoration: none;
}

.vima-lead-funnel__message {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 12px;
	font-size: 0.9rem;
	text-align: center;
}

.vima-lead-funnel__message.is-success { background: #dcfce7; color: #166534; }
.vima-lead-funnel__message.is-error { background: #fee2e2; color: #b91c1c; }

/* Success */
.vima-lead-funnel__success {
	text-align: center;
	padding: 1rem 0;
}

.vima-lead-funnel__success-icon {
	font-size: 3.5rem;
	display: block;
	margin-bottom: 0.75rem;
	animation: vima-funnel-pop 0.5s ease;
}

@keyframes vima-funnel-pop {
	0% { transform: scale(0.5); opacity: 0; }
	70% { transform: scale(1.1); }
	100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 600px) {
	.vima-lead-funnel { padding: 0.65rem; align-items: flex-start; padding-top: 0.75rem; }
	.vima-lead-funnel__shell { padding: 1.15rem 0.85rem 1.35rem; border-radius: var(--vima-funnel-radius); }
	.vima-lead-funnel__form-grid { gap: 1rem; }
	.vima-lead-funnel__input { font-size: 16px; }
	.vima-lead-funnel__course { flex-wrap: wrap; }
	.vima-lead-funnel__course-cta { width: 100%; text-align: left; padding-top: 0.25rem; }
}

@media (min-width: 640px) {
	.vima-lead-funnel__form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
