#leadgen-fab-wrap {
	position: fixed;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.leadgen-fab {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	height: 48px;
	max-width: 48px;
	padding: 4px;
	background: var(--leadgen-color, #25D366);
	color: #fff;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	text-decoration: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	overflow: hidden;
	white-space: nowrap;
	box-sizing: border-box;
	transition: max-width 0.3s ease, box-shadow 0.2s ease;
}

.leadgen-fab-icon-circle {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	line-height: 0;
}

.leadgen-fab-icon-circle svg {
	display: block;
}

.leadgen-fab-text {
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	margin-right: 0;
	transition: max-width 0.3s ease, opacity 0.2s ease, margin-right 0.3s ease;
}

.leadgen-fab:hover {
	max-width: 220px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.3);
	color: #fff;
}

.leadgen-fab:hover .leadgen-fab-text {
	max-width: 160px;
	opacity: 1;
	margin-right: 10px;
}

.leadgen-fab-call {
	background: #2563eb;
}

.leadgen-fab-whatsapp {
	background: #25D366;
}

/* ---- Enquiry Now button: icon-only by default, pulse glow, text reveals on hover ---- */
.leadgen-fab-form {
	background: linear-gradient(135deg, var(--leadgen-color, #16c98d), #0ea36f);
	box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.leadgen-fab-form .leadgen-fab-icon-circle {
	background: rgba(255,255,255,0.22);
	border-radius: 50%;
}

.leadgen-fab-pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.55);
	animation: leadgen-pulse-ring 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
	z-index: 1;
}

@keyframes leadgen-pulse-ring {
	0% {
		transform: scale(1);
		opacity: 0.65;
	}
	80% {
		transform: scale(1.9);
		opacity: 0;
	}
	100% {
		transform: scale(1.9);
		opacity: 0;
	}
}

/* Modal */
#leadgen-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

#leadgen-modal-overlay.leadgen-hidden {
	display: none;
}

#leadgen-modal {
	position: relative;
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 420px;
	padding: 32px 24px 24px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.35);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	animation: leadgen-pop 0.2s ease;
}

@keyframes leadgen-pop {
	from { transform: scale(0.94); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

#leadgen-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

#leadgen-modal-title {
	margin: 0 0 6px;
	font-size: 20px;
	color: #111;
}

#leadgen-modal-subtitle {
	margin: 0 0 18px;
	font-size: 14px;
	color: #666;
}

.leadgen-field {
	margin-bottom: 14px;
}

.leadgen-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
	color: #333;
}

.leadgen-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.leadgen-field input:focus {
	outline: none;
	border-color: var(--leadgen-color, #25D366);
}

#leadgen-submit-btn {
	width: 100%;
	padding: 12px;
	background: var(--leadgen-color, #25D366);
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 6px;
}

#leadgen-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

#leadgen-form-error {
	color: #d32f2f;
	font-size: 13px;
	margin: -6px 0 10px;
}

#leadgen-form-error.leadgen-hidden {
	display: none;
}

#leadgen-success-icon {
	text-align: center;
	padding: 10px 0 4px;
}

@media (max-width: 480px) {
	#leadgen-fab-wrap {
		right: 10px;
		gap: 10px;
	}
	.leadgen-fab {
		height: 44px;
		max-width: 44px;
	}
	.leadgen-fab-icon-circle {
		width: 36px;
		height: 36px;
	}
	.leadgen-fab:hover {
		max-width: 200px;
	}
}
