/* ==========================================================================
   Lead-magnet card (shared by inline placement and exit-intent modal)
   ========================================================================== */
.somm-lm-card {
	background: var(--somm-color-white);
	border: 1px solid var(--somm-color-border);
	border-left: 4px solid var(--somm-color-amber);
	border-radius: var(--somm-radius);
	padding: 28px;
	box-shadow: var(--somm-shadow);
	margin: 32px 0;
}

.somm-lm-eyebrow {
	display: inline-block;
	color: var(--somm-color-amber);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 0.75rem;
	margin-bottom: 10px;
}

.somm-lm-title {
	margin: 0 0 10px;
	font-size: 1.2rem;
}

.somm-lm-body {
	color: #47535e;
	margin-bottom: 18px;
}

.somm-lm-cta {
	margin-bottom: 12px;
}

.somm-lm-microcopy {
	margin: 12px 0 0;
	font-size: 0.8rem;
	color: #6b7785;
}

.somm-lm-form-wrap {
	margin-top: 16px;
}

.somm-lm-form-wrap .wpcf7-form p {
	margin-bottom: 10px;
}

.somm-lm-form-wrap input[type="text"],
.somm-lm-form-wrap input[type="email"] {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--somm-color-border);
	border-radius: 6px;
	font-size: 0.95rem;
}

.somm-lm-success p {
	font-weight: 700;
	color: var(--somm-color-primary);
	margin-bottom: 10px;
}

/* Inline placement: mobile only — desktop readers get the exit-intent modal instead */
.somm-lm-card--inline {
	display: none;
}

@media (max-width: 900px) {
	.somm-lm-card--inline {
		display: block;
	}
}

/* ==========================================================================
   Exit-intent modal (desktop only — built and shown by JS)
   ========================================================================== */
.somm-lm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 42, 74, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	padding: 24px;
}

.somm-lm-modal {
	position: relative;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--somm-color-white);
	border-radius: var(--somm-radius);
	box-shadow: var(--somm-shadow-hover);
}

.somm-lm-modal .somm-lm-card {
	margin: 0;
	border: none;
	box-shadow: none;
	border-radius: var(--somm-radius);
}

.somm-lm-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: var(--somm-color-soft-grey);
	color: var(--somm-color-primary);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	z-index: 1;
}
.somm-lm-modal-close:hover {
	background: var(--somm-color-border);
}

body.somm-lm-modal-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	/* Exit-intent is desktop-only per spec; never surfaced on narrow viewports even if JS mis-triggers */
	.somm-lm-modal-overlay {
		display: none !important;
	}
}

/* ==========================================================================
   Business Health Check quiz
   ========================================================================== */
.somm-hc-section {
	border: none;
	border-top: 1px solid var(--somm-color-border);
	padding: 28px 0;
	margin: 0;
}
.somm-hc-section:first-of-type {
	border-top: none;
	padding-top: 0;
}
.somm-hc-section legend {
	font-family: var(--somm-font-heading);
	font-weight: 700;
	color: var(--somm-color-primary);
	font-size: 1.1rem;
	padding: 0;
	margin-bottom: 12px;
}

.somm-hc-statement {
	padding: 14px 0;
	border-top: 1px solid var(--somm-color-soft-grey);
}
.somm-hc-statement:first-child {
	border-top: none;
}
.somm-hc-statement p {
	margin: 0 0 10px;
	font-weight: 600;
}

.somm-hc-options {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}
.somm-hc-options label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	cursor: pointer;
}

.somm-hc-results {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 2px solid var(--somm-color-border);
}

.somm-hc-section-result {
	padding: 16px 0;
	border-bottom: 1px solid var(--somm-color-soft-grey);
}
.somm-hc-section-result h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
}
.somm-hc-section-result p {
	margin: 0;
	color: #47535e;
}
