/* Leads Funnel — front-end form
   Refined minimal: black & white + single accent, mobile-first.
   Colours come from inline CSS vars set on .lf-funnel. */

.lf-funnel {
	--lf-accent: #399EAB;
	--lf-bg: #E9E9E7;
	--lf-text: #000000;
	--lf-line: rgba(0, 0, 0, 0.12);
	--lf-muted: rgba(0, 0, 0, 0.55);
	--lf-card: #ffffff;
	font-family: var(--lf-font, sans-serif);
	color: var(--lf-text);
	background: var(--lf-bg);
	box-sizing: border-box;
	width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(16px, 5vw, 64px) clamp(16px, 5vw, 40px);
	-webkit-font-smoothing: antialiased;
}

.lf-funnel *,
.lf-funnel *::before,
.lf-funnel *::after { box-sizing: border-box; }

.lf-screen { display: none; width: 100%; max-width: 620px; margin: 0 auto; }
.lf-screen.is-active { display: block; }

/* ---------- Buttons ---------- */
.lf-btn {
	font: inherit;
	font-weight: 600;
	border: 0;
	cursor: pointer;
	border-radius: 14px;
	padding: 16px 26px;
	transition: transform .15s ease, opacity .15s ease, background .15s ease;
	letter-spacing: -0.01em;
}
.lf-btn:active { transform: translateY(1px); }
.lf-btn--primary {
	background: var(--lf-accent);
	color: #fff;
	font-size: 17px;
	width: 100%;
}
.lf-btn--primary:hover { filter: brightness(0.95); }
.lf-btn--ghost {
	background: transparent;
	color: var(--lf-text);
	border: 1.5px solid var(--lf-line);
	padding: 14px 22px;
}
.lf-btn--ghost:hover { border-color: var(--lf-text); }

/* ---------- Intro / hero ---------- */
.lf-intro__inner {
	background: var(--lf-card);
	border-radius: 24px;
	padding: clamp(26px, 6vw, 48px);
	box-shadow: 0 1px 0 var(--lf-line), 0 30px 60px -40px rgba(0,0,0,.35);
}
.lf-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lf-accent);
	margin-bottom: 18px;
}
.lf-hero-title {
	font-size: clamp(30px, 7vw, 46px);
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 16px;
}
.lf-hero-sub {
	font-size: clamp(16px, 2.4vw, 18px);
	line-height: 1.5;
	color: var(--lf-muted);
	margin: 0 0 28px;
	max-width: 46ch;
}
.lf-prize {
	border-top: 1px solid var(--lf-line);
	padding-top: 24px;
	margin-bottom: 28px;
}
.lf-prize__title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 16px;
	letter-spacing: -0.01em;
}
.lf-prize__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lf-prize__list li {
	position: relative;
	padding-left: 28px;
	font-size: 15px;
	color: var(--lf-text);
}
.lf-prize__list li::before {
	content: "";
	position: absolute;
	left: 0; top: 7px;
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--lf-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.lf-deadline {
	font-size: 14px;
	margin: 0 0 18px;
	color: var(--lf-text);
}
.lf-deadline strong { color: var(--lf-accent); }
.lf-runnerup {
	font-size: 13.5px;
	color: var(--lf-muted);
	margin: 16px 0 0;
	line-height: 1.5;
	text-align: center;
}

/* ---------- Form screen ---------- */
.lf-form-screen { animation: lf-fade .35s ease; }
.lf-form__head { margin-bottom: 26px; }
.lf-progress {
	height: 6px;
	border-radius: 99px;
	background: rgba(0,0,0,.08);
	overflow: hidden;
}
.lf-progress__bar {
	display: block;
	height: 100%;
	width: 0;
	background: var(--lf-accent);
	border-radius: 99px;
	transition: width .4s cubic-bezier(.4,0,.2,1);
}
.lf-progress__label {
	display: block;
	margin-top: 10px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--lf-muted);
}

.lf-step { display: none; animation: lf-slide .4s cubic-bezier(.16,1,.3,1); }
.lf-step.is-active { display: block; }
.lf-step__title {
	font-size: clamp(22px, 5vw, 30px);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.12;
	margin: 0 0 8px;
}
.lf-step__sub { font-size: 15px; color: var(--lf-muted); margin: 0 0 24px; }
.lf-step__title + .lf-fields { margin-top: 24px; }

.lf-fields { display: grid; gap: 18px; }
.lf-field__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
}
.lf-field__label .req { color: var(--lf-accent); }

/* text / email / tel / textarea / select */
.lf-input, .lf-textarea, .lf-select {
	width: 100%;
	font: inherit;
	font-size: 16px;
	padding: 16px 16px;
	border: 1.5px solid var(--lf-line);
	border-radius: 14px;
	background: var(--lf-card);
	color: var(--lf-text);
	transition: border-color .15s ease, box-shadow .15s ease;
	appearance: none;
}
.lf-textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.lf-input:focus, .lf-textarea:focus, .lf-select:focus {
	outline: none;
	border-color: var(--lf-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--lf-accent) 18%, transparent);
}
.lf-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 44px;
	cursor: pointer;
}

/* radio cards */
.lf-options { display: grid; gap: 12px; }
.lf-option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 18px;
	border: 1.5px solid var(--lf-line);
	border-radius: 16px;
	background: var(--lf-card);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, transform .1s ease;
	font-size: 16px;
	font-weight: 500;
}
.lf-option:hover { border-color: var(--lf-text); }
.lf-option__dot {
	flex: 0 0 22px;
	width: 22px; height: 22px;
	border-radius: 50%;
	border: 2px solid var(--lf-line);
	position: relative;
	transition: border-color .15s ease;
}
.lf-option input { position: absolute; opacity: 0; pointer-events: none; }
.lf-option.is-selected {
	border-color: var(--lf-accent);
	background: color-mix(in srgb, var(--lf-accent) 7%, var(--lf-card));
}
.lf-option.is-selected .lf-option__dot { border-color: var(--lf-accent); }
.lf-option.is-selected .lf-option__dot::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--lf-accent);
}

.lf-error { color: #c0392b; font-size: 13px; margin-top: 6px; display: none; }
.lf-field.has-error .lf-input,
.lf-field.has-error .lf-textarea,
.lf-field.has-error .lf-select { border-color: #c0392b; }
.lf-field.has-error .lf-error { display: block; }

/* nav */
.lf-nav { display: flex; gap: 12px; margin-top: 30px; align-items: center; }
.lf-nav .lf-next { flex: 1; }
.lf-legal {
	font-size: 12px;
	color: var(--lf-muted);
	line-height: 1.5;
	margin: 20px 0 0;
	text-align: center;
}
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Success ---------- */
.lf-success { text-align: center; }
.lf-success__inner {
	background: var(--lf-card);
	border-radius: 24px;
	padding: clamp(36px, 8vw, 64px) clamp(24px, 6vw, 48px);
	box-shadow: 0 30px 60px -40px rgba(0,0,0,.35);
}
.lf-check {
	width: 76px; height: 76px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--lf-accent);
	color: #fff;
	display: grid;
	place-items: center;
	animation: lf-pop .5s cubic-bezier(.16,1,.3,1);
}
.lf-check svg { width: 36px; height: 36px; }
.lf-success__title {
	font-size: clamp(24px, 5vw, 32px);
	font-weight: 800;
	letter-spacing: -0.025em;
	margin: 0 0 12px;
}
.lf-success__sub { color: var(--lf-muted); font-size: 15.5px; line-height: 1.5; margin: 0; }

/* ---------- Animations ---------- */
@keyframes lf-slide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes lf-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lf-pop   { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

@media (max-width: 480px) {
	.lf-funnel { padding: 14px; align-items: stretch; }
	.lf-nav { position: sticky; bottom: 0; }
}
