/* WP Math Captcha — استایل کپچا */
.wpmc-captcha {
	max-width: 360px;
	font-size: 14px;
	line-height: 1.7;
}

.wpmc-captcha .wpmc-challenge {
	position: relative;
	overflow: hidden;
	border: 1px solid #d7dee8;
	border-radius: 10px;
	background: linear-gradient(180deg, #fbfcfe, #f3f6fa);
	padding: 16px 14px 12px;
	margin-bottom: 10px;
}

.wpmc-captcha .wpmc-equation {
	position: relative;
	z-index: 2;
	direction: ltr;
	text-align: center;
	font-family: "Segoe UI", Tahoma, Arial, sans-serif;
	font-size: 28px;
	user-select: none;
	-webkit-user-select: none;
	letter-spacing: 4px;
}

.wpmc-captcha .wpmc-equation span {
	display: inline-block;
}

.wpmc-captcha .wpmc-equation .wpmc-op {
	color: #4a5a70;
	margin: 0 2px;
}

.wpmc-captcha .wpmc-equation .wpmc-q {
	color: #c0392b;
}

.wpmc-captcha .wpmc-noise {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
	opacity: 0.55;
}

.wpmc-captcha .wpmc-controls {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.wpmc-captcha .wpmc-input {
	flex: 1;
	min-width: 0;
	direction: ltr;
	text-align: center;
	font-size: 18px;
	padding: 8px 10px;
	border: 1px solid #c9d3e0;
	border-radius: 8px;
	background: #fff;
	color: #222;
}

.wpmc-captcha .wpmc-input:focus {
	outline: 2px solid #4a90d9;
	outline-offset: 0;
	border-color: #4a90d9;
}

.wpmc-captcha .wpmc-refresh {
	width: 46px;
	border: 1px solid #c9d3e0;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #4a5a70;
}

.wpmc-captcha .wpmc-refresh:hover {
	background: #eef3f9;
}

.wpmc-captcha .wpmc-refresh:active {
	transform: scale(0.96);
}

/* فیلد دام: خارج از صفحه، نامرئی اما در مسیر فرم */
.wpmc-captcha .wpmc-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

.wpmc-captcha .wpmc-error {
	color: #b32d2e;
	font-size: 13px;
	margin-top: 6px;
}

.wpmc-captcha.wpmc-loading .wpmc-challenge,
.wpmc-captcha.wpmc-loading .wpmc-controls {
	opacity: 0.45;
	pointer-events: none;
}

/* کپچای تزریق‌شده به فرم‌های المنتور: داخل فرم، بالای دکمه‌ی ارسال */
.wpmc-inject {
	margin: 8px 0;
	max-width: 420px;
}

.wpmc-inject .wpmc-captcha {
	max-width: 100%;
}

.wpmc-captcha .wpmc-submit-error {
	font-weight: 600;
	margin-top: 8px;
}

@media (max-width: 480px) {
	.wpmc-captcha .wpmc-equation {
		font-size: 24px;
		letter-spacing: 3px;
	}
}
