/* Nicho Lead Banner v1.1.1
 * Palette: ink #0F2230, cream #FBF6EF, orange #F48404, apricot #F7C38F, slate #5B6472.
 * Every rule is scoped to .nlb and written to win over Hello Elementor's reset.css.
 */

.nlb[hidden],
.nlb [hidden] { display: none !important; }

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

.nlb {
	--nlb-ink: #0F2230;
	--nlb-cream: #FBF6EF;
	--nlb-orange: #F48404;
	--nlb-orange-hover: #FF951F;
	--nlb-apricot: #F7C38F;
	--nlb-slate: #5B6472;
	--nlb-field: #FFFDF9;
	--nlb-muted: rgba(251, 246, 239, 0.78);
	--nlb-ease: cubic-bezier(0.22, 0.8, 0.26, 1);
	font-family: var(--e-global-typography-text-font-family, "Inter"), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Card (desktop: floating, bottom left) ---------- */
.nlb .nlb__card {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 99990;
	width: clamp(396px, 31vw, 420px);
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	margin: 0;
	padding: 30px 28px 24px;
	background: var(--nlb-ink);
	color: var(--nlb-cream);
	border-radius: 16px;
	box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(251, 246, 239, 0.08);
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	text-align: left;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.28s var(--nlb-ease), transform 0.34s var(--nlb-ease);
}

/* Small orange tab on the top edge, off-centre on purpose. */
.nlb .nlb__card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 28px;
	width: 44px;
	height: 4px;
	border-radius: 0 0 3px 3px;
	background: var(--nlb-orange);
}

.nlb.is-open .nlb__card {
	opacity: 1;
	transform: translateY(0);
}

.nlb .nlb__card:focus { outline: none; }
.nlb .nlb__card:focus-visible { outline: none; }

.nlb .nlb__backdrop { display: none; }

/* ---------- Close ---------- */
.nlb .nlb__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(251, 246, 239, 0.08);
	color: var(--nlb-cream);
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
	transition: background-color 0.2s ease;
}
.nlb .nlb__close:hover,
.nlb .nlb__close:focus { background: rgba(251, 246, 239, 0.16); color: var(--nlb-cream); }
.nlb .nlb__close:focus { outline: none; }
.nlb .nlb__close:focus-visible { outline: 2px solid var(--nlb-orange); outline-offset: 2px; }
.nlb .nlb__close svg { display: block; }

/* ---------- Text ---------- */
.nlb .nlb__title {
	margin: 4px 48px 8px 0;
	padding: 0;
	font-family: inherit;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--nlb-cream);
	text-transform: none;
}
.nlb .nlb__title:focus { outline: none; }
.nlb .nlb__dot { color: var(--nlb-orange); }

.nlb .nlb__lead {
	margin: 0 0 20px;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
	font-weight: 400;
	color: var(--nlb-muted);
	max-width: 32em;
}

/* ---------- Form ---------- */
.nlb .nlb__form { display: grid; gap: 12px; margin: 0; }
.nlb .nlb__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nlb .nlb__field { display: flex; flex-direction: column; min-width: 0; margin: 0; }

.nlb .nlb__label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 6px;
	padding: 0;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 500;
	color: rgba(251, 246, 239, 0.9);
	vertical-align: baseline;
}
.nlb .nlb__hint {
	font-size: 12px;
	font-weight: 400;
	color: var(--nlb-apricot);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nlb .nlb__input {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 14px;
	font-family: inherit;
	font-size: 16px; /* 16px keeps iOS from zooming */
	line-height: 1.2;
	font-weight: 500;
	color: var(--nlb-ink);
	background: var(--nlb-field);
	border: 1.5px solid transparent;
	border-radius: 10px;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.nlb .nlb__input::placeholder { color: var(--nlb-slate); opacity: 0.75; }
.nlb .nlb__input:focus {
	color: var(--nlb-ink);
	background: #FFFFFF;
	border-color: var(--nlb-orange);
	box-shadow: 0 0 0 3px rgba(244, 132, 4, 0.35);
	outline: none;
}
.nlb select.nlb__select {
	padding-right: 40px;
	cursor: pointer;
	text-overflow: ellipsis;
	background-color: var(--nlb-field);
	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.5 1.5l4.5 4.5 4.5-4.5' fill='none' stroke='%23A8470A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 12px 8px;
}
.nlb select.nlb__select:focus { background-color: #FFFFFF; }
.nlb select.nlb__select.is-empty { color: rgba(91, 100, 114, 0.9); font-weight: 400; }
.nlb select.nlb__select option { color: var(--nlb-ink); font-weight: 500; }
.nlb select.nlb__select::-ms-expand { display: none; }
.nlb .nlb__input[aria-invalid="true"] { border-color: var(--nlb-apricot); box-shadow: 0 0 0 2px rgba(247, 195, 143, 0.35); }

.nlb .nlb__error {
	margin: 6px 0 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.35;
	font-weight: 500;
	color: var(--nlb-apricot);
}

/* Honeypot */
.nlb .nlb__hp {
	position: absolute !important;
	left: -10000px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Consent */
.nlb .nlb__check {
	display: grid;
	grid-template-columns: 22px 1fr;
	column-gap: 10px;
	align-items: start;
	margin: 4px 0 0;
}
.nlb .nlb__checkbox {
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--nlb-orange);
	cursor: pointer;
}
.nlb .nlb__checkbox:focus-visible { outline: 2px solid var(--nlb-orange); outline-offset: 2px; }
.nlb .nlb__check-label {
	display: block;
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
	color: rgba(251, 246, 239, 0.9);
	cursor: pointer;
	vertical-align: baseline;
}
.nlb .nlb__check .nlb__error { grid-column: 2; }
.nlb a { color: var(--nlb-apricot); }
.nlb .nlb__check-label a,
.nlb .nlb__check-label a:visited {
	color: var(--nlb-apricot);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.nlb .nlb__check-label a:hover { color: var(--nlb-cream); }
.nlb .nlb__check-label a:focus-visible { outline: 2px solid var(--nlb-orange); outline-offset: 2px; border-radius: 2px; }

.nlb .nlb__form-error {
	margin: 0;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--nlb-cream);
	background: rgba(247, 195, 143, 0.12);
	border-left: 3px solid var(--nlb-apricot);
	border-radius: 4px;
}

/* ---------- Buttons ---------- */
.nlb .nlb__btn,
.nlb .nlb__btn:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 12px 18px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.005em;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: normal;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.nlb .nlb__btn--primary,
.nlb .nlb__btn--primary:visited {
	color: var(--nlb-ink);
	background: var(--nlb-orange);
	border: 0;
}
.nlb .nlb__btn--primary:hover,
.nlb .nlb__btn--primary:focus {
	color: var(--nlb-ink);
	background: var(--nlb-orange-hover);
	border: 0;
	text-decoration: none;
}
.nlb .nlb__btn--ghost,
.nlb .nlb__btn--ghost:visited {
	color: var(--nlb-cream);
	background: transparent;
	border: 1.5px solid rgba(247, 195, 143, 0.55);
	font-size: 15px;
	font-weight: 600;
	padding-left: 12px;
	padding-right: 12px;
}
.nlb .nlb__btn--ghost:hover,
.nlb .nlb__btn--ghost:focus {
	color: var(--nlb-cream);
	background: rgba(247, 195, 143, 0.1);
	border-color: var(--nlb-apricot);
	text-decoration: none;
}
.nlb .nlb__btn:focus { outline: none; }
.nlb .nlb__btn:focus-visible { outline: 2px solid var(--nlb-cream); outline-offset: 3px; }
.nlb .nlb__btn:active { transform: translateY(1px); }
.nlb .nlb__btn[disabled],
.nlb .nlb__btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.nlb .nlb__btn--primary[type="submit"] { margin-top: 4px; }
.nlb .nlb__icon { flex: none; }

.nlb .nlb__actions { display: grid; gap: 10px; margin: 4px 0 0; }

.nlb .nlb__note {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: rgba(251, 246, 239, 0.7);
}

.nlb .nlb__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* ---------- Mobile: bottom sheet ---------- */
@media (max-width: 600px) {
	.nlb .nlb__backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99989;
		background: rgba(8, 18, 26, 0.55);
		opacity: 0;
		transition: opacity 0.3s ease;
	}
	.nlb.is-open .nlb__backdrop { opacity: 1; }

	.nlb .nlb__card {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: none;
		max-height: 90vh;
		max-height: 90dvh;
		padding: 26px 20px calc(20px + env(safe-area-inset-bottom, 0px));
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -18px 40px -12px rgba(0, 0, 0, 0.5);
		-webkit-overflow-scrolling: touch;
		transform: translateY(100%);
		opacity: 1;
		transition: transform 0.36s var(--nlb-ease);
	}
	.nlb.is-open .nlb__card { transform: translateY(0); }
	.nlb .nlb__card::before { left: 20px; }
	.nlb .nlb__close { top: 12px; right: 12px; }
	.nlb .nlb__title { font-size: 24px; margin-right: 52px; }
	.nlb .nlb__lead { margin-bottom: 18px; }
	.nlb .nlb__row { gap: 10px; }
}

@media (max-width: 340px) {
	.nlb .nlb__row { grid-template-columns: 1fr; }
}

@media (max-height: 560px) and (min-width: 601px) {
	.nlb .nlb__card { bottom: 12px; max-height: calc(100vh - 24px); padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.nlb .nlb__card,
	.nlb .nlb__backdrop { transition: opacity 0.15s linear !important; transform: none !important; }
	.nlb .nlb__card { opacity: 0; }
	.nlb.is-open .nlb__card { opacity: 1; }
}
