.lcs-box {
	--lcs-accent: #25D366;
	position: relative;
	max-width: 440px;
	margin: 0 auto;
	padding: 34px 30px 28px;
	background: linear-gradient(180deg, #ffffff 0%, #fbfffc 100%);
	border-radius: 18px;
	box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.05);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-align: center;
	box-sizing: border-box;
	animation: lcs-rise 0.5s ease both;
}

@keyframes lcs-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lcs-box * {
	box-sizing: border-box;
}

.lcs-icon-badge {
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lcs-accent);
	color: #fff;
	box-shadow: 0 8px 20px -6px var(--lcs-accent);
}

.lcs-headline {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	color: #14171a;
	letter-spacing: -0.2px;
}

.lcs-subtext {
	margin: 0 0 22px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #6b7280;
}

.lcs-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lcs-input-row {
	display: flex;
	align-items: center;
	border: 2px solid #e7e9ec;
	border-radius: 12px;
	overflow: hidden;
	background: #fafbfc;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lcs-input-row:focus-within {
	border-color: var(--lcs-accent);
	background: #fff;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--lcs-accent) 15%, transparent);
}

.lcs-input-icon {
	display: flex;
	align-items: center;
	padding-left: 14px;
	color: #9aa1ab;
}

.lcs-country-code {
	padding: 15px 8px 15px 8px;
	font-weight: 700;
	color: #444;
	white-space: nowrap;
	border-right: 1px solid #e7e9ec;
	margin-right: 6px;
}

.lcs-mobile-input {
	flex: 1;
	border: 0;
	outline: none;
	padding: 15px 16px 15px 6px;
	font-size: 16px;
	width: 100%;
	background: transparent;
	color: #14171a;
}

.lcs-mobile-input::placeholder {
	color: #a3a9b2;
}

.lcs-submit-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 12px;
	padding: 15px 18px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--lcs-accent);
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
	box-shadow: 0 10px 24px -8px var(--lcs-accent);
}

.lcs-submit-btn:hover {
	filter: brightness(0.94);
}

.lcs-submit-btn:active {
	transform: scale(0.98);
}

.lcs-submit-btn:disabled {
	cursor: not-allowed;
	opacity: 0.85;
}

.lcs-btn-icon {
	transition: transform 0.15s ease;
}

.lcs-submit-btn:hover .lcs-btn-icon {
	transform: translateX(2px);
}

.lcs-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: lcs-spin 0.7s linear infinite;
}

@keyframes lcs-spin {
	to {
		transform: rotate(360deg);
	}
}

.lcs-trust {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: #8a9099;
}

.lcs-error {
	margin: 0;
	font-size: 13px;
	color: #d9364f;
	text-align: left;
}

@media (max-width: 480px) {
	.lcs-box {
		padding: 26px 20px 22px;
		border-radius: 14px;
	}
	.lcs-headline {
		font-size: 19px;
	}
}

/* Fallback for browsers without color-mix() support */
@supports not (box-shadow: 0 0 0 4px color-mix(in srgb, red 15%, transparent)) {
	.lcs-input-row:focus-within {
		box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
	}
}

/* ── Floating WhatsApp button ─────────────────────────────────────── */

.lcs-fab {
	--lcs-accent: #25D366;
	position: fixed;
	bottom: 26px;
	z-index: 99998;
	display: flex;
	align-items: center;
	gap: 11px;
	border: 0;
	border-radius: 999px;
	padding: 15px 24px 15px 15px;
	background: linear-gradient(135deg, var(--lcs-accent), color-mix(in srgb, var(--lcs-accent) 65%, #0c6b3a));
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.1px;
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, filter 0.2s ease;
	animation: lcs-fab-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both, lcs-fab-pulse 2.8s ease-in-out 1.2s infinite;
}

.lcs-fab--right {
	right: 26px;
}

.lcs-fab--left {
	left: 26px;
}

.lcs-fab--center {
	left: 50%;
	transform: translateX(-50%);
}

.lcs-fab--center:hover {
	transform: translateX(-50%) translateY(-3px) scale(1.03);
}

.lcs-fab--right:hover,
.lcs-fab--left:hover {
	transform: translateY(-3px) scale(1.03);
}

.lcs-fab:hover {
	filter: brightness(1.06);
	box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.lcs-fab:active {
	transform: scale(0.96);
}

.lcs-fab--center:active {
	transform: translateX(-50%) scale(0.96);
}

.lcs-fab-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	flex-shrink: 0;
	animation: lcs-icon-sway 2.8s ease-in-out 1.2s infinite;
}

.lcs-fab-text {
	white-space: nowrap;
}

.lcs-fab-ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	transform: scale(0);
	pointer-events: none;
	animation: lcs-ripple 0.6s ease-out forwards;
}

@keyframes lcs-ripple {
	to {
		transform: scale(2.6);
		opacity: 0;
	}
}

@keyframes lcs-icon-sway {
	0%, 100% {
		transform: rotate(0deg);
	}
	10% {
		transform: rotate(-12deg);
	}
	20% {
		transform: rotate(10deg);
	}
	30% {
		transform: rotate(-6deg);
	}
	40%, 100% {
		transform: rotate(0deg);
	}
}

@keyframes lcs-fab-in {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.8);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.lcs-fab--center {
	animation-name: lcs-fab-in-center, lcs-fab-pulse;
}

@keyframes lcs-fab-in-center {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(30px) scale(0.8);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@keyframes lcs-fab-pulse {
	0%, 100% {
		box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 0 color-mix(in srgb, var(--lcs-accent) 55%, transparent);
	}
	50% {
		box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.4), 0 3px 10px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 12px color-mix(in srgb, var(--lcs-accent) 0%, transparent);
	}
}

@media (max-width: 480px) {
	.lcs-fab {
		bottom: 16px;
		padding: 13px 18px 13px 13px;
		font-size: 14px;
	}
	.lcs-fab--right {
		right: 16px;
	}
	.lcs-fab--left {
		left: 16px;
	}
	.lcs-fab-text {
		max-width: 46vw;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* ── Popup modal for the floating button ──────────────────────────── */

.lcs-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10, 14, 18, 0.6);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: lcs-overlay-in 0.25s ease both;
}

.lcs-modal-overlay[hidden] {
	display: none;
}

.lcs-modal-overlay.lcs-modal-closing {
	animation: lcs-overlay-out 0.2s ease both;
}

@keyframes lcs-overlay-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes lcs-overlay-out {
	from { opacity: 1; }
	to { opacity: 0; }
}

.lcs-modal {
	position: relative;
	width: 100%;
	max-width: 440px;
	animation: lcs-modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lcs-modal-overlay.lcs-modal-closing .lcs-modal {
	animation: lcs-modal-out 0.18s ease both;
}

@keyframes lcs-modal-in {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.94);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes lcs-modal-out {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	to {
		opacity: 0;
		transform: translateY(14px) scale(0.96);
	}
}

.lcs-modal-close {
	position: absolute;
	top: -16px;
	right: -16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: #14171a;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
	z-index: 2;
	transition: transform 0.2s ease, background 0.15s ease, color 0.15s ease;
}

.lcs-modal-close:hover {
	background: #14171a;
	color: #fff;
	transform: rotate(90deg);
}

.lcs-box--modal {
	position: relative;
	margin: 0;
	max-width: none;
	padding-top: 40px;
	border-radius: 20px;
	box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	animation: none;
}

.lcs-box--modal::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--lcs-accent), color-mix(in srgb, var(--lcs-accent) 55%, #0c6b3a));
}

.lcs-box--modal .lcs-icon-badge {
	width: 60px;
	height: 60px;
	box-shadow: 0 10px 26px -6px var(--lcs-accent), 0 0 0 6px color-mix(in srgb, var(--lcs-accent) 12%, transparent);
}

.lcs-box--modal .lcs-headline {
	font-size: 23px;
}

.lcs-box--modal .lcs-submit-btn {
	background: linear-gradient(135deg, var(--lcs-accent), color-mix(in srgb, var(--lcs-accent) 70%, #0c6b3a));
}

body.lcs-modal-open {
	overflow: hidden;
}
