/* Lead Qualification Funnel — front end
   All colours, fonts and sizes come from CSS variables printed by PHP,
   so the settings screen controls this file without editing it. */

.lf {
	--lf-bg: #111111;
	--lf-card: #191919;
	--lf-raised: #202020;
	--lf-line: #2b2b2b;
	--lf-accent: #f59e0b;
	--lf-accent-dim: rgba(245, 158, 11, 0.1);
	--lf-accent-line: rgba(245, 158, 11, 0.45);
	--lf-text: #ededed;
	--lf-muted: #8b8b8b;
	--lf-danger: #f87171;
	--lf-solid-bg: #ffffff;
	--lf-solid-text: #111111;
	--lf-font-heading: Georgia, serif;
	--lf-font-body: system-ui, sans-serif;
	--lf-h1: 28px;
	--lf-base: 15px;
	--lf-radius: 16px;
	--lf-width: 560px;
	--lf-wide: 720px;

	background: var(--lf-bg);
	color: var(--lf-text);
	font-family: var(--lf-font-body);
	font-size: var(--lf-base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 20px 56px;
	box-sizing: border-box;
}

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

.lf p {
	margin: 0;
}

.lf-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.lf-banner {
	width: 100%;
	max-width: var(--lf-wide);
	margin-bottom: 20px;
	padding: 10px 16px;
	border: 1px solid var(--lf-accent-line);
	background: var(--lf-accent-dim);
	border-radius: 8px;
	color: var(--lf-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
}

.lf-card {
	width: 100%;
	max-width: var(--lf-width);
	background: var(--lf-card);
	border: 1px solid var(--lf-line);
	border-radius: var(--lf-radius);
	padding: 36px 34px 32px;
}

.lf-card.is-wide {
	max-width: var(--lf-wide);
}

.lf-progress {
	display: flex;
	gap: 6px;
	margin-bottom: 26px;
}

.lf-progress span {
	height: 2px;
	flex: 1;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	transition: background 240ms ease;
}

.lf-progress span.is-done {
	background: var(--lf-accent);
}

.lf-eyebrow {
	margin: 0 0 12px !important;
	color: var(--lf-accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.lf-h1 {
	margin: 0 !important;
	padding: 0;
	font-family: var(--lf-font-heading);
	font-weight: 600;
	font-size: var(--lf-h1);
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--lf-text);
}

.lf-h1.is-xl {
	font-size: calc(var(--lf-h1) + 6px);
}

.lf-sub {
	margin: 12px 0 0 !important;
	color: var(--lf-muted);
	font-size: calc(var(--lf-base) - 0.5px);
}

.lf-stack {
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* -------------------------------------------------- selectable options */

.lf-option {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 18px;
	text-align: left;
	background: var(--lf-raised);
	color: var(--lf-text);
	border: 1px solid var(--lf-line);
	border-radius: 10px;
	font-family: inherit;
	font-size: var(--lf-base);
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.lf-option:hover {
	border-color: var(--lf-accent-line);
	color: var(--lf-accent);
}

.lf-option.is-selected {
	border-color: var(--lf-accent);
	background: var(--lf-accent-dim);
	color: var(--lf-accent);
}

.lf-dot {
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid var(--lf-muted);
	position: relative;
}

.lf-option:hover .lf-dot,
.lf-option.is-selected .lf-dot {
	border-color: var(--lf-accent);
}

.lf-option.is-selected .lf-dot::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--lf-accent);
}

/* ------------------------------------------------------------- fields */

.lf-fields {
	margin-top: 26px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.lf-label {
	display: block;
	margin-bottom: 7px;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--lf-muted);
}

.lf-label i {
	color: var(--lf-accent);
	font-style: normal;
}

.lf-input,
.lf-select,
.lf-textarea {
	width: 100%;
	background: var(--lf-raised);
	border: 1px solid var(--lf-line);
	border-radius: 9px;
	color: var(--lf-text);
	font-family: inherit;
	font-size: var(--lf-base);
	line-height: 1.4;
	padding: 12px 14px;
	transition: border-color 160ms ease;
	box-shadow: none;
}

.lf-textarea {
	min-height: 108px;
	resize: vertical;
}

.lf-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 38px;
}

.lf-select option {
	background: var(--lf-card);
	color: var(--lf-text);
}

.lf-input:focus,
.lf-select:focus,
.lf-textarea:focus {
	outline: none;
	border-color: var(--lf-accent);
	box-shadow: none;
}

.lf-input::placeholder,
.lf-textarea::placeholder {
	color: var(--lf-muted);
	opacity: 0.7;
}

.lf-input.has-error,
.lf-select.has-error,
.lf-textarea.has-error {
	border-color: var(--lf-danger);
}

.lf-error {
	margin: 6px 0 0 !important;
	font-size: 12.5px;
	color: var(--lf-danger);
}

.lf-notice {
	margin-top: 16px !important;
	padding: 12px 14px;
	border: 1px solid var(--lf-danger);
	border-radius: 9px;
	color: var(--lf-danger);
	font-size: 13px;
}

/* ------------------------------------------------------------ consent */

.lf-consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding-top: 4px;
	cursor: pointer;
}

.lf-consent input {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	border: 1px solid var(--lf-muted);
	border-radius: 4px;
	background: var(--lf-raised);
	cursor: pointer;
	position: relative;
	transition: border-color 160ms ease, background 160ms ease;
}

.lf-consent input:checked {
	background: var(--lf-accent);
	border-color: var(--lf-accent);
}

.lf-consent input:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid var(--lf-card);
	border-width: 0 2px 2px 0;
	transform: rotate(43deg);
}

.lf-consent input.has-error {
	border-color: var(--lf-danger);
}

.lf-consent span {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--lf-muted);
}

.lf-consent a {
	color: var(--lf-text);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.lf-consent a:hover {
	color: var(--lf-accent);
}

/* ------------------------------------------------------------ buttons */

.lf-btn {
	width: 100%;
	display: block;
	text-align: center;
	text-decoration: none;
	padding: 15px 20px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.lf-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

.lf-btn-outline {
	background: transparent;
	color: var(--lf-text);
	border: 1px solid var(--lf-accent);
}

.lf-btn-outline:hover {
	background: var(--lf-accent-dim);
	color: var(--lf-accent);
}

.lf-btn-solid {
	background: var(--lf-solid-bg);
	color: var(--lf-solid-text);
	border: 1px solid var(--lf-solid-bg);
}

.lf-btn-solid:hover {
	opacity: 0.88;
	color: var(--lf-solid-text);
}

.lf-back {
	margin-top: 22px;
	background: none;
	border: none;
	padding: 0;
	color: var(--lf-muted);
	font-family: inherit;
	font-size: 13.5px;
	cursor: pointer;
	transition: color 160ms ease;
}

.lf-back:hover {
	color: var(--lf-accent);
}

/* -------------------------------------------------------- cta / final */

.lf-price {
	margin: 22px 0 0 !important;
	color: var(--lf-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.lf-rule {
	height: 1px;
	background: var(--lf-line);
	margin: 26px 0;
	border: 0;
}

.lf-final {
	text-align: center;
	padding: 14px 0 4px;
}

.lf-check {
	width: 46px;
	height: 46px;
	margin: 0 auto 22px;
	border-radius: 50%;
	border: 1px solid var(--lf-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--lf-accent);
	font-size: 20px;
}

/* -------------------------------------------------------- scheduling */

.lf-dates {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 6px;
	margin-top: 26px;
	scrollbar-width: thin;
}

.lf-date {
	flex: none;
	min-width: 84px;
	padding: 12px 10px;
	border-radius: 10px;
	border: 1px solid var(--lf-line);
	background: var(--lf-raised);
	color: var(--lf-muted);
	font-family: inherit;
	cursor: pointer;
	text-align: center;
	transition: border-color 160ms ease, background 160ms ease;
}

.lf-date b {
	display: block;
	font-size: 18px;
	font-weight: 600;
	color: var(--lf-text);
	line-height: 1.3;
}

.lf-date em {
	font-style: normal;
	display: block;
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lf-date:hover {
	border-color: var(--lf-accent-line);
}

.lf-date.is-selected {
	border-color: var(--lf-accent);
	background: var(--lf-accent-dim);
}

.lf-date.is-selected b,
.lf-date.is-selected em {
	color: var(--lf-accent);
}

.lf-section-label {
	margin: 28px 0 12px !important;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lf-muted);
}

.lf-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
	gap: 10px;
}

.lf-slot {
	padding: 13px 10px;
	border-radius: 9px;
	border: 1px solid var(--lf-line);
	background: var(--lf-raised);
	color: var(--lf-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.lf-slot:hover {
	border-color: var(--lf-accent);
	color: var(--lf-accent);
	background: var(--lf-accent-dim);
}

.lf-sched-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 20px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--lf-line);
}

.lf-sched-head .lf-back {
	margin: 0;
}

.lf-when {
	text-align: right;
}

.lf-when b {
	display: block;
	font-family: var(--lf-font-heading);
	font-size: 17px;
	font-weight: 600;
	color: var(--lf-text);
}

.lf-when span {
	font-size: 12.5px;
	color: var(--lf-muted);
}

.lf-tz-wrap {
	margin-top: 28px;
	max-width: 280px;
}

.lf :focus-visible {
	outline: 2px solid var(--lf-accent);
	outline-offset: 2px;
}

.lf-fade {
	animation: lf-fade-in 260ms ease both;
}

@keyframes lf-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 600px) {
	.lf {
		padding: 24px 14px 40px;
	}

	.lf-card {
		padding: 28px 22px 26px;
	}

	.lf-h1 {
		font-size: calc(var(--lf-h1) - 4px);
	}

	.lf-row {
		grid-template-columns: 1fr;
	}

	.lf-sched-head {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.lf-when {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lf *,
	.lf *::before,
	.lf *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ------------------------------------------------- admin-built fields */

.lf-field {
	min-width: 0;
}

.lf-row .lf-field {
	margin: 0;
}

.lf-radios {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lf-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--lf-line);
	border-radius: 9px;
	background: var(--lf-raised);
	color: var(--lf-text);
	font-size: calc(var(--lf-base) - 1px);
	cursor: pointer;
	transition: border-color 160ms ease, color 160ms ease;
}

.lf-radio:hover {
	border-color: var(--lf-accent-line);
}

.lf-radio input {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	border-radius: 50%;
	border: 1px solid var(--lf-muted);
	background: transparent;
	position: relative;
	cursor: pointer;
}

.lf-radio input:checked {
	border-color: var(--lf-accent);
}

.lf-radio input:checked::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--lf-accent);
}

.lf-radios.has-error {
	border-radius: 9px;
	outline: 1px solid var(--lf-danger);
	outline-offset: 4px;
}

.lf-actions {
	margin-top: 28px;
}

.lf-flush {
	margin-top: 0 !important;
}

.lf-input[type="date"] {
	color-scheme: dark;
}

/* ----------------------------------------------------------------------
   Theme isolation.

   Themes routinely style content with selectors like `.entry-content h2`
   or `.post input`, which outrank a single plugin class. When "Force my
   styles over the theme" is on, the funnel wins these fights.
   ---------------------------------------------------------------------- */

.lf.lf-isolated .lf-h1 {
	font-family: var(--lf-font-heading) !important;
	color: var(--lf-text) !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: -0.01em !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

.lf.lf-isolated .lf-eyebrow,
.lf.lf-isolated .lf-price {
	color: var(--lf-accent) !important;
}

.lf.lf-isolated .lf-sub,
.lf.lf-isolated .lf-label,
.lf.lf-isolated .lf-consent span,
.lf.lf-isolated .lf-section-label {
	color: var(--lf-muted) !important;
}

.lf.lf-isolated .lf-label i {
	color: var(--lf-accent) !important;
}

.lf.lf-isolated .lf-error,
.lf.lf-isolated .lf-notice {
	color: var(--lf-danger) !important;
}

.lf.lf-isolated .lf-input,
.lf.lf-isolated .lf-select,
.lf.lf-isolated .lf-textarea {
	background: var(--lf-raised) !important;
	background-color: var(--lf-raised) !important;
	color: var(--lf-text) !important;
	border: 1px solid var(--lf-line) !important;
	border-radius: 9px !important;
	font-family: var(--lf-font-body) !important;
	box-shadow: none !important;
	text-transform: none !important;
	width: 100% !important;
	max-width: 100% !important;
	line-height: 1.4 !important;
	margin: 0 !important;
}

.lf.lf-isolated .lf-input:focus,
.lf.lf-isolated .lf-select:focus,
.lf.lf-isolated .lf-textarea:focus {
	border-color: var(--lf-accent) !important;
	box-shadow: none !important;
	outline: none !important;
}

.lf.lf-isolated .lf-input.has-error,
.lf.lf-isolated .lf-select.has-error,
.lf.lf-isolated .lf-textarea.has-error {
	border-color: var(--lf-danger) !important;
}

.lf.lf-isolated .lf-option,
.lf.lf-isolated .lf-slot,
.lf.lf-isolated .lf-date,
.lf.lf-isolated .lf-radio {
	background: var(--lf-raised) !important;
	border: 1px solid var(--lf-line) !important;
	font-family: var(--lf-font-body) !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.lf.lf-isolated .lf-option,
.lf.lf-isolated .lf-slot,
.lf.lf-isolated .lf-radio {
	color: var(--lf-text) !important;
}

.lf.lf-isolated .lf-option:hover,
.lf.lf-isolated .lf-slot:hover {
	color: var(--lf-accent) !important;
	border-color: var(--lf-accent) !important;
	background: var(--lf-accent-dim) !important;
}

.lf.lf-isolated .lf-option.is-selected,
.lf.lf-isolated .lf-date.is-selected {
	border-color: var(--lf-accent) !important;
	background: var(--lf-accent-dim) !important;
}

.lf.lf-isolated .lf-option.is-selected {
	color: var(--lf-accent) !important;
}

.lf.lf-isolated .lf-date b {
	color: var(--lf-text) !important;
}

.lf.lf-isolated .lf-date.is-selected b,
.lf.lf-isolated .lf-date.is-selected em {
	color: var(--lf-accent) !important;
}

.lf.lf-isolated .lf-btn {
	font-family: var(--lf-font-body) !important;
	border-radius: 10px !important;
	text-transform: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	width: 100% !important;
	height: auto !important;
	line-height: 1.4 !important;
}

.lf.lf-isolated .lf-btn-outline {
	background: transparent !important;
	background-color: transparent !important;
	color: var(--lf-text) !important;
	border: 1px solid var(--lf-accent) !important;
}

.lf.lf-isolated .lf-btn-outline:hover {
	background: var(--lf-accent-dim) !important;
	color: var(--lf-accent) !important;
}

.lf.lf-isolated .lf-btn-solid {
	background: var(--lf-solid-bg) !important;
	color: var(--lf-solid-text) !important;
	border: 1px solid var(--lf-solid-bg) !important;
}

.lf.lf-isolated .lf-back {
	background: none !important;
	border: 0 !important;
	color: var(--lf-muted) !important;
	padding: 0 !important;
	width: auto !important;
	box-shadow: none !important;
}

.lf.lf-isolated .lf-back:hover {
	color: var(--lf-accent) !important;
	background: none !important;
}

.lf.lf-isolated .lf-card {
	background: var(--lf-card) !important;
	border: 1px solid var(--lf-line) !important;
	box-shadow: none !important;
}

.lf.lf-isolated .lf-consent a {
	color: var(--lf-text) !important;
	text-decoration: underline !important;
}

.lf.lf-isolated .lf-consent a:hover {
	color: var(--lf-accent) !important;
}

.lf.lf-isolated .lf-consent input,
.lf.lf-isolated .lf-radio input {
	box-shadow: none !important;
	min-height: 0 !important;
	width: 18px !important;
	height: 18px !important;
}

.lf.lf-isolated .lf-radio input {
	width: 16px !important;
	height: 16px !important;
}
