/* SV footer newsletter block — Figma 939:20225 / mobile 986:4606 / success 981:4547 */

/* Never let this row go full-bleed / Salient left-offset (breaks Footer_SV). */
html body .wpb_row.leg-nl-block-row,
html body .wpb_row.leg-nl-block-row.full-width-content {
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	transform: none !important;
	box-sizing: border-box !important;
}

html body .wpb_row.leg-nl-block-row > .row_col_wrap_12 {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}

/* Kill Salient column gutters so the blue card matches footer content width. */
html body .wpb_row.leg-nl-block-row > .row_col_wrap_12 > .wpb_column,
html body .wpb_row.leg-nl-block-row > .row_col_wrap_12 > .wpb_column.col,
html body .wpb_row.leg-nl-block-row > .row_col_wrap_12 > .wpb_column > .vc_column-inner,
html body .nectar_hook_global_section_after_content .wpb_row.leg-nl-block-row .wpb_column,
html body .nectar_hook_global_section_after_content .wpb_row.leg-nl-block-row .wpb_column > .vc_column-inner {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/*
 * Migrated chrome pages force the Footer_SV container full-bleed and only
 * pad rows that :has(.footerCopyright|.footerLinks). Mirror that for the
 * newsletter row so the card lines up with the logo / footer columns.
 *
 * Match any redesigned page: pcs-* body class, homepage chrome, PM modules,
 * or any hp-*-hero section (pa/ep/ja/demo/ai/…). Old Salient pages match
 * none of these, so they keep the normal ~1525 container gutters.
 */
html body:is(
	.home:has(.hp-home),
	[class*="pcs-"],
	:has([class*="hp-"][class*="-hero"]),
	:has(.hp-pm-modules),
	:has(.hp-home)
) .nectar_hook_global_section_after_content > .container > .wpb_row.leg-nl-block-row {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: var(--hp-section-pad, 120px) !important;
	padding-right: var(--hp-section-pad, 120px) !important;
	left: 0 !important;
	right: 0 !important;
	box-sizing: border-box !important;
}

html body:is(
	.home:has(.hp-home),
	[class*="pcs-"],
	:has([class*="hp-"][class*="-hero"]),
	:has(.hp-pm-modules),
	:has(.hp-home)
) .nectar_hook_global_section_after_content > .container > .wpb_row.leg-nl-block-row > .row_col_wrap_12 {
	max-width: var(--hp-container, 1680px) !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box !important;
}

/* Salient default column gutters (~19px) shove the card off the chrome grid. */
html body:is(
	.home:has(.hp-home),
	[class*="pcs-"],
	:has([class*="hp-"][class*="-hero"]),
	:has(.hp-pm-modules),
	:has(.hp-home)
) .nectar_hook_global_section_after_content > .container > .wpb_row.leg-nl-block-row > .row_col_wrap_12 > .wpb_column,
html body:is(
	.home:has(.hp-home),
	[class*="pcs-"],
	:has([class*="hp-"][class*="-hero"]),
	:has(.hp-pm-modules),
	:has(.hp-home)
) .nectar_hook_global_section_after_content > .container > .wpb_row.leg-nl-block-row > .row_col_wrap_12 > .wpb_column > .vc_column-inner {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

html body .wpb_text_column.leg-nl-block-wrap,
html body .wpb_text_column.leg-nl-block-wrap .wpb_wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

html body .wpb_text_column.leg-nl-block-wrap > .wpb_wrapper > p {
	margin: 0 !important;
	padding: 0 !important;
}

html body .leg-nl-block {
	--leg-nl-blue: #0065fc;
	--leg-nl-blue-border: #5e9fff;
	--leg-nl-text: #171719;
	--leg-nl-body: #203040;
	--leg-nl-muted: #5b6672;
	--leg-nl-warm: #f3f0f0;
	--leg-nl-bg: #f2f7ff;
	--leg-nl-radius: 24px;
	--leg-nl-radius-btn: 12px;
	--leg-nl-font: "Soderberg Sans", "Söderberg Sans", sans-serif;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	/* Equal air above card and below → logo (footer top pad is zeroed after this row). */
	padding: 96px 0;
	font-family: var(--leg-nl-font);
	color: var(--leg-nl-body);
	background: transparent;
	overflow: hidden;
}

/*
 * Drop the next footer's top pad (Salient 40px / chrome --hp-footer-top ~109px)
 * so the gap below the card equals the block's own bottom pad.
 * Specificity must beat page chrome rules like:
 *   html body:is(.pcs-pa, :has(.hp-pa-hero)) … .wpb_row:has(.footerCopyright)
 */
html body .nectar_hook_global_section_after_content > .container > .wpb_row.leg-nl-block-row {
	margin-bottom: 0 !important;
}

html body .nectar_hook_global_section_after_content > .container > .wpb_row.leg-nl-block-row + .wpb_row,
html body .nectar_hook_global_section_after_content > .container > .wpb_row.leg-nl-block-row + .wpb_row:has(.footerCopyright),
html body .nectar_hook_global_section_after_content > .container > .wpb_row.leg-nl-block-row + .wpb_row:has(.footerLinks) {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

html body .leg-nl-block *,
html body .leg-nl-block *::before,
html body .leg-nl-block *::after {
	box-sizing: border-box;
}

html body .leg-nl-block__card {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 32px 40px;
	border-radius: var(--leg-nl-radius);
	background: var(--leg-nl-bg);
	overflow: hidden;
}

html body .leg-nl-block__panel--form {
	display: flex;
	align-items: center;
	gap: 48px;
	width: 100%;
	min-width: 0;
}

html body .leg-nl-block__panel[hidden] {
	display: none !important;
}

html body .leg-nl-block__copy {
	flex: 1 1 0;
	width: 50%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

html body .leg-nl-block__title {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--leg-nl-text) !important;
	font-family: var(--leg-nl-font) !important;
	font-size: 36px !important;
	font-weight: 700 !important;
	line-height: 43px !important;
	letter-spacing: 0 !important;
}

html body .leg-nl-block__lead {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--leg-nl-body) !important;
	font-family: var(--leg-nl-font) !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 30px !important;
}

html body .leg-nl-block__form {
	flex: 1 1 0;
	width: 50%;
	max-width: none;
	min-width: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 12px;
	row-gap: 12px;
	margin: 0;
}

html body .leg-nl-block__fields {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	grid-column: 1;
	grid-row: 1;
}

html body .leg-nl-block button.leg-nl-block__btn,
html body .leg-nl-block .leg-nl-block__btn {
	grid-column: 2;
	grid-row: 1;
}

html body .leg-nl-block__consent {
	grid-column: 1 / -1;
	grid-row: 2;
	width: 100%;
}

html body .leg-nl-block__msg {
	grid-column: 1 / -1;
	width: 100%;
}

html body .leg-nl-block__hp {
	grid-column: 1 / -1;
	width: 100%;
}

html body .leg-nl-block__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;
}

html body .leg-nl-block input.leg-nl-block__input,
html body .leg-nl-block .leg-nl-block__input {
	flex: 1 1 0;
	width: auto !important;
	min-width: 0 !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 8px 24px !important;
	border: 1px solid var(--leg-nl-warm) !important;
	border-radius: var(--leg-nl-radius-btn) !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--leg-nl-body) !important;
	font-family: var(--leg-nl-font) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 21px !important;
	outline: none;
}

html body .leg-nl-block input.leg-nl-block__input::placeholder {
	color: var(--leg-nl-muted) !important;
	opacity: 1;
}

html body .leg-nl-block input.leg-nl-block__input:focus {
	border-color: var(--leg-nl-blue-border) !important;
}

html body .leg-nl-block input.leg-nl-block__input.is-invalid {
	border-color: #ff6380 !important;
}

html body .leg-nl-block button.leg-nl-block__btn,
html body .leg-nl-block .leg-nl-block__btn {
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 0 !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 10px 28px !important;
	border: 1px solid var(--leg-nl-blue-border) !important;
	border-radius: var(--leg-nl-radius-btn) !important;
	background: var(--leg-nl-blue) !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: var(--leg-nl-font) !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	line-height: 28px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
	white-space: nowrap;
}

html body .leg-nl-block button.leg-nl-block__btn:hover,
html body .leg-nl-block .leg-nl-block__btn:hover {
	background: #0050c7 !important;
}

html body .leg-nl-block button.leg-nl-block__btn:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* Consent — same checked look as PA */
html body .leg-nl-block label.leg-nl-block__consent {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100%;
	font-family: var(--leg-nl-font) !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 30px !important;
	color: var(--leg-nl-body) !important;
	cursor: pointer;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

html body .leg-nl-block .leg-nl-block__consent input[type="checkbox"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	flex: 0 0 28px;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--leg-nl-warm) !important;
	border-radius: 4px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	cursor: pointer;
	opacity: 1 !important;
}

html body .leg-nl-block .leg-nl-block__consent input[type="checkbox"]:checked {
	background: var(--leg-nl-blue) !important;
	border-color: var(--leg-nl-blue) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2L4.7 9 10 3' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}

html body .leg-nl-block .leg-nl-block__consent-text,
html body .leg-nl-block label.leg-nl-block__consent span.leg-nl-block__consent-text {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--leg-nl-body) !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 30px !important;
}

html body .leg-nl-block .leg-nl-block__consent-text a,
html body .leg-nl-block label.leg-nl-block__consent span.leg-nl-block__consent-text a {
	color: var(--leg-nl-blue) !important;
	text-decoration: underline !important;
	font-weight: 400 !important;
	border: 0 !important;
	background: none !important;
}

html body .leg-nl-block__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

html body .leg-nl-block__msg {
	margin: 0;
	min-height: 0;
	font-size: 14px;
	line-height: 21px;
	color: var(--leg-nl-body);
}

html body .leg-nl-block__msg.is-err {
	color: #ff6380;
}

html body .leg-nl-block__msg.is-ok {
	color: var(--leg-nl-blue);
}

/* Success — Figma 981:4547 */
html body .leg-nl-block__panel--success {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 64px;
	min-height: 90px;
	z-index: 1;
}

html body .leg-nl-block__panel--success .leg-nl-block__copy,
html body .leg-nl-block__panel--success .leg-nl-block__hint {
	position: relative;
	z-index: 1;
}

html body .leg-nl-block__hint {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--leg-nl-body) !important;
	font-family: var(--leg-nl-font) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 21px !important;
	white-space: nowrap;
	text-align: right;
}

/* Success deco — Figma 981:4547 (desktop 1680×154) / 986:4656 (mobile 345×307).
   Icons sit on the full card plane (including padding), so deco expands out of the panel. */
html body .leg-nl-block__panel--success .leg-nl-block__deco {
	position: absolute;
	top: -32px;
	right: -40px;
	bottom: -32px;
	left: -40px;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

html body .leg-nl-block__deco-icon {
	position: absolute;
	display: block;
	line-height: 0;
	transform-origin: center center;
}

html body .leg-nl-block__deco-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

html body .leg-nl-block__deco-icon--sms {
	opacity: 0.1;
}

/* Desktop icons — hide mobile set by default */
html body .leg-nl-block__deco-icon--m1,
html body .leg-nl-block__deco-icon--m2,
html body .leg-nl-block__deco-icon--m3,
html body .leg-nl-block__deco-icon--m4,
html body .leg-nl-block__deco-icon--m5,
html body .leg-nl-block__deco-icon--m6 {
	display: none;
}

/* sms */
html body .leg-nl-block__deco-icon--d1 {
	left: 47.62%;
	top: 23.38%;
	width: 72px;
	height: 72px;
	opacity: 0.1;
	transform: rotate(-12deg);
}

html body .leg-nl-block__deco-icon--d2 {
	left: 59.52%;
	top: 12.99%;
	width: 40px;
	height: 40px;
	opacity: 0.12;
	transform: rotate(10deg);
}

html body .leg-nl-block__deco-icon--d3 {
	left: 68.45%;
	top: 48.05%;
	width: 56px;
	height: 56px;
	opacity: 0.1;
	transform: rotate(-8deg);
}

html body .leg-nl-block__deco-icon--d4 {
	left: 81.55%;
	top: 67.53%;
	width: 40px;
	height: 40px;
	opacity: 0.1;
	transform: rotate(14deg);
}

html body .leg-nl-block__deco-icon--d5 {
	left: 92.86%;
	top: -3.9%;
	width: 48px;
	height: 48px;
	opacity: 0.08;
	transform: rotate(-10deg);
}

html body .leg-nl-block__deco-icon--d6 {
	left: 36.9%;
	top: -6.49%;
	width: 44px;
	height: 44px;
	opacity: 0.07;
	transform: rotate(12deg);
}

/* pair & pace — square 45×45; some Figma instances are mirrored (scaleX -1) */
html body .leg-nl-block__deco-icon--pace {
	opacity: 0.16;
}

html body .leg-nl-block__deco-icon--d7 {
	left: 54.85%;
	top: 59.42%;
	width: 45px;
	height: 45px;
	opacity: 0.16;
}

html body .leg-nl-block__deco-icon--d8 {
	left: 64.67%;
	top: 50.97%;
	width: 29px;
	height: 29px;
	opacity: 0.2;
	transform: scaleX(-1);
}

html body .leg-nl-block__deco-icon--d9 {
	left: 75.42%;
	top: -16.23%;
	width: 70px;
	height: 70px;
	opacity: 0.24;
}

html body .leg-nl-block__deco-icon--d10 {
	left: 78.81%;
	top: 35.06%;
	width: 28px;
	height: 28px;
	opacity: 0.16;
	transform: scaleX(-1);
}

html body .leg-nl-block__deco-icon--d11 {
	left: 86.01%;
	top: 1.95%;
	width: 38px;
	height: 38px;
	opacity: 0.2;
}

html body .leg-nl-block__deco-icon--d12 {
	left: 96.85%;
	top: 66.88%;
	width: 48px;
	height: 48px;
	opacity: 0.24;
	transform: scaleX(-1);
}

html body .leg-nl-block__deco-icon--d13 {
	left: 41.31%;
	top: 72.73%;
	width: 32px;
	height: 32px;
	opacity: 0.16;
}

@media only screen and (max-width: 1439px) {
	html body .leg-nl-block {
		padding: 72px 0;
	}

	html body .leg-nl-block__panel--form {
		gap: 40px;
	}
}

@media only screen and (max-width: 1099px) {
	html body .leg-nl-block {
		padding: 56px 0;
	}

	html body .leg-nl-block__card {
		padding: 28px 24px;
	}

	html body .leg-nl-block__panel--success .leg-nl-block__deco {
		top: -28px;
		right: -24px;
		bottom: -28px;
		left: -24px;
	}

	html body .leg-nl-block__panel--form {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}

	html body .leg-nl-block__copy,
	html body .leg-nl-block__form {
		flex: none;
		width: 100%;
		max-width: none;
	}

	html body .leg-nl-block__panel--success {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	html body .leg-nl-block__hint {
		white-space: normal;
		text-align: left;
	}
}

/* Mobile — Figma 986:4606 / success 986:4656 */
@media only screen and (max-width: 767px) {
	html body .leg-nl-block {
		padding: 40px 0;
	}

	html body .leg-nl-block__card {
		padding: 24px 20px;
		border-radius: 16px;
	}

	html body .leg-nl-block__panel--form {
		gap: 24px;
	}

	html body .leg-nl-block__title {
		font-size: 28px !important;
		line-height: 34px !important;
	}

	html body .leg-nl-block__form {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	html body .leg-nl-block__fields {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		order: 1;
	}

	html body .leg-nl-block input.leg-nl-block__input,
	html body .leg-nl-block .leg-nl-block__input {
		width: 100% !important;
		flex: none;
	}

	html body .leg-nl-block__consent {
		order: 2;
		align-items: flex-start !important;
	}

	html body .leg-nl-block button.leg-nl-block__btn,
	html body .leg-nl-block .leg-nl-block__btn {
		order: 3;
		width: 100% !important;
		grid-column: auto;
		grid-row: auto;
		margin-top: 4px;
	}

	html body .leg-nl-block__msg {
		order: 4;
	}

	html body .leg-nl-block__hp {
		order: 5;
	}

	/* Mobile success — Figma 986:4656: icons cluster under hint */
	html body .leg-nl-block__panel--success {
		padding-bottom: 96px;
		gap: 12px;
	}

	html body .leg-nl-block__panel--success .leg-nl-block__deco {
		top: -24px;
		right: -20px;
		bottom: -24px;
		left: -20px;
	}

	html body .leg-nl-block__deco-icon--d1,
	html body .leg-nl-block__deco-icon--d2,
	html body .leg-nl-block__deco-icon--d3,
	html body .leg-nl-block__deco-icon--d4,
	html body .leg-nl-block__deco-icon--d5,
	html body .leg-nl-block__deco-icon--d6,
	html body .leg-nl-block__deco-icon--d7,
	html body .leg-nl-block__deco-icon--d8,
	html body .leg-nl-block__deco-icon--d9,
	html body .leg-nl-block__deco-icon--d10,
	html body .leg-nl-block__deco-icon--d11,
	html body .leg-nl-block__deco-icon--d12,
	html body .leg-nl-block__deco-icon--d13 {
		display: none;
	}

	html body .leg-nl-block__deco-icon--m1,
	html body .leg-nl-block__deco-icon--m2,
	html body .leg-nl-block__deco-icon--m3,
	html body .leg-nl-block__deco-icon--m4,
	html body .leg-nl-block__deco-icon--m5,
	html body .leg-nl-block__deco-icon--m6 {
		display: block;
	}

	html body .leg-nl-block__deco-icon--m1 {
		left: 4.06%;
		top: 72.64%;
		width: 58px;
		height: 58px;
		opacity: 0.1;
		transform: rotate(-12deg);
	}

	html body .leg-nl-block__deco-icon--m2 {
		left: 42.32%;
		top: 77.2%;
		width: 32px;
		height: 32px;
		opacity: 0.12;
		transform: rotate(10deg);
	}

	html body .leg-nl-block__deco-icon--m3 {
		left: 72.46%;
		top: 83.06%;
		width: 45px;
		height: 45px;
		opacity: 0.1;
		transform: rotate(-8deg);
	}

	html body .leg-nl-block__deco-icon--m4 {
		left: 25.51%;
		top: 83.71%;
		width: 36px;
		height: 36px;
		opacity: 0.16;
	}

	html body .leg-nl-block__deco-icon--m5 {
		left: 59.71%;
		top: 70.68%;
		width: 23px;
		height: 23px;
		opacity: 0.2;
		transform: scaleX(-1);
	}

	html body .leg-nl-block__deco-icon--m6 {
		left: 86.96%;
		top: 76.55%;
		width: 56px;
		height: 56px;
		opacity: 0.24;
	}

	html body .leg-nl-block__consent-text,
	html body .leg-nl-block label.leg-nl-block__consent span.leg-nl-block__consent-text {
		font-size: 16px !important;
		line-height: 24px !important;
	}
}
