/**
 * Bolt Lead Sections – frontend styles
 * Uses WP Global Style tokens when present; hex fallbacks for other themes.
 */

.bolt-lead-sections {
	--bls-primary: var(--wp--preset--color--primary, #00351D);
	--bls-primary-faded: var(--wp--preset--color--primary-faded, #F6F7F1);
	--bls-secondary: var(--wp--preset--color--secondary, #B4BE2E);
	--bls-base: var(--wp--preset--color--base, #FFFFFF);
	--bls-contrast: var(--wp--preset--color--contrast, #253029);
	--bls-contrast-faded: var(--wp--preset--color--contrast-faded, #68736C);
	--bls-font: var(--wp--preset--font-family--inter, system-ui, -apple-system, sans-serif);
	--bls-font-display: var(--wp--preset--font-family--plus-jakarta-sans, var(--bls-font));
	--bls-wide: var(--wp--style--global--wide-size, 1200px);
}

/* -------------------------------------------------------------------------
 * Hero Lead Form
 * ------------------------------------------------------------------------- */

.bolt-lead-sections .hero-lead-form {
	--hero-overlay-opacity: 0.48;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 720px;
	padding: 48px 16px;
	color: var(--bls-base);
	font-family: var(--bls-font);
	overflow: hidden;
}

.bolt-lead-sections .hero-lead-form__background {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.bolt-lead-sections .hero-lead-form__background img,
.bolt-lead-sections .hero-lead-form__background-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bolt-lead-sections .hero-lead-form__background-placeholder {
	background: var(--bls-primary);
}

.bolt-lead-sections .hero-lead-form__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--bls-primary);
	opacity: var(--hero-overlay-opacity);
}

.bolt-lead-sections .hero-lead-form__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--bls-wide);
	margin: 0 auto;
	display: flex;
	align-items: stretch;
	gap: 24px;
}

.bolt-lead-sections .hero-lead-form__content {
	flex: 1 1 58%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	min-width: 0;
}

.bolt-lead-sections .hero-lead-form__badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 8px 16px;
	border-radius: 100px;
	background: var(--bls-secondary);
	color: var(--bls-base);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.bolt-lead-sections .hero-lead-form__title {
	margin: 0;
	max-width: 700px;
	font-family: var(--bls-font-display);
	font-size: 52px;
	font-weight: 600;
	line-height: 1.08;
	color: var(--bls-base);
}

.bolt-lead-sections .hero-lead-form__text {
	font-size: 16px;
	line-height: 1.65;
	color: color-mix(in srgb, var(--bls-base) 88%, transparent);
	max-width: 620px;
}

.bolt-lead-sections .hero-lead-form__text p {
	margin: 0 0 8px;
}

.bolt-lead-sections .hero-lead-form__text p:last-child {
	margin-bottom: 0;
}

.bolt-lead-sections .hero-lead-form__bullet {
	margin: 0;
	padding-left: 16px;
	border-left: 3px solid var(--bls-secondary);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: color-mix(in srgb, var(--bls-base) 95%, transparent);
}

.bolt-lead-sections .hero-lead-form__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 8px;
}

.bolt-lead-sections .hero-lead-form__stat {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.bolt-lead-sections .hero-lead-form__stat-icon {
	display: none;
}

.bolt-lead-sections .hero-lead-form__stat-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.bolt-lead-sections .hero-lead-form__stat-value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--bls-base);
}

.bolt-lead-sections .hero-lead-form__stat-label {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--bls-base) 92%, transparent);
}

.bolt-lead-sections .hero-lead-form__stat-description {
	font-size: 12px;
	line-height: 1.45;
	color: color-mix(in srgb, var(--bls-base) 68%, transparent);
}

.bolt-lead-sections .hero-lead-form__form-card {
	flex: 0 0 500px;
	width: 500px;
	max-width: 100%;
	margin-left: auto;
	padding: 32px;
	border-radius: 16px;
	background: var(--bls-base);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
	color: var(--bls-contrast);
}

.bolt-lead-sections .hero-lead-form__form-title {
	margin: 0 0 8px;
	font-family: var(--bls-font-display);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--bls-primary);
}

.bolt-lead-sections .hero-lead-form__form-subtitle {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bls-contrast-faded);
}

.bolt-lead-sections .hero-lead-form__form {
	margin-bottom: 8px;
}

.bolt-lead-sections .hero-lead-form__form .fluentform {
	margin: 0;
}

.bolt-lead-sections .hero-lead-form__form .fluentform .ff-el-group {
	margin-bottom: 8px !important;
}

.bolt-lead-sections .hero-lead-form__form .fluentform .frm-fluent-form .ff-t-container {
	gap: 8px;
}

.bolt-lead-sections .hero-lead-form__form .fluentform textarea.ff-el-form-control {
	min-height: 75px;
	resize: vertical;
}

.bolt-lead-sections .hero-lead-form__form .fluentform input.ff-el-form-control {
	height: 46px;
}

.bolt-lead-sections .hero-lead-form__form .fluentform select.ff-el-form-control {
	height: 45px !important;
}

.bolt-lead-sections .hero-lead-form__submit-note {
	margin: 16px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--bls-contrast-faded);
	text-align: center;
}

@media (max-width: 1000px) {
	.bolt-lead-sections .hero-lead-form {
		min-height: auto;
		padding: 32px 16px;
	}

	.bolt-lead-sections .hero-lead-form__inner {
		flex-direction: column;
	}

	.bolt-lead-sections .hero-lead-form__content {
		flex-basis: auto;
	}

	.bolt-lead-sections .hero-lead-form__form-card {
		width: 100%;
		max-width: none;
		margin-left: 0;
		padding: 24px;
	}

	.bolt-lead-sections .hero-lead-form__title {
		font-size: 36px;
	}
}

@media (max-width: 600px) {
	.bolt-lead-sections .hero-lead-form__stats {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.bolt-lead-sections .hero-lead-form__stat {
		width: 100%;
	}

	.bolt-lead-sections .hero-lead-form__form-card {
		padding: 16px;
		border-radius: 12px;
	}

	.bolt-lead-sections .hero-lead-form__title {
		font-size: 32px;
	}
}

/* -------------------------------------------------------------------------
 * USP Icon Bar
 * ------------------------------------------------------------------------- */

.bolt-lead-sections .usp-icon-bar {
	box-sizing: border-box;
	width: 100%;
	padding: 48px 16px;
	background: var(--bls-primary-faded);
	font-family: var(--bls-font);
}

.bolt-lead-sections .usp-icon-bar.alignfull {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
}

.bolt-lead-sections .usp-icon-bar__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	width: 100%;
	max-width: var(--bls-wide);
	margin: 0 auto;
}

.bolt-lead-sections .usp-icon-bar__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 8px 24px;
}

.bolt-lead-sections .usp-icon-bar__item:not(:last-child) {
	border-right: 1px solid color-mix(in srgb, var(--bls-primary) 12%, transparent);
}

.bolt-lead-sections .usp-icon-bar__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: var(--bls-primary);
	overflow: hidden;
}

.bolt-lead-sections .usp-icon-bar__icon--has-image {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: var(--bls-base);
}

.bolt-lead-sections .usp-icon-bar__icon svg {
	width: 32px;
	height: 32px;
	display: block;
}

.bolt-lead-sections .usp-icon-bar__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.bolt-lead-sections .usp-icon-bar__content {
	min-width: 0;
	padding-top: 2px;
}

.bolt-lead-sections .usp-icon-bar__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bls-primary);
}

.bolt-lead-sections .usp-icon-bar__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--bls-contrast-faded);
}

@media (max-width: 1000px) {
	.bolt-lead-sections .usp-icon-bar {
		padding: 32px 16px;
	}

	.bolt-lead-sections .usp-icon-bar__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
	}

	.bolt-lead-sections .usp-icon-bar__item {
		border-right: none !important;
		padding: 0;
	}
}

@media (max-width: 600px) {
	.bolt-lead-sections .usp-icon-bar {
		padding: 24px 16px;
	}

	.bolt-lead-sections .usp-icon-bar__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
