/* Sher WhatsApp Lead — floating button + modal (RTL, mobile-first) */

.sher-wa-fab {
	position: fixed;
	bottom: 24px;
	z-index: 99998;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	border: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.sher-wa-fab:hover,
.sher-wa-fab:focus-visible {
	background: #1ebe58;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
	transform: translateY(-2px);
	outline: none;
}
.sher-wa-fab:focus-visible {
	outline: 3px solid rgba(37, 211, 102, 0.4);
	outline-offset: 2px;
}
.sher-wa-fab--left  { left: 24px;  right: auto; }
.sher-wa-fab--right { right: 24px; left: auto;  }

.sher-wa-fab svg {
	width: 32px;
	height: 32px;
	display: block;
}

/* ---------- Backdrop + modal ------------------------------------------ */

.sher-wa-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	animation: sher-wa-fade 0.18s ease-out;
}
.sher-wa-backdrop.is-open {
	display: flex;
}

@keyframes sher-wa-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.sher-wa-modal {
	background: #fff;
	border-radius: 14px;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	direction: rtl;
	text-align: right;
	font-family: 'Heebo', 'Assistant', 'Segoe UI', 'Arial', sans-serif;
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
	animation: sher-wa-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes sher-wa-pop {
	from { opacity: 0; transform: scale(0.92); }
	to   { opacity: 1; transform: scale(1); }
}

.sher-wa-modal__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px 14px;
	border-bottom: 1px solid #eef0f3;
}
.sher-wa-modal__icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #25D366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.sher-wa-modal__icon svg { width: 22px; height: 22px; display: block; }

.sher-wa-modal__title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0;
	flex: 1;
}

.sher-wa-modal__close {
	background: transparent;
	border: none;
	color: #6b7280;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 6px;
}
.sher-wa-modal__close:hover { color: #111827; background: #f3f4f6; }

.sher-wa-modal__body { padding: 16px 20px 20px; }

.sher-wa-form__field { margin-bottom: 14px; }
.sher-wa-form__label {
	display: block;
	font-size: 14px;
	color: #374151;
	margin-bottom: 6px;
	font-weight: 500;
}
.sher-wa-form__input,
.sher-wa-form__textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 16px;
	font-family: inherit;
	background: #fff;
	color: #111827;
	direction: rtl;
	text-align: right;
}
.sher-wa-form__input:focus,
.sher-wa-form__textarea:focus {
	outline: none;
	border-color: #25D366;
	box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}
.sher-wa-form__textarea {
	min-height: 72px;
	resize: vertical;
	line-height: 1.45;
}
.sher-wa-form__input--error {
	border-color: #dc2626;
}
.sher-wa-form__error {
	display: none;
	color: #dc2626;
	font-size: 13px;
	margin-top: 4px;
}
.sher-wa-form__field--has-error .sher-wa-form__error { display: block; }

/* Honeypot — visually hidden but in the DOM */
.sher-wa-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.sher-wa-submit {
	width: 100%;
	padding: 12px 16px;
	background: #25D366;
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.sher-wa-submit:hover  { background: #1ebe58; }
.sher-wa-submit:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

.sher-wa-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sher-wa-spin 0.7s linear infinite;
}
.sher-wa-submit.is-loading .sher-wa-spinner { display: inline-block; }
.sher-wa-submit.is-loading .sher-wa-submit__text { opacity: 0.7; }

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

.sher-wa-form__general-error {
	display: none;
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	margin-bottom: 14px;
}
.sher-wa-form__general-error.is-visible { display: block; }

/* Mobile tweaks */
@media (max-width: 640px) {
	.sher-wa-fab { width: 56px; height: 56px; bottom: 18px; }
	.sher-wa-fab--left  { left: 18px;  }
	.sher-wa-fab--right { right: 18px; }
	.sher-wa-modal { max-width: 100%; border-radius: 12px; }
	.sher-wa-modal__title { font-size: 17px; }
}
