/* Bosla feature chunk: home hero (promo banner) — front page only, and only
   while the feature is enabled (zero bytes otherwise). Logical properties
   throughout so the banner mirrors correctly in RTL. */

.bosla-hero-promo {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	/* Full-bleed: flush under the header, edge to edge, square corners. */
	margin: 0;
	border-radius: 0;
	background-color: var(--bosla-hp-bg, #1e56e9);
	/* Optional photographic background + brand-tinted veil (set inline by
	   the feature; both default to none so the flat colour is untouched). */
	background-image: var(--bosla-hp-veil, none), var(--bosla-hp-image, none);
	background-size: cover;
	background-position: center;
	color: var(--bosla-hp-text, #fff);
}

/* Decorative shapes: the big soft panel (::before) and the rotated sheet. */
.bosla-hero-promo::before {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	inset-block-start: -24%;
	inset-inline-end: -8%;
	inline-size: min(62rem, 86%);
	aspect-ratio: 1.15;
	border-radius: 4.5rem;
	background: rgb(255 255 255 / 0.1);
}

.bosla-hero-promo-deco {
	position: absolute;
	z-index: -1;
	pointer-events: none;
	inset-block-start: -20%;
	inset-inline-end: 4%;
	inline-size: min(26rem, 42%);
	aspect-ratio: 0.82;
	border-radius: 2.5rem;
	transform: rotate(-11deg);
	background: rgb(255 255 255 / 0.13);
	clip-path: polygon(0 0, 74% 0, 100% 16%, 100% 100%, 0 100%);
}

.bosla-hero-promo-deco::after {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-end: 0;
	border-inline-start: 4.5rem solid transparent;
	border-block-end: 0;
	border-block-start: 4.5rem solid rgb(255 255 255 / 0.18);
}

.bosla-hero-promo-inner {
	position: relative;
	display: grid;
	align-content: center;
	justify-items: stretch;
	gap: clamp(1rem, 2.6vw, 1.9rem);
	/* Taller banner: a real hero band, content vertically centred. */
	min-block-size: clamp(20rem, 38vw, 34rem);
	max-inline-size: var(--bosla-container, 75rem);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.bosla-hero-promo-brand {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0;
	font-size: clamp(1.05rem, 2.4vw, 1.45rem);
	font-weight: 700;
	line-height: 1.3;
}

.bosla-hero-promo-logo {
	inline-size: auto;
	block-size: clamp(28px, 5vw, 38px);
}

.bosla-hero-promo-headline {
	margin: 0;
	text-align: center;
	color: inherit;
	font-size: clamp(1.55rem, 5.4vw, 3.1rem);
	font-weight: 800;
	line-height: 1.3;
	text-wrap: balance;
}

.bosla-hero-promo-accent {
	color: var(--bosla-hp-accent, #ffc21a);
}

.bosla-hero-promo-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bosla-hero-promo-chip {
	display: inline-block;
	padding: 0.45rem 1.15rem;
	border: 1.5px solid rgb(255 255 255 / 0.62);
	border-radius: 999px;
	color: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.bosla-hero-promo-chip:hover,
.bosla-hero-promo-chip:focus-visible {
	background: rgb(255 255 255 / 0.16);
	border-color: currentcolor;
}

.bosla-hero-promo-subtitle {
	margin: 0;
	text-align: center;
	font-size: clamp(0.95rem, 2vw, 1.15rem);
	opacity: 0.92;
}

.bosla-hero-promo-foot {
	margin: 0;
	font-size: 0.95rem;
	opacity: 0.9;
}

.bosla-hero-promo-foot a {
	color: inherit;
	text-underline-offset: 3px;
}

@media (max-width: 480px) {
	.bosla-hero-promo-chip {
		padding: 0.4rem 0.9rem;
		font-size: 0.875rem;
	}
}

/* Lead-capture button in the banner. */
.bosla-hero-promo-cta-row {
	margin: 0;
	text-align: center;
}

.bosla-hero-promo-cta {
	display: inline-block;
	padding: 0.75rem 2rem;
	border: 0;
	border-radius: 999px;
	background: var(--bosla-hp-accent, #ffc21a);
	color: #12161f;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bosla-hero-promo-cta:hover,
.bosla-hero-promo-cta:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgb(0 0 0 / 0.22);
	color: #12161f;
}

/* Submission status line, inside the banner. */
.bosla-hero-promo-status {
	margin: 0;
	text-align: center;
	padding: 0.6rem 1rem;
	border-radius: var(--bosla-radius-small, 8px);
	background: rgb(255 255 255 / 0.14);
	font-weight: 600;
}

.bosla-hero-promo-status--ok {
	background: rgb(255 255 255 / 0.2);
}

.bosla-hero-promo-status--invalid,
.bosla-hero-promo-status--nonce,
.bosla-hero-promo-status--error,
.bosla-hero-promo-status--limit {
	background: rgb(0 0 0 / 0.28);
}

/* Popup: a pure :target modal — the button links to #bosla-lead-form,
   closing links back to #. No JavaScript involved. */
.bosla-lead-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.bosla-lead-modal:target {
	display: flex;
}

.bosla-lead-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgb(8 12 22 / 0.62);
}

.bosla-lead-modal-panel {
	position: relative;
	z-index: 1;
	inline-size: min(30rem, 100%);
	max-block-size: calc(100vh - 2rem);
	overflow: auto;
	padding: clamp(1.25rem, 4vw, 2rem);
	border-radius: var(--bosla-radius-large, 22px);
	background: var(--bosla-color-background, #fff);
	color: var(--bosla-color-text, #12161f);
	box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}

.bosla-lead-modal-close {
	position: absolute;
	inset-block-start: 0.6rem;
	inset-inline-end: 0.9rem;
	font-size: 1.6rem;
	line-height: 1;
	text-decoration: none;
	color: var(--bosla-color-text-muted, #667085);
}

.bosla-lead-modal-title {
	margin-block: 0 0.35rem;
	font-size: 1.35rem;
}

.bosla-lead-modal-text {
	margin-block: 0 1rem;
	color: var(--bosla-color-text-muted, #667085);
}

.bosla-lead-field {
	margin-block: 0 0.85rem;
}

.bosla-lead-field label {
	display: block;
	margin-block-end: 0.25rem;
	font-weight: 600;
	font-size: 0.95rem;
}

.bosla-lead-required {
	color: var(--bosla-color-primary, #1a3be0);
}

.bosla-lead-field input {
	inline-size: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--bosla-color-border, #d5d9e2);
	border-radius: var(--bosla-radius-small, 8px);
	background: var(--bosla-color-background, #fff);
	color: inherit;
	font-size: 1rem;
}

.bosla-lead-field input:focus-visible {
	outline: 2px solid var(--bosla-color-primary, #1a3be0);
	outline-offset: 1px;
}

/* Honeypot: hidden from people, tempting to bots. */
.bosla-lead-hp {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.bosla-lead-note {
	margin-block: 0 1rem;
	font-size: 0.85rem;
	color: var(--bosla-color-text-muted, #667085);
}

.bosla-lead-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.25rem 0 0;
}

.bosla-lead-cancel {
	color: var(--bosla-color-text-muted, #667085);
}
