/* Seemleius — Intent widget (floating WhatsApp button + capture modal) */

/* Floating WhatsApp button */
.sm-intent-fab {
	position: fixed;
	right: clamp(0.85rem, 2.5vw, 1.5rem);
	bottom: clamp(0.85rem, 2.5vw, 1.5rem);
	z-index: 9000;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.7rem 1.05rem 0.7rem 0.85rem;
	background: #25d366;
	color: #fff;
	border: none;
	border-radius: 999px;
	font-family: var(--sm-font-display, system-ui);
	font-weight: 700;
	font-size: 0.9375rem;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease;
}
.sm-intent-fab:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
.sm-intent-fab svg {
	flex-shrink: 0;
}
.sm-intent-fab__label {
	display: inline;
}
@media (max-width: 480px) {
	.sm-intent-fab {
		padding: 0.75rem;
	}
	.sm-intent-fab__label {
		display: none;
	}
}

/* Modal */
.sm-intent-modal[hidden] { display: none; }
.sm-intent-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.sm-intent-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 12, 35, 0.55);
	backdrop-filter: blur(3px);
}
.sm-intent-modal__panel {
	position: relative;
	background: #fff;
	border-radius: 14px;
	padding: clamp(1.5rem, 4vw, 2rem);
	max-width: 26rem;
	width: 100%;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.sm-intent-modal__close {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	width: 2.25rem;
	height: 2.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 50%;
	color: var(--sm-navy, #1A3A6B);
	cursor: pointer;
}
.sm-intent-modal__close:hover {
	background: var(--sm-navy-tint, #E9EFF7);
}
.sm-intent-modal__title {
	margin: 0 0 0.3rem;
	color: var(--sm-navy, #1A3A6B);
	font-size: 1.25rem;
	line-height: 1.25;
}
.sm-intent-modal__intro {
	margin: 0 0 1.25rem;
	color: var(--sm-muted, #5F6479);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.sm-intent-form {
	display: grid;
	gap: 0.85rem;
}
.sm-intent-field {
	display: grid;
	gap: 0.3rem;
}
.sm-intent-field label {
	font-family: var(--sm-font-display, system-ui);
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--sm-navy, #1A3A6B);
}
.sm-intent-field input {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--sm-border, #D8DBE6);
	border-radius: 8px;
	font-size: 1rem;
	background: #fff;
	color: var(--sm-text, #1A1A1A);
	font-family: inherit;
}
.sm-intent-field input:focus {
	outline: none;
	border-color: var(--sm-green, #7BC144);
	box-shadow: 0 0 0 3px rgba(123, 193, 68, 0.25);
}
.sm-intent-consent {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.875rem;
	color: var(--sm-muted, #5F6479);
	line-height: 1.45;
}
.sm-intent-consent input[type=checkbox] {
	margin-top: 0.2rem;
}
.sm-intent-consent a {
	color: var(--sm-green-dark, #6BAB39);
	text-decoration: underline;
}
.sm-intent-error {
	margin: 0;
	color: #B30000;
	font-size: 0.875rem;
}
.sm-intent-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	background: #25d366;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 0.85rem 1.25rem;
	font-family: var(--sm-font-display, system-ui);
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 180ms ease, box-shadow 180ms ease;
	box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
}
.sm-intent-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(37, 211, 102, 0.5);
}
.sm-intent-submit.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* When modal is open, prevent body scroll */
body.sm-intent-open {
	overflow: hidden;
}
