/* =====================================================================
   مهرسام فرم — استایل سمت کاربر
   ضد تداخل با قالب: ریست کامل + !important روی همه‌ی ویژگی‌های حیاتی
   ===================================================================== */
.mhrsf-form, .mhrsf-pp-overlay {
	--mhrsf: #29317c;
	--mhrsf-2: #3d47a8;
	--mhrsf-soft: #eef0fb;
	--mhrsf-ink: #1c2140;
	--mhrsf-muted: #6b7290;
	--mhrsf-line: #e5e7f2;
	--mhrsf-danger: #c22f3f;
}

/* --- 1) ریست پایه برای کل اجزای فرم و پاپ‌آپ --- */
.mhrsf-scope, .mhrsf-scope *,
.mhrsf-pp-overlay, .mhrsf-pp-overlay * {
	box-sizing: border-box !important;
	font-family: "Vazirmatn", Tahoma, sans-serif !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-shadow: none !important;
	float: none !important;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

/* --- 2) حذف شبه‌عنصرهای قالب از کنترل‌ها و دکمه‌ها --- */
.mhrsf-scope .mhrsf-control::before,
.mhrsf-scope .mhrsf-control::after,
.mhrsf-scope .mhrsf-submit::before,
.mhrsf-scope .mhrsf-submit::after,
.mhrsf-scope .mhrsf-label::before,
.mhrsf-scope .mhrsf-label::after,
.mhrsf-pp-overlay .mhrsf-pp-ok::before,
.mhrsf-pp-overlay .mhrsf-pp-ok::after,
.mhrsf-pp-overlay .mhrsf-pp-close::before,
.mhrsf-pp-overlay .mhrsf-pp-close::after {
	content: none !important;
	display: none !important;
	background: none !important;
}

/* --- 3) بدنه‌ی فرم --- */
.mhrsf-form {
	all: unset;
	display: block !important;
	background: #fff !important;
	border: 1px solid var(--mhrsf-line) !important;
	border-radius: 18px !important;
	padding: 26px !important;
	max-width: 720px !important;
	margin: 0 auto !important;
	box-shadow: 0 10px 40px rgba(41, 49, 124, .07) !important;
	position: relative !important;
	overflow: hidden !important;
	direction: rtl !important;
	text-align: right !important;
	color: var(--mhrsf-ink) !important;
	font-size: 14px !important;
	line-height: 1.7 !important;
}
.mhrsf-form::before {
	content: '' !important;
	display: block !important;
	position: absolute !important;
	inset: 0 0 auto 0 !important;
	height: 5px !important;
	background: linear-gradient(270deg, var(--mhrsf), var(--mhrsf-2), var(--mhrsf)) !important;
}
.mhrsf-form-grid { display: flex !important; flex-wrap: wrap !important; gap: 18px 4% !important; margin: 0 !important; padding: 0 !important; }
.mhrsf-w-full { width: 100% !important; }
.mhrsf-w-half { width: 48% !important; }

.mhrsf-field { position: relative !important; margin: 0 !important; padding: 0 !important; }
.mhrsf-label {
	display: block !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: var(--mhrsf-ink) !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	line-height: 1.6 !important;
}
.mhrsf-req { color: var(--mhrsf-danger) !important; margin-right: 3px !important; font-weight: 700 !important; }
.mhrsf-desc { margin: 6px 0 0 !important; padding: 0 !important; font-size: 12px !important; color: var(--mhrsf-muted) !important; line-height: 1.8 !important; }

/* --- 4) ریست کامل کنترل‌ها (input / textarea / select) --- */
.mhrsf-scope .mhrsf-control,
.mhrsf-scope input.mhrsf-control,
.mhrsf-scope textarea.mhrsf-control,
.mhrsf-scope select.mhrsf-control {
	all: unset;
	box-sizing: border-box !important;
	display: block !important;
	width: 100% !important;
	min-height: 46px !important;
	border: 1.5px solid var(--mhrsf-line) !important;
	border-radius: 12px !important;
	padding: 12px 14px !important;
	margin: 0 !important;
	font-family: "Vazirmatn", Tahoma, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
	color: var(--mhrsf-ink) !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	text-align: right !important;
	cursor: text !important;
	transition: border-color .18s ease, box-shadow .18s ease !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}
.mhrsf-scope .mhrsf-control[dir="ltr"] { text-align: left !important; direction: ltr !important; }
.mhrsf-scope .mhrsf-control::placeholder { color: #b6bad4 !important; opacity: 1 !important; }
.mhrsf-scope .mhrsf-control:focus {
	border-color: var(--mhrsf) !important;
	box-shadow: 0 0 0 4px var(--mhrsf-soft) !important;
	background: #fff !important;
}
.mhrsf-scope textarea.mhrsf-control { resize: vertical !important; min-height: 110px !important; }
.mhrsf-scope select.mhrsf-control { cursor: pointer !important; padding-left: 36px !important; }

.mhrsf-select-wrap { position: relative !important; }
.mhrsf-select-wrap::after {
	content: '▾' !important;
	display: block !important;
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: var(--mhrsf) !important;
	pointer-events: none !important;
	font-size: 13px !important;
}

/* --- 5) گزینه‌ها (رادیو / چک‌باکس) --- */
.mhrsf-choices { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; margin: 0 !important; padding: 0 !important; }
.mhrsf-scope .mhrsf-choice {
	all: unset;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	border: 1.5px solid var(--mhrsf-line) !important;
	border-radius: 999px !important;
	padding: 8px 16px !important;
	margin: 0 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--mhrsf-ink) !important;
	background: #fff !important;
	transition: border-color .15s, background .15s, color .15s !important;
	user-select: none !important;
	-webkit-user-select: none !important;
	line-height: 1.5 !important;
}
.mhrsf-scope .mhrsf-choice input {
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	pointer-events: none !important;
}
.mhrsf-choice-mark {
	width: 16px !important;
	height: 16px !important;
	border-radius: 50% !important;
	border: 2px solid #c3c7e0 !important;
	display: inline-block !important;
	transition: .15s !important;
	flex: 0 0 auto !important;
	position: relative !important;
	background: #fff !important;
}
.mhrsf-choice input[type="checkbox"] + .mhrsf-choice-mark { border-radius: 5px !important; }
.mhrsf-choice input:checked + .mhrsf-choice-mark {
	border-color: var(--mhrsf) !important;
	background: var(--mhrsf) !important;
	box-shadow: inset 0 0 0 3px #fff !important;
}
.mhrsf-choice input[type="checkbox"]:checked + .mhrsf-choice-mark { box-shadow: none !important; }
.mhrsf-choice input[type="checkbox"]:checked + .mhrsf-choice-mark::after {
	content: '✓' !important;
	color: #fff !important;
	font-size: 10px !important;
	position: absolute !important;
	inset: 0 !important;
	display: grid !important;
	place-items: center !important;
	font-weight: 900 !important;
}
.mhrsf-choice:has(input:checked) {
	border-color: var(--mhrsf) !important;
	background: var(--mhrsf-soft) !important;
	color: var(--mhrsf) !important;
}

/* --- 6) خطاها --- */
.mhrsf-field.has-error .mhrsf-control,
.mhrsf-field.has-error .mhrsf-choice { border-color: var(--mhrsf-danger) !important; }
.mhrsf-field-error {
	margin: 6px 0 0 !important; padding: 0 !important;
	font-size: 12px !important; color: var(--mhrsf-danger) !important; font-weight: 600 !important;
}
.mhrsf-field-error[hidden], .mhrsf-form-error[hidden] { display: none !important; }
.mhrsf-form-error {
	display: block !important;
	margin: 16px 0 0 !important;
	border-radius: 10px !important;
	padding: 12px 16px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	background: #fdf2f3 !important;
	color: var(--mhrsf-danger) !important;
	border: 1px solid #f2d4d8 !important;
}
.mhrsf-form-error.is-ok { background: #ecf8f1 !important; color: #16794c !important; border-color: #c9ecd8 !important; }

/* --- 7) تله ربات --- */
.mhrsf-hp {
	position: absolute !important;
	right: -9999px !important;
	opacity: 0 !important;
	height: 0 !important;
	width: 0 !important;
	pointer-events: none !important;
}

/* --- 8) ریست کامل دکمه‌ی ثبت (الگوی ضدقالب) --- */
.mhrsf-form-footer { margin: 24px 0 0 !important; padding: 0 !important; }
.mhrsf-scope .mhrsf-submit,
.mhrsf-scope button.mhrsf-submit {
	all: unset;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	position: relative !important;
	margin: 0 !important;
	padding: 13px 34px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, var(--mhrsf), var(--mhrsf-2)) !important;
	background-clip: padding-box !important;
	color: #fff !important;
	font-family: "Vazirmatn", Tahoma, sans-serif !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.5 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer !important;
	overflow: visible !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: 0 8px 20px rgba(41, 49, 124, .25) !important;
	transition: transform .18s ease, box-shadow .18s ease !important;
	-webkit-user-select: none !important;
	user-select: none !important;
}
.mhrsf-scope .mhrsf-submit:hover:not(:disabled) {
	transform: translateY(-2px) !important;
	box-shadow: 0 12px 26px rgba(41, 49, 124, .32) !important;
	background: linear-gradient(135deg, var(--mhrsf), var(--mhrsf-2)) !important;
	color: #fff !important;
}
.mhrsf-scope .mhrsf-submit:disabled { opacity: .75 !important; cursor: wait !important; }
.mhrsf-scope .mhrsf-submit:focus:not(:focus-visible) {
	outline: none !important;
	box-shadow: 0 8px 20px rgba(41, 49, 124, .25) !important;
}
.mhrsf-scope .mhrsf-submit:focus-visible {
	outline: 3px solid var(--mhrsf-ink) !important;
	outline-offset: 3px !important;
}
.mhrsf-submit-label { pointer-events: none !important; }
.mhrsf-spinner {
	width: 16px !important;
	height: 16px !important;
	border: 2.5px solid rgba(255, 255, 255, .35) !important;
	border-top-color: #fff !important;
	border-radius: 50% !important;
	display: none !important;
	animation: mhrsf-spin .7s linear infinite !important;
	pointer-events: none !important;
}
.mhrsf-submit.is-loading .mhrsf-spinner { display: inline-block !important; }
@keyframes mhrsf-spin { to { transform: rotate(360deg); } }

/* --- 9) پاپ‌آپ رسید --- */
.mhrsf-pp-overlay {
	all: unset;
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147483000 !important;
	background: rgba(20, 24, 58, .55) !important;
	backdrop-filter: blur(6px) !important;
	-webkit-backdrop-filter: blur(6px) !important;
	display: grid !important;
	place-items: center !important;
	padding: 20px !important;
	opacity: 0;
	transition: opacity .25s ease !important;
	direction: rtl !important;
	text-align: right !important;
}
.mhrsf-pp-overlay.is-open { opacity: 1 !important; }
.mhrsf-pp {
	background: #fff !important;
	border-radius: 22px !important;
	width: 100% !important;
	max-width: 520px !important;
	max-height: 90vh !important;
	overflow-y: auto !important;
	padding: 30px 28px 26px !important;
	margin: 0 !important;
	position: relative !important;
	transform: translateY(24px) scale(.97);
	transition: transform .28s cubic-bezier(.2, .9, .3, 1.2) !important;
	box-shadow: 0 30px 80px rgba(20, 24, 58, .35) !important;
	color: var(--mhrsf-ink) !important;
	font-size: 14px !important;
	line-height: 1.7 !important;
}
.mhrsf-pp-overlay.is-open .mhrsf-pp { transform: translateY(0) scale(1); }

.mhrsf-pp-overlay .mhrsf-pp-close,
.mhrsf-pp-overlay button.mhrsf-pp-close {
	all: unset;
	box-sizing: border-box !important;
	position: absolute !important;
	top: 16px !important;
	left: 16px !important;
	width: 34px !important;
	height: 34px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	border: 1px solid var(--mhrsf-line) !important;
	background: #fff !important;
	color: var(--mhrsf-muted) !important;
	cursor: pointer !important;
	font-size: 13px !important;
	font-family: inherit !important;
	transition: .15s !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}
.mhrsf-pp-overlay .mhrsf-pp-close:hover { border-color: var(--mhrsf-danger) !important; color: var(--mhrsf-danger) !important; }

.mhrsf-pp-head { text-align: center !important; margin: 0 0 20px !important; }
.mhrsf-pp-check {
	width: 62px !important;
	height: 62px !important;
	margin: 0 auto 14px !important;
	border-radius: 50% !important;
	background: linear-gradient(135deg, var(--mhrsf), var(--mhrsf-2)) !important;
	color: #fff !important;
	display: grid !important;
	place-items: center !important;
	animation: mhrsf-pop .45s cubic-bezier(.2, .9, .3, 1.4) both !important;
	box-shadow: 0 10px 26px rgba(41, 49, 124, .35) !important;
}
.mhrsf-pp-check svg { width: 30px !important; height: 30px !important; display: block !important; }
@keyframes mhrsf-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mhrsf-pp-head h3 {
	margin: 0 !important; padding: 0 !important;
	font-size: 19px !important; font-weight: 800 !important;
	color: var(--mhrsf-ink) !important; line-height: 1.6 !important;
	background: none !important; border: 0 !important;
}

/* کارت محصول به سبک رسید با لبه‌های پانچ‌شده */
.mhrsf-pp-product {
	background: var(--mhrsf-soft) !important;
	border: 1px solid #dde1f7 !important;
	border-radius: 16px !important;
	padding: 16px !important;
	margin: 0 0 16px !important;
	position: relative !important;
}
.mhrsf-pp-product::before, .mhrsf-pp-product::after {
	content: '' !important;
	display: block !important;
	position: absolute !important;
	width: 18px !important;
	height: 18px !important;
	border-radius: 50% !important;
	background: #fff !important;
	border: 1px solid #dde1f7 !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
}
.mhrsf-pp-product::before { right: -10px !important; }
.mhrsf-pp-product::after { left: -10px !important; }
.mhrsf-pp-product-top { display: flex !important; align-items: center !important; gap: 10px !important; flex-wrap: wrap !important; }
.mhrsf-pp-badge {
	background: var(--mhrsf) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 5px 14px !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	display: inline-block !important;
}
.mhrsf-pp-name { font-size: 13.5px !important; font-weight: 700 !important; color: var(--mhrsf-ink) !important; flex: 1 !important; min-width: 140px !important; }
.mhrsf-pp-price { font-size: 15px !important; font-weight: 900 !important; color: var(--mhrsf) !important; white-space: nowrap !important; }
.mhrsf-pp-chips {
	display: flex !important; flex-wrap: wrap !important; gap: 8px !important;
	margin: 14px 0 0 !important; padding: 14px 0 0 !important;
	border-top: 1px dashed #c3c9ec !important;
}
.mhrsf-pp-chip {
	background: #fff !important;
	border: 1px solid #dde1f7 !important;
	border-radius: 9px !important;
	padding: 6px 12px !important;
	font-size: 12px !important;
	color: var(--mhrsf-muted) !important;
	display: inline-block !important;
}
.mhrsf-pp-chip b { color: var(--mhrsf-ink) !important; font-weight: 700 !important; margin-left: 4px !important; }

.mhrsf-pp-values { border: 1px solid var(--mhrsf-line) !important; border-radius: 14px !important; padding: 14px 16px !important; margin: 0 0 16px !important; }
.mhrsf-pp-values-title { font-size: 12px !important; font-weight: 800 !important; color: var(--mhrsf) !important; margin: 0 0 10px !important; }
.mhrsf-pp-row {
	display: flex !important; justify-content: space-between !important; gap: 14px !important;
	padding: 8px 0 !important; margin: 0 !important;
	border-bottom: 1px dashed var(--mhrsf-line) !important; font-size: 13px !important;
}
.mhrsf-pp-row:last-child { border-bottom: none !important; }
.mhrsf-pp-row span { color: var(--mhrsf-muted) !important; }
.mhrsf-pp-row b { color: var(--mhrsf-ink) !important; font-weight: 700 !important; text-align: left !important; }

.mhrsf-pp-msg { text-align: center !important; font-size: 13.5px !important; color: var(--mhrsf-muted) !important; line-height: 2 !important; margin: 0 0 18px !important; padding: 0 !important; }

.mhrsf-pp-overlay .mhrsf-pp-ok,
.mhrsf-pp-overlay button.mhrsf-pp-ok {
	all: unset;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 13px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, var(--mhrsf), var(--mhrsf-2)) !important;
	color: #fff !important;
	font-family: "Vazirmatn", Tahoma, sans-serif !important;
	font-size: 14.5px !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	transition: filter .18s !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	text-align: center !important;
}
.mhrsf-pp-overlay .mhrsf-pp-ok:hover { filter: brightness(1.1) !important; color: #fff !important; }
.mhrsf-pp-overlay .mhrsf-pp-ok:focus-visible,
.mhrsf-pp-overlay .mhrsf-pp-close:focus-visible {
	outline: 3px solid var(--mhrsf-ink) !important;
	outline-offset: 3px !important;
}

/* --- 10) واکنش‌گرا --- */
@media (max-width: 640px) {
	.mhrsf-form { padding: 20px 16px !important; border-radius: 14px !important; }
	.mhrsf-w-half { width: 100% !important; }
	.mhrsf-pp { padding: 24px 18px 20px !important; border-radius: 18px !important; }
	.mhrsf-pp-product-top { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
	.mhrsf-pp-price { align-self: flex-end !important; }
}
@media (prefers-reduced-motion: reduce) {
	.mhrsf-pp-overlay, .mhrsf-pp, .mhrsf-pp-check, .mhrsf-submit { transition: none !important; animation: none !important; }
}

/* =====================================================================
   نسخه‌ی مدرن‌تر + پاپ‌آپ فرم مرحله‌ی دوم + قالب‌ها و آیکون‌های سفارشی
   ===================================================================== */

/* رنگ پس‌زمینه‌ی قابل تنظیم */
.mhrsf-form { background: var(--mhrsf-card-bg, #fff) !important; }
.mhrsf-pp { background: var(--mhrsf-card-bg, #fff) !important; }

/* ورودی‌های مدرن: پس‌زمینه‌ی پرشده که با فوکوس سفید می‌شود */
.mhrsf-scope .mhrsf-control,
.mhrsf-pp-overlay .mhrsf-control {
	background: #f6f7fc !important;
	border-color: transparent !important;
}
.mhrsf-scope .mhrsf-control:hover,
.mhrsf-pp-overlay .mhrsf-control:hover { border-color: var(--mhrsf-line) !important; }
.mhrsf-scope .mhrsf-control:focus,
.mhrsf-pp-overlay .mhrsf-control:focus {
	background: #fff !important;
	border-color: var(--mhrsf) !important;
	box-shadow: 0 0 0 4px var(--mhrsf-soft) !important;
}
.mhrsf-choice { background: #f6f7fc !important; border-color: transparent !important; }
.mhrsf-choice:hover { border-color: var(--mhrsf-line) !important; }
.mhrsf-choice:has(input:checked) { background: var(--mhrsf-soft) !important; border-color: var(--mhrsf) !important; }

/* آیکون دکمه‌ی ثبت (SVG پیش‌فرض یا آپلودی) */
.mhrsf-submit .mhrsf-submit-icon {
	width: 18px !important;
	height: 18px !important;
	display: block !important;
	flex: 0 0 auto !important;
	object-fit: contain !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: none !important;
	pointer-events: none !important;
	transform: scaleX(-1); /* جهت فلش در RTL */
	transition: transform .18s ease !important;
}
.mhrsf-submit:hover .mhrsf-submit-icon { transform: scaleX(-1) translateX(-3px); }
.mhrsf-submit.is-loading .mhrsf-submit-icon { display: none !important; }

/* آیکون سفارشی فلش لیست کشویی */
.mhrsf-has-arrow .mhrsf-select-wrap::after {
	content: '' !important;
	width: 16px !important;
	height: 16px !important;
	background-image: var(--mhrsf-arrow-icon) !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
}

/* ---------- پاپ‌آپ مرحله‌ی دوم (فرم اطلاعات مشتری) ---------- */
.mhrsf-pp-overlay[hidden] { display: none !important; }
.mhrsf-pp-title {
	margin: 0 0 18px !important; padding: 0 34px 0 34px !important;
	font-size: 18px !important; font-weight: 800 !important;
	color: var(--mhrsf-ink) !important; text-align: center !important;
	line-height: 1.7 !important; background: none !important; border: 0 !important;
}
.mhrsf-pp .mhrsf-pp-fields { margin: 0 0 20px !important; }
.mhrsf-pp .mhrsf-form-error { margin-top: 14px !important; }
.mhrsf-pp-overlay .mhrsf-pp-submit,
.mhrsf-pp-overlay button.mhrsf-pp-submit {
	all: unset;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 13px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, var(--mhrsf), var(--mhrsf-2)) !important;
	color: #fff !important;
	font-family: "Vazirmatn", Tahoma, sans-serif !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	transition: filter .18s, transform .18s !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: 0 8px 20px rgba(41, 49, 124, .25) !important;
}
.mhrsf-pp-overlay .mhrsf-pp-submit:hover:not(:disabled) { filter: brightness(1.08) !important; transform: translateY(-1px) !important; }
.mhrsf-pp-overlay .mhrsf-pp-submit:disabled { opacity: .75 !important; cursor: wait !important; }
.mhrsf-pp-overlay .mhrsf-pp-submit .mhrsf-spinner { display: none !important; }
.mhrsf-pp-overlay .mhrsf-pp-submit.is-loading .mhrsf-spinner { display: inline-block !important; }
.mhrsf-pp-overlay .mhrsf-pp-submit.is-loading .mhrsf-submit-icon { display: none !important; }

/* ---------- قالب: مینیمال و تخت ---------- */
.mhrsf-style-minimal .mhrsf-form,
.mhrsf-style-minimal .mhrsf-pp {
	border-radius: 10px !important;
	box-shadow: none !important;
	border: 1.5px solid var(--mhrsf-line) !important;
}
.mhrsf-style-minimal .mhrsf-form::before { display: none !important; content: none !important; }
.mhrsf-style-minimal .mhrsf-control { border-radius: 8px !important; background: #fff !important; border-color: var(--mhrsf-line) !important; }
.mhrsf-style-minimal .mhrsf-control:focus { box-shadow: none !important; }
.mhrsf-style-minimal .mhrsf-choice { border-radius: 8px !important; background: #fff !important; border-color: var(--mhrsf-line) !important; }
.mhrsf-style-minimal .mhrsf-submit,
.mhrsf-style-minimal .mhrsf-pp-ok,
.mhrsf-style-minimal .mhrsf-pp-submit {
	background: var(--mhrsf) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
}
.mhrsf-style-minimal .mhrsf-submit:hover:not(:disabled) { transform: none !important; box-shadow: none !important; filter: brightness(1.1) !important; }
.mhrsf-style-minimal .mhrsf-pp-product { border-radius: 8px !important; }
.mhrsf-style-minimal .mhrsf-pp-product::before, .mhrsf-style-minimal .mhrsf-pp-product::after { display: none !important; content: none !important; }

/* ---------- قالب: شیشه‌ای ---------- */
.mhrsf-style-glass .mhrsf-form,
.mhrsf-style-glass .mhrsf-pp {
	background: color-mix(in srgb, var(--mhrsf-card-bg, #fff) 72%, transparent) !important;
	backdrop-filter: blur(14px) saturate(1.3) !important;
	-webkit-backdrop-filter: blur(14px) saturate(1.3) !important;
	border: 1px solid rgba(255, 255, 255, .55) !important;
	box-shadow: 0 20px 60px rgba(41, 49, 124, .16) !important;
}
.mhrsf-style-glass .mhrsf-control { background: rgba(255, 255, 255, .65) !important; }
.mhrsf-style-glass .mhrsf-control:focus { background: #fff !important; }
.mhrsf-style-glass .mhrsf-choice { background: rgba(255, 255, 255, .6) !important; }
.mhrsf-style-glass .mhrsf-pp-product { background: rgba(255, 255, 255, .5) !important; }

/* ---------- قالب: نرم و گرد ---------- */
.mhrsf-style-soft .mhrsf-form { border-radius: 28px !important; }
.mhrsf-style-soft .mhrsf-pp { border-radius: 28px !important; }
.mhrsf-style-soft .mhrsf-control { border-radius: 999px !important; padding: 12px 20px !important; }
.mhrsf-style-soft textarea.mhrsf-control { border-radius: 20px !important; }
.mhrsf-style-soft .mhrsf-submit, .mhrsf-style-soft .mhrsf-pp-submit { border-radius: 999px !important; }
.mhrsf-style-soft .mhrsf-pp-ok { border-radius: 999px !important; }
.mhrsf-style-soft .mhrsf-select-wrap .mhrsf-control { padding-left: 40px !important; }
.mhrsf-style-soft .mhrsf-pp-product { border-radius: 20px !important; }

/* پاپ‌آپ موفقیت با استایل‌های inline کپی‌شده باز می‌شود */
.mhrsf-pp-success.is-open { opacity: 1 !important; }

/* =====================================================================
   بازطراحی انتخاب‌ها + فوکوس نرم‌تر + آیکون پاپ‌آپ + تقویت قالب‌ها
   ===================================================================== */

/* ---------- انتخاب‌ها: نرم و مدرن، بدون حلقه‌ی دوتایی ---------- */
.mhrsf-scope .mhrsf-choice,
.mhrsf-pp-overlay .mhrsf-choice {
	background: #f6f7fc !important;
	border: 1.5px solid transparent !important;
	border-radius: 999px !important;
	padding: 9px 18px !important;
	gap: 9px !important;
	transition: background .22s ease, border-color .22s ease, color .22s ease, transform .15s ease, box-shadow .22s ease !important;
}
.mhrsf-scope .mhrsf-choice:hover,
.mhrsf-pp-overlay .mhrsf-choice:hover {
	background: var(--mhrsf-soft) !important;
	transform: translateY(-1px) !important;
}
.mhrsf-scope .mhrsf-choice:active,
.mhrsf-pp-overlay .mhrsf-choice:active { transform: scale(.97) !important; }

/* نشانگر رادیو: حلقه‌ی تمیز تک‌لایه */
.mhrsf-scope .mhrsf-choice-mark,
.mhrsf-pp-overlay .mhrsf-choice-mark {
	width: 18px !important;
	height: 18px !important;
	border: 2px solid #c9cde6 !important;
	background: #fff !important;
	box-shadow: none !important;
	transition: border .2s ease, background .2s ease !important;
}
.mhrsf-scope .mhrsf-choice input:checked + .mhrsf-choice-mark,
.mhrsf-pp-overlay .mhrsf-choice input:checked + .mhrsf-choice-mark {
	border: 5.5px solid var(--mhrsf) !important;
	background: #fff !important;
	box-shadow: none !important;
}
/* چک‌باکس: مربع گرد با تیک */
.mhrsf-scope .mhrsf-choice input[type="checkbox"] + .mhrsf-choice-mark,
.mhrsf-pp-overlay .mhrsf-choice input[type="checkbox"] + .mhrsf-choice-mark { border-radius: 6px !important; }
.mhrsf-scope .mhrsf-choice input[type="checkbox"]:checked + .mhrsf-choice-mark,
.mhrsf-pp-overlay .mhrsf-choice input[type="checkbox"]:checked + .mhrsf-choice-mark {
	border: 2px solid var(--mhrsf) !important;
	background: var(--mhrsf) !important;
}
/* حالت انتخاب‌شده‌ی پیل: پر شدن نرم */
.mhrsf-scope .mhrsf-choice:has(input:checked),
.mhrsf-pp-overlay .mhrsf-choice:has(input:checked) {
	background: linear-gradient(135deg, var(--mhrsf-soft), color-mix(in srgb, var(--mhrsf) 14%, #fff)) !important;
	border-color: color-mix(in srgb, var(--mhrsf) 45%, transparent) !important;
	color: var(--mhrsf) !important;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--mhrsf) 18%, transparent) !important;
}

/* فوکوس نرم‌تر روی همه‌ی کنترل‌ها */
.mhrsf-scope .mhrsf-control:focus,
.mhrsf-pp-overlay .mhrsf-control:focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--mhrsf) 14%, transparent) !important;
}

/* ---------- آیکون بالای پاپ‌آپ اطلاعات مشتری ---------- */
.mhrsf-pp-hero {
	width: 62px !important;
	height: 62px !important;
	margin: 0 auto 12px !important;
	display: grid !important;
	place-items: center !important;
	border-radius: 50% !important;
	background: var(--mhrsf-soft) !important;
	border: 1px solid color-mix(in srgb, var(--mhrsf) 20%, transparent) !important;
	box-shadow: 0 8px 22px color-mix(in srgb, var(--mhrsf) 18%, transparent) !important;
}
.mhrsf-pp-hero img {
	width: 55% !important;
	height: 55% !important;
	object-fit: contain !important;
	display: block !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: none !important;
}

/* کارت محصول خالی و چیپ‌های خالی هرگز دیده نشوند */
.mhrsf-pp-chips:empty { display: none !important; }
.mhrsf-pp-chips [data-mhrsf-dynamic-chips]:empty { display: none !important; }

/* =====================================================================
   تقویت قالب‌ها — تفاوت واضح روی «فرم اصلی»، نه فقط پاپ‌آپ
   ===================================================================== */

/* --- مدرن: عمق بیشتر --- */
.mhrsf-style-modern .mhrsf-form {
	border: 1px solid color-mix(in srgb, var(--mhrsf) 12%, #fff) !important;
	box-shadow: 0 24px 60px color-mix(in srgb, var(--mhrsf) 13%, transparent), 0 2px 8px rgba(28, 33, 64, .05) !important;
}
.mhrsf-style-modern .mhrsf-form::before { height: 6px !important; }
.mhrsf-style-modern .mhrsf-label { font-weight: 800 !important; }

/* --- مینیمال: کاملاً تخت و خطی --- */
.mhrsf-style-minimal .mhrsf-form {
	background: transparent !important;
	border: none !important;
	padding: 6px 0 !important;
	box-shadow: none !important;
}
.mhrsf-style-minimal .mhrsf-control {
	border-radius: 0 !important;
	border: none !important;
	border-bottom: 2px solid var(--mhrsf-line) !important;
	background: transparent !important;
	padding: 10px 4px !important;
}
.mhrsf-style-minimal .mhrsf-control:focus {
	border-bottom-color: var(--mhrsf) !important;
	box-shadow: none !important;
	background: transparent !important;
}
.mhrsf-style-minimal .mhrsf-choice {
	border-radius: 6px !important;
	background: transparent !important;
	border: 1.5px solid var(--mhrsf-line) !important;
}
.mhrsf-style-minimal .mhrsf-choice:has(input:checked) {
	background: var(--mhrsf) !important;
	border-color: var(--mhrsf) !important;
	color: #fff !important;
	box-shadow: none !important;
}
.mhrsf-style-minimal .mhrsf-choice:has(input:checked) .mhrsf-choice-mark { display: none !important; }
.mhrsf-style-minimal .mhrsf-label { font-size: 12.5px !important; color: var(--mhrsf-muted) !important; }
.mhrsf-style-minimal .mhrsf-submit { border-radius: 6px !important; }
.mhrsf-style-minimal .mhrsf-select-wrap .mhrsf-control { padding-left: 30px !important; }

/* --- شیشه‌ای: بلور واقعی + هاله‌ی رنگی --- */
.mhrsf-style-glass .mhrsf-form {
	background: color-mix(in srgb, var(--mhrsf-card-bg, #fff) 60%, transparent) !important;
	backdrop-filter: blur(18px) saturate(1.4) !important;
	-webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
	border: 1px solid rgba(255, 255, 255, .65) !important;
	box-shadow: 0 24px 70px color-mix(in srgb, var(--mhrsf) 22%, transparent), inset 0 1px 0 rgba(255,255,255,.7) !important;
}
.mhrsf-style-glass .mhrsf-form::before {
	height: 100% !important;
	background: radial-gradient(circle at 85% -10%, color-mix(in srgb, var(--mhrsf) 16%, transparent), transparent 55%) !important;
	pointer-events: none !important;
	z-index: 0 !important;
}
.mhrsf-style-glass .mhrsf-form > * { position: relative !important; z-index: 1 !important; }
.mhrsf-style-glass .mhrsf-choice { background: rgba(255, 255, 255, .55) !important; }
.mhrsf-style-glass .mhrsf-pp-product::before,
.mhrsf-style-glass .mhrsf-pp-product::after { display: none !important; content: none !important; }
.mhrsf-style-glass .mhrsf-submit { box-shadow: 0 10px 28px color-mix(in srgb, var(--mhrsf) 40%, transparent) !important; }

/* --- نرم و گرد: پاستلی و دوستانه --- */
.mhrsf-style-soft .mhrsf-form {
	background: color-mix(in srgb, var(--mhrsf) 4%, var(--mhrsf-card-bg, #fff)) !important;
	border: none !important;
	box-shadow: 0 20px 50px color-mix(in srgb, var(--mhrsf) 14%, transparent) !important;
}
.mhrsf-style-soft .mhrsf-form::before { display: none !important; content: none !important; }
.mhrsf-style-soft .mhrsf-control { background: #fff !important; box-shadow: 0 2px 10px rgba(28, 33, 64, .05) !important; }
.mhrsf-style-soft .mhrsf-choice { background: #fff !important; box-shadow: 0 2px 10px rgba(28, 33, 64, .05) !important; }
.mhrsf-style-soft .mhrsf-label { font-weight: 800 !important; }
.mhrsf-style-soft .mhrsf-submit { box-shadow: 0 12px 30px color-mix(in srgb, var(--mhrsf) 35%, transparent) !important; }

/* دکمه‌ی ثبت فرم اصلی: وسط‌چین */
.mhrsf-scope .mhrsf-form-footer {
	display: flex !important;
	justify-content: center !important;
}

/* عنوان نمایشی بالای فرم — استایل نهایی در بخش «هویت بصری» پایین فایل */
.mhrsf-scope .mhrsf-form-title {
	background: none !important;
}

/* فیلد مخفی‌شده با منطق شرطی */
.mhrsf-scope .mhrsf-hidden { display: none !important; }

/* ===== سایه‌ی سفارشی باکس فرم (وقتی کاربر تغییرش داده) ===== */
.mhrsf-custom-shadow .mhrsf-form {
	box-shadow: var(--mhrsf-shadow, 0 10px 40px rgba(41, 49, 124, .07)) !important;
}

/* ===== انیمیشن نرم و سریع فیلدهای شرطی (جمع‌شدن ارتفاع + محو) ===== */
.mhrsf-scope .mhrsf-field.mhrsf-anim {
	transition: opacity .2s ease, transform .2s ease, max-height .24s ease, margin .24s ease, padding .24s ease !important;
	overflow: hidden !important;
	max-height: 1000px !important;
	will-change: max-height, opacity, transform !important;
}
.mhrsf-scope .mhrsf-field.mhrsf-anim.mhrsf-collapsed {
	opacity: 0 !important;
	max-height: 0 !important;
	margin-top: 0 !important;
	margin-bottom: -18px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	transform: translateY(-6px) !important;
	pointer-events: none !important;
}
.mhrsf-scope .mhrsf-field.mhrsf-hidden {
	display: none !important;
}
@media (prefers-reduced-motion: reduce) {
	.mhrsf-scope .mhrsf-field.mhrsf-anim { transition: none !important; }
}

/* ============================================================
   حالت «قفل» منطق شرطی — نمایش داده می‌شود ولی غیرفعال است
   ============================================================ */
.mhrsf-field.mhrsf-locked {
	position: relative;
	opacity: 0.62;
	transition: opacity 0.3s ease, filter 0.3s ease;
}

.mhrsf-field.mhrsf-locked .mhrsf-control,
.mhrsf-field.mhrsf-locked .mhrsf-select-wrap,
.mhrsf-field.mhrsf-locked .mhrsf-choices {
	cursor: not-allowed;
	filter: saturate(0.55);
}

.mhrsf-field.mhrsf-locked .mhrsf-control {
	background-color: rgba(0, 0, 0, 0.035);
}

.mhrsf-field.mhrsf-locked .mhrsf-choice {
	cursor: not-allowed;
	pointer-events: none;
}

/* گزینه‌های قفل‌شده به هیچ عنوان قابل انتخاب نباشند */
.mhrsf-field.mhrsf-locked .mhrsf-control,
.mhrsf-field.mhrsf-locked .mhrsf-choices,
.mhrsf-field.mhrsf-locked .mhrsf-choices input,
.mhrsf-field.mhrsf-locked .mhrsf-select-wrap select {
	pointer-events: none !important;
	user-select: none !important;
}

/* برچسب قفل روی خود فیلد */
.mhrsf-field.mhrsf-locked .mhrsf-label {
	opacity: 0.9;
}

/* ستاره‌ی الزامی تا وقتی قفل است نمایش داده نشود */
.mhrsf-field.mhrsf-locked .mhrsf-req {
	opacity: 0;
}

/* پیام راهنمای حالت قفل */
.mhrsf-lock-note {
	display: none;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.8;
	opacity: 0.85;
}

.mhrsf-field.mhrsf-locked .mhrsf-lock-note {
	display: flex;
}

.mhrsf-lock-ico {
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	background-color: currentColor;
	-webkit-mask: no-repeat center / contain
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7a5 5 0 0 0-10 0v2H5v13h14V9h-2zM9 7a3 3 0 0 1 6 0v2H9V7z'/%3E%3C/svg%3E");
	mask: no-repeat center / contain
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9V7a5 5 0 0 0-10 0v2H5v13h14V9h-2zM9 7a3 3 0 0 1 6 0v2H9V7z'/%3E%3C/svg%3E");
}

/* تپش کوتاه هنگام فعال شدن */
.mhrsf-field.mhrsf-unlocked-pulse .mhrsf-control,
.mhrsf-field.mhrsf-unlocked-pulse .mhrsf-choices {
	animation: mhrsf-unlock 0.9s ease;
}

@keyframes mhrsf-unlock {
	0%   { box-shadow: 0 0 0 0 rgba(74, 108, 247, 0.35); }
	60%  { box-shadow: 0 0 0 7px rgba(74, 108, 247, 0); }
	100% { box-shadow: 0 0 0 0 rgba(74, 108, 247, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.mhrsf-field.mhrsf-locked,
	.mhrsf-field.mhrsf-unlocked-pulse .mhrsf-control,
	.mhrsf-field.mhrsf-unlocked-pulse .mhrsf-choices {
		transition: none !important;
		animation: none !important;
	}
}

/* ============================================================
   انتخاب تصویری (image / image_multi)
   ============================================================ */
.mhrsf-imgpick {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.mhrsf-imgpick__item {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.mhrsf-imgpick__item input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.mhrsf-imgpick__box {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 12px 10px 10px;
	border: 2px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
	transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.mhrsf-imgpick__item:hover .mhrsf-imgpick__box {
	border-color: rgba(74, 108, 247, 0.55);
	transform: translateY(-2px);
}

.mhrsf-imgpick__item input:checked + .mhrsf-imgpick__box {
	border-color: var(--mhrsf-main, #4a6cf7);
	box-shadow: 0 6px 18px -8px var(--mhrsf-main, #4a6cf7);
}

.mhrsf-imgpick__item input:focus-visible + .mhrsf-imgpick__box {
	outline: 2px solid var(--mhrsf-main, #4a6cf7);
	outline-offset: 2px;
}

/* نقطه‌ی انتخاب */
.mhrsf-imgpick__mark {
	position: absolute;
	top: 8px;
	inset-inline-start: 8px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid rgba(0, 0, 0, 0.18);
	background: #fff;
	transition: background-color 0.22s ease, border-color 0.22s ease;
}

.mhrsf-imgpick__item input:checked + .mhrsf-imgpick__box .mhrsf-imgpick__mark {
	background: var(--mhrsf-main, #4a6cf7);
	border-color: var(--mhrsf-main, #4a6cf7);
}

/* دکمه ذره‌بین */
.mhrsf-imgpick .mhrsf-imgpick__zoom {
	all: unset;
	box-sizing: border-box !important;
	position: absolute !important;
	top: 6px !important;
	inset-inline-end: 6px !important;
	z-index: 2 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 26px !important;
	height: 26px !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.06) !important;
	color: #5a6172 !important;
	cursor: zoom-in !important;
	opacity: 0.75;
	transition: opacity 0.2s ease, background-color 0.2s ease !important;
}

.mhrsf-imgpick .mhrsf-imgpick__zoom:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.12) !important;
}

.mhrsf-imgpick .mhrsf-imgpick__zoom svg {
	width: 15px !important;
	height: 15px !important;
	fill: currentColor !important;
	display: block !important;
}

/* تصویر گزینه */
.mhrsf-imgpick__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
}

.mhrsf-imgpick__img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.mhrsf-imgpick__label {
	font-size: 13px;
	line-height: 1.7;
	text-align: center;
}

/* حالت قفل‌شده */
.mhrsf-field.mhrsf-locked .mhrsf-imgpick {
	pointer-events: none !important;
}

@media (max-width: 480px) {
	.mhrsf-imgpick {
		grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
		gap: 8px;
	}

	.mhrsf-imgpick__label {
		font-size: 12px;
	}
}

/* ---------- بزرگ‌نمایی ---------- */
.mhrsf-imglb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	background: rgba(18, 20, 32, 0.35);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.mhrsf-imglb.is-open {
	opacity: 1;
	pointer-events: auto;
}

.mhrsf-imglb__img {
	max-width: min(92vw, 900px);
	max-height: 80vh;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
	transform: scale(0.95);
	transition: transform 0.25s ease;
}

.mhrsf-imglb.is-open .mhrsf-imglb__img {
	transform: scale(1);
}

.mhrsf-imglb__cap {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.mhrsf-imgpick__box,
	.mhrsf-imglb,
	.mhrsf-imglb__img {
		transition: none !important;
	}
}

/* ============================================================
   انتخاب دو مرحله‌ای (گروه ← گزینه)
   ============================================================ */
.mhrsf-combo {
	position: relative;
}

/* عناصر مخفی همیشه مخفی بمانند */
.mhrsf-combo [hidden] {
	display: none !important;
}

/* ---------- دکمه‌ی باز کننده ---------- */
.mhrsf-combo .mhrsf-combo__trigger {
	all: unset;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	width: 100% !important;
	min-height: 50px !important;
	padding: 8px 14px !important;
	border: 1px solid rgba(0, 0, 0, 0.14) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #2a2f45 !important;
	font: inherit !important;
	font-size: 14px !important;
	line-height: 1.7 !important;
	text-align: start !important;
	cursor: pointer !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.mhrsf-combo .mhrsf-combo__trigger:hover {
	border-color: rgba(74, 108, 247, 0.5) !important;
}

.mhrsf-combo.is-open .mhrsf-combo__trigger,
.mhrsf-combo .mhrsf-combo__trigger:focus-visible {
	border-color: var(--mhrsf-main, #4a6cf7) !important;
	box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15) !important;
}

.mhrsf-combo__thumb {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.mhrsf-combo__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.mhrsf-combo .mhrsf-combo__text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #8a90a6 !important;
}

.mhrsf-combo.has-value .mhrsf-combo__text {
	color: #2a2f45 !important;
	font-weight: 700;
}

.mhrsf-combo__arrow {
	flex: 0 0 auto;
	display: flex;
	transition: transform 0.25s ease;
}

.mhrsf-combo__arrow svg {
	width: 20px;
	height: 20px;
	fill: #8a90a6;
}

.mhrsf-combo.is-open .mhrsf-combo__arrow {
	transform: rotate(180deg);
}

/* ---------- پنل ---------- */
.mhrsf-combo__panel {
	position: absolute;
	z-index: 60;
	inset-inline: 0;
	top: calc(100% + 8px);
	display: flex;
	flex-direction: column;
	max-height: 400px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 50px -18px rgba(20, 25, 45, 0.35);
	overflow: hidden;
	animation: mhrsf-combo-in 0.2s ease;
}

@keyframes mhrsf-combo-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* سربرگ: بازگشت + مسیر + بستن */
.mhrsf-combo__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: rgba(0, 0, 0, 0.02);
}

.mhrsf-combo .mhrsf-combo__back,
.mhrsf-combo .mhrsf-combo__close {
	all: unset;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	padding: 6px 10px !important;
	border-radius: 8px !important;
	background: rgba(0, 0, 0, 0.05) !important;
	color: #4a5068 !important;
	font: inherit !important;
	font-size: 12px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	transition: background-color 0.18s ease !important;
}

.mhrsf-combo .mhrsf-combo__back:hover,
.mhrsf-combo .mhrsf-combo__close:hover {
	background: rgba(0, 0, 0, 0.1) !important;
}

.mhrsf-combo .mhrsf-combo__back svg {
	width: 14px !important;
	height: 14px !important;
	fill: currentColor !important;
}

.mhrsf-combo .mhrsf-combo__close {
	font-size: 18px !important;
	padding: 2px 10px !important;
}

.mhrsf-combo__crumb {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 12px;
	font-weight: 700;
	color: #4a5068;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* بدنه */
.mhrsf-combo__body {
	overflow-y: auto;
	padding: 10px;
}

/* مرحله ۱ — لیست گروه‌ها */
.mhrsf-combo__body.is-step1 {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mhrsf-combo .mhrsf-combo__grow {
	all: unset;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	width: 100% !important;
	padding: 14px 14px !important;
	border: 1px solid rgba(0, 0, 0, 0.1) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #2a2f45 !important;
	font: inherit !important;
	cursor: pointer !important;
	transition: border-color 0.18s ease, background-color 0.18s ease !important;
}

.mhrsf-combo .mhrsf-combo__grow:hover {
	border-color: var(--mhrsf-main, #4a6cf7) !important;
	background: rgba(74, 108, 247, 0.04) !important;
}

.mhrsf-combo__grow-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: start;
}

.mhrsf-combo__grow-label {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
}

.mhrsf-combo__grow-count {
	font-size: 11px;
	opacity: 0.6;
}

.mhrsf-combo__grow-arrow {
	display: flex;
	flex: 0 0 auto;
}

.mhrsf-combo__grow-arrow svg {
	width: 18px;
	height: 18px;
	fill: #9aa0b5;
}

/* مرحله ۲ — گرید گزینه‌ها */
.mhrsf-combo__body.is-step2 {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	align-content: start;
	gap: 10px;
}

.mhrsf-combo .mhrsf-combo__opt {
	all: unset;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 10px 8px !important;
	border: 2px solid rgba(0, 0, 0, 0.1) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #2a2f45 !important;
	font: inherit !important;
	text-align: center !important;
	cursor: pointer !important;
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

.mhrsf-combo .mhrsf-combo__opt:hover {
	border-color: rgba(74, 108, 247, 0.55) !important;
	transform: translateY(-2px) !important;
}

.mhrsf-combo .mhrsf-combo__opt.is-selected {
	border-color: var(--mhrsf-main, #4a6cf7) !important;
	box-shadow: 0 6px 16px -8px var(--mhrsf-main, #4a6cf7) !important;
}

.mhrsf-combo__opt-img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.03);
	overflow: hidden;
}

.mhrsf-combo__opt-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.mhrsf-combo__opt-label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

.mhrsf-combo__opt-note {
	font-size: 11px;
	line-height: 1.6;
	opacity: 0.65;
}

/* ---------- موبایل: شیت از پایین ---------- */
@media (max-width: 767px) {
	.mhrsf-combo__panel {
		/* شیت از کف صفحه بالا می‌آید و تا لبه ادامه دارد */
		position: fixed;
		inset: auto 0 0 0;
		top: auto;
		max-height: 78vh;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -16px 44px -10px rgba(20, 25, 45, 0.45);
		animation: mhrsf-combo-up 0.24s ease;
		z-index: 100001;
	}

	/* گزینه‌ها بالاتر بنشینند تا دکمه‌های شناور رویشان نیفتد */
	.mhrsf-combo__body {
		padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
	}

	/* پس‌زمینه‌ی تیره تا پنل از بقیه صفحه جدا دیده شود */
	.mhrsf-combo.is-open::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 100000;
		background: rgba(15, 18, 32, 0.45);
		-webkit-backdrop-filter: blur(2px);
		backdrop-filter: blur(2px);
		animation: mhrsf-combo-fade 0.2s ease;
	}

	@keyframes mhrsf-combo-up {
		from { opacity: 0; transform: translateY(24px); }
		to   { opacity: 1; transform: translateY(0); }
	}

	.mhrsf-combo__head {
		padding: 12px;
	}

	.mhrsf-combo__body {
		padding: 12px;
	}

	.mhrsf-combo__body.is-step2 {
		grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
		gap: 8px;
	}

	.mhrsf-combo .mhrsf-combo__grow {
		padding: 16px 14px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mhrsf-combo__panel,
	.mhrsf-combo .mhrsf-combo__opt,
	.mhrsf-combo__arrow {
		animation: none !important;
		transition: none !important;
	}
}

/* ============================================================
   اصلاحات: مخفی‌سازی قطعی + پیش‌نمایش زیر فیلد
   (بعد از بلاک بالا می‌آید تا اولویت داشته باشد)
   ============================================================ */

/* هر عنصری که hidden دارد، حتی با armor، مخفی بماند */
.mhrsf-combo .mhrsf-combo__back[hidden],
.mhrsf-combo .mhrsf-combo__close[hidden],
.mhrsf-combo .mhrsf-combo__thumb[hidden],
.mhrsf-combo .mhrsf-combo__preview[hidden],
.mhrsf-combo .mhrsf-combo__panel[hidden],
.mhrsf-combo [hidden] {
	display: none !important;
}

/* ---------- پیش‌نمایش انتخاب، زیر فیلد ---------- */
.mhrsf-combo__preview {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.02);
	animation: mhrsf-combo-fade 0.25s ease;
}

@keyframes mhrsf-combo-fade {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.mhrsf-combo__preview-img {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 110px;
	height: 110px;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.mhrsf-combo__preview-img img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.mhrsf-combo__preview-txt {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.8;
	color: #2a2f45;
}

@media (max-width: 600px) {
	.mhrsf-combo__preview-img {
		width: 88px;
		height: 88px;
	}

	.mhrsf-combo__preview-txt {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mhrsf-combo__preview {
		animation: none !important;
	}
}

/* ============================================================
   هویت بصری فرم — «برگه‌ی چاپ»
   الهام از کار خود مشتری: کاغذ، نوار مرکب، و قلم هایلایت
   ============================================================ */

.mhrsf-scope {
	--mhrsf-accent: #ebc942;
	--mhrsf-paper: #f7f8fc;
	--mhrsf-hairline: rgba(41, 49, 124, 0.10);
}

/* ---------- کارت فرم ---------- */
.mhrsf-scope .mhrsf-form {   /* بریدگی خمیده گوشه — امضای طراحی باکس‌های مهرسام */

	position: relative !important;
	background:
		/* بافت خیلی ملایم خطوط مورب، مثل رگه‌ی کاغذ */
		repeating-linear-gradient(
			135deg,
			rgba(41, 49, 124, 0.028) 0px,
			rgba(41, 49, 124, 0.028) 1px,
			transparent 1px,
			transparent 9px
		),
		radial-gradient(120% 90% at 100% 0%, rgba(235, 201, 66, 0.10) 0%, transparent 46%),
		var(--mhrsf-card-bg, #fff) !important;
	border: 1px solid var(--mhrsf-hairline) !important;
	border-radius: var(--mhrsf-round) !important;
	padding: 34px 28px 28px !important;
	overflow: hidden !important;
}

/* نوار مرکب بالای برگه — امضای طراحی */
.mhrsf-scope .mhrsf-form::before {
	content: "";
	position: absolute;
	top: 0;
	inset-inline: 0;
	height: 5px;
	background: linear-gradient(
		to right,
		var(--mhrsf-line-outer, #ebc942) 0%,
		var(--mhrsf-line-outer, #ebc942) 50%,
		var(--mhrsf, #29317c) 50%,
		var(--mhrsf, #29317c) 100%
	);
	z-index: 2;
}


/* ---------- عنوان فرم: هایلایت قلمی ---------- */
.mhrsf-scope .mhrsf-form-header {
	text-align: center;
	margin-bottom: 22px;
}

.mhrsf-scope .mhrsf-form-title {
	position: relative !important;
	display: inline-block !important;
	border-bottom: 0 !important;
	text-align: center !important;
	margin: 0 0 6px !important;
	padding: 2px 10px !important;
	font-family: inherit !important;
	font-weight: 800 !important;
	font-size: clamp(20px, 2.4vw, 30px) !important;
	line-height: 1.9 !important;
	color: var(--mhrsf, #29317c) !important;
	letter-spacing: -0.2px !important;
	z-index: 1 !important;
}

/* نوار طلایی پشت عنوان، مثل قلم هایلایت */
.mhrsf-scope .mhrsf-form-title::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 8px;
	height: 0.42em;
	background: var(--mhrsf-accent, #ebc942);
	border-radius: 3px;
	z-index: -1;
	transform: skewX(-4deg);
}

/* خط جداکننده زیر عنوان، با نقطه طلایی */
.mhrsf-scope .mhrsf-form-title + hr,
.mhrsf-scope .mhrsf-form hr {
	border: 0 !important;
	height: 1px !important;
	margin: 18px 0 22px !important;
	background: linear-gradient(
		to left,
		var(--mhrsf-accent, #ebc942) 0,
		var(--mhrsf-accent, #ebc942) 54px,
		var(--mhrsf-hairline) 54px,
		var(--mhrsf-hairline) 100%
	) !important;
}

/* ---------- برچسب فیلدها ---------- */
.mhrsf-scope .mhrsf-label {
	font-weight: 700 !important;
	font-size: 13px !important;
	letter-spacing: 0.1px !important;
	color: var(--mhrsf-ink, #1c2140) !important;
}

.mhrsf-scope .mhrsf-req {
	color: var(--mhrsf-accent, #ebc942) !important;
	font-size: 15px !important;
	line-height: 1 !important;
}

/* ---------- ورودی‌ها ---------- */
.mhrsf-scope .mhrsf-control {
	background: var(--mhrsf-paper) !important;
	border: 1px solid var(--mhrsf-hairline) !important;
	border-radius: 12px !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.mhrsf-scope .mhrsf-control:hover {
	border-color: rgba(41, 49, 124, 0.22) !important;
}

.mhrsf-scope .mhrsf-control:focus,
.mhrsf-scope .mhrsf-control:focus-visible {
	background: #fff !important;
	border-color: var(--mhrsf, #29317c) !important;
	box-shadow: 0 0 0 3px rgba(235, 201, 66, 0.35) !important;
	outline: none !important;
}

/* ---------- دکمه ثبت: مثل دکمه‌ی «تماس با ما» سایت ---------- */
.mhrsf-scope .mhrsf-submit,
.mhrsf-scope button.mhrsf-submit,
.mhrsf-pp-overlay .mhrsf-pp-submit,
.mhrsf-pp-overlay button.mhrsf-pp-submit,
.mhrsf-pp-overlay .mhrsf-pp-ok,
.mhrsf-pp-overlay button.mhrsf-pp-ok {
	position: relative !important;
	border-radius: 999px !important;
	padding: 14px 38px !important;
	font-weight: 800 !important;
	letter-spacing: 0.2px !important;
	background: var(--mhrsf-btn, #ebc942) !important;
	background-image: none !important;
	color: var(--mhrsf-btn-ink, #29317c) !important;
	border: 2px solid var(--mhrsf-btn, #ebc942) !important;
	box-shadow: 0 10px 24px -12px var(--mhrsf-btn, #ebc942) !important;
	transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease,
		transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease !important;
}

.mhrsf-scope .mhrsf-submit:hover:not(:disabled),
.mhrsf-scope button.mhrsf-submit:hover:not(:disabled),
.mhrsf-pp-overlay .mhrsf-pp-submit:hover:not(:disabled),
.mhrsf-pp-overlay .mhrsf-pp-ok:hover:not(:disabled) {
	background: var(--mhrsf-btn-hover, #29317c) !important;
	border-color: var(--mhrsf-btn-hover, #29317c) !important;
	color: var(--mhrsf-btn-ink-hover, #ffffff) !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 14px 28px -12px var(--mhrsf-btn-hover, #29317c) !important;
}

.mhrsf-scope .mhrsf-submit .mhrsf-submit-icon,
.mhrsf-pp-overlay .mhrsf-pp-submit .mhrsf-submit-icon {
	color: currentColor !important;
	stroke: currentColor !important;
}

/* ---------- گزینه‌های رادیو و چک‌باکس ---------- */
.mhrsf-scope .mhrsf-choice {
	border: 1px solid var(--mhrsf-hairline) !important;
	background: var(--mhrsf-paper) !important;
	transition: border-color 0.2s ease, background-color 0.2s ease !important;
}

.mhrsf-scope .mhrsf-choice:hover {
	border-color: var(--mhrsf-accent, #ebc942) !important;
	background: #fff !important;
}

/* ---------- موبایل ---------- */
@media (max-width: 600px) {
	.mhrsf-scope .mhrsf-form {
		padding: 26px 16px 20px !important;
	}

	.mhrsf-scope .mhrsf-form-title {
		font-size: clamp(17px, 5vw, 22px) !important;
		padding: 2px 8px !important;
	}

	.mhrsf-scope .mhrsf-submit {
		width: 100% !important;
		padding: 14px 24px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mhrsf-scope .mhrsf-submit,
	.mhrsf-scope .mhrsf-submit::before,
	.mhrsf-scope .mhrsf-control {
		transition: none !important;
	}

	.mhrsf-scope .mhrsf-submit:hover {
		transform: none !important;
	}
}

/* ============================================================
   پاپ‌آپ: همان هویت کارت اصلی (تورفتگی گرد + نوار مرکب + بافت)
   ============================================================ */
.mhrsf-pp-overlay .mhrsf-pp {

	position: relative !important;
	background:
		repeating-linear-gradient(
			135deg,
			rgba(41, 49, 124, 0.028) 0px,
			rgba(41, 49, 124, 0.028) 1px,
			transparent 1px,
			transparent 9px
		),
		radial-gradient(120% 90% at 100% 0%, rgba(235, 201, 66, 0.10) 0%, transparent 46%),
		#fff !important;
	border-radius: 24px !important;
	overflow: hidden !important;
}

.mhrsf-pp-overlay .mhrsf-pp::before {
	content: "";
	position: absolute;
	top: 0;
	inset-inline: 0;
	height: 5px;
	background: linear-gradient(
		to right,
		var(--mhrsf-line-outer, #ebc942) 0%,
		var(--mhrsf-line-outer, #ebc942) 50%,
		var(--mhrsf, #29317c) 50%,
		var(--mhrsf, #29317c) 100%
	);
	z-index: 2;
}


@media (max-width: 600px) {
	.mhrsf-pp-overlay .mhrsf-pp {
	}
}

/* ============================================================
   اصلاحات پاپ‌آپ + دکمه‌ی ثبت با استایل دکمه‌ی تماس سایت
   ============================================================ */

/* دکمه‌ی بستن پاپ‌آپ از روی تورفتگی کنار می‌رود */
.mhrsf-pp-overlay .mhrsf-pp-close,
.mhrsf-pp-overlay button.mhrsf-pp-close {
	left: auto !important;
	right: 16px !important;
	z-index: 5 !important;
}

/* سربرگ پاپ‌آپ کمی پایین‌تر تا با نوار بالا و تورفتگی برخورد نکند */
.mhrsf-pp-overlay .mhrsf-pp-head {
	margin-top: 8px !important;
}

/* ---------- دکمه‌ی ثبت: دقیقاً مثل دکمه‌ی «تماس با ما» سایت ---------- */
.mhrsf-scope .mhrsf-submit,
.mhrsf-scope button.mhrsf-submit,
.mhrsf-pp-overlay .mhrsf-pp-submit,
.mhrsf-pp-overlay button.mhrsf-pp-submit,
.mhrsf-pp-overlay .mhrsf-pp-ok,
.mhrsf-pp-overlay button.mhrsf-pp-ok {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: auto !important;
	max-width: none !important;
	height: 42px !important;
	min-height: 0 !important;
	padding: 0 22px !important;
	margin: 0 auto !important;
	border: 2px solid var(--mhrsf-btn-ink, #ebc547) !important;
	border-radius: 50px !important;
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--mhrsf-btn, #2e2a6e) 88%, #fff) 0%,
		var(--mhrsf-btn, #2e2a6e) 55%,
		color-mix(in srgb, var(--mhrsf-btn, #2e2a6e) 84%, #000) 100%
	) !important;
	color: var(--mhrsf-btn-ink, #ebc547) !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(36, 31, 94, 0.30) !important;
	transform: none !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

/* فالبک برای مرورگرهای بدون color-mix */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
	.mhrsf-scope .mhrsf-submit,
	.mhrsf-pp-overlay .mhrsf-pp-submit,
	.mhrsf-pp-overlay .mhrsf-pp-ok {
		background: var(--mhrsf-btn, #2e2a6e) !important;
	}
}

.mhrsf-scope .mhrsf-submit:hover:not(:disabled),
.mhrsf-scope button.mhrsf-submit:hover:not(:disabled),
.mhrsf-pp-overlay .mhrsf-pp-submit:hover:not(:disabled),
.mhrsf-pp-overlay .mhrsf-pp-ok:hover:not(:disabled) {
	background: var(--mhrsf-btn-hover, #ebc547) !important;
	border-color: var(--mhrsf-btn-hover, #ebc547) !important;
	color: var(--mhrsf-btn-ink-hover, #2e2a6e) !important;
	transform: none !important;
	box-shadow: 0 6px 18px rgba(235, 197, 71, 0.35) !important;
}

/* آیکون داخل دکمه هم‌رنگ متن */
.mhrsf-scope .mhrsf-submit .mhrsf-submit-icon,
.mhrsf-pp-overlay .mhrsf-pp-submit .mhrsf-submit-icon {
	width: 18px !important;
	height: 18px !important;
	color: currentColor !important;
	stroke: currentColor !important;
	fill: none !important;
	transform: none !important;
}

.mhrsf-scope .mhrsf-submit:hover .mhrsf-submit-icon {
	transform: none !important;
}

/* ردیف دکمه وسط‌چین بماند */
.mhrsf-scope .mhrsf-form-footer,
.mhrsf-pp-overlay .mhrsf-pp-actions {
	display: flex !important;
	justify-content: center !important;
}

@media (max-width: 767px) {
	.mhrsf-scope .mhrsf-submit,
	.mhrsf-pp-overlay .mhrsf-pp-submit,
	.mhrsf-pp-overlay .mhrsf-pp-ok {
		height: 38px !important;
		padding: 0 18px !important;
		gap: 6px !important;
		font-size: 13px !important;
		width: auto !important;
	}

	.mhrsf-scope .mhrsf-submit .mhrsf-submit-icon,
	.mhrsf-pp-overlay .mhrsf-pp-submit .mhrsf-submit-icon {
		width: 16px !important;
		height: 16px !important;
	}
}

/* ============================================================
   نسخه نهایی: چهار گوشه یکسان + خط بالا نیم‌طلایی نیم‌سرمه‌ای
   (آخرین بلاک فایل است تا بر همه‌ی قوانین قبلی اولویت داشته باشد)
   ============================================================ */

.mhrsf-scope .mhrsf-form,
.mhrsf-pp-overlay .mhrsf-pp {
	--mhrsf-stroke: 5px;

	/* هیچ ماسک، بریدگی یا قوس نامتقارنی وجود ندارد */
	-webkit-mask: none !important;
	mask: none !important;
	-webkit-mask-composite: unset !important;
	mask-composite: unset !important;
	clip-path: none !important;

	/* هر چهار گوشه دقیقاً یکسان */
	border-radius: var(--mhrsf-round) !important;
	border-start-start-radius: var(--mhrsf-round) !important;
	border-start-end-radius: var(--mhrsf-round) !important;
	border-end-start-radius: var(--mhrsf-round) !important;
	border-end-end-radius: var(--mhrsf-round) !important;
	overflow: hidden !important;
}

/* خط بالای کارت: نیمه‌ی سمت چپ طلایی، نیمه‌ی سمت راست سرمه‌ای */
.mhrsf-scope .mhrsf-form::before,
.mhrsf-pp-overlay .mhrsf-pp::before {
	content: "" !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	inset-inline: auto !important;
	width: auto !important;
	height: var(--mhrsf-stroke) !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: linear-gradient(
		to right,
		var(--mhrsf-line-outer, #ebc942) 0%,
		var(--mhrsf-line-outer, #ebc942) 50%,
		var(--mhrsf, #29317c) 50%,
		var(--mhrsf, #29317c) 100%
	) !important;
	transform: none !important;
	z-index: 3 !important;
}

/* هیچ عنصر اضافه‌ای روی گوشه‌ها باقی نماند */
.mhrsf-scope .mhrsf-form::after,
.mhrsf-pp-overlay .mhrsf-pp::after {
	content: none !important;
	display: none !important;
}

@media (max-width: 600px) {
	.mhrsf-scope .mhrsf-form,
	.mhrsf-pp-overlay .mhrsf-pp {
		--mhrsf-stroke: 4px;
	}
}

/* ============================================================
   گردی گوشه از تنظیمات + حالت ساده
   ============================================================ */

/* گردی گوشه‌ها از تنظیمات خوانده می‌شود (پیش‌فرض ۲۲) */
.mhrsf-scope .mhrsf-form,
.mhrsf-pp-overlay .mhrsf-pp {
	border-radius: var(--mhrsf-round, 22px) !important;
	border-start-start-radius: var(--mhrsf-round, 22px) !important;
	border-start-end-radius: var(--mhrsf-round, 22px) !important;
	border-end-start-radius: var(--mhrsf-round, 22px) !important;
	border-end-end-radius: var(--mhrsf-round, 22px) !important;
}

/* ---------- حالت ساده: بدون نوار رنگی، بدون هایلایت، بدون بافت ---------- */
.mhrsf-skin-plain .mhrsf-form,
.mhrsf-skin-plain .mhrsf-pp {
	background: var(--mhrsf-card-bg, #fff) !important;
}

.mhrsf-skin-plain .mhrsf-form::before,
.mhrsf-skin-plain .mhrsf-form::after,
.mhrsf-skin-plain .mhrsf-pp::before,
.mhrsf-skin-plain .mhrsf-pp::after {
	content: none !important;
	display: none !important;
}

/* عنوان بدون هایلایت طلایی */
.mhrsf-skin-plain .mhrsf-form-title::after {
	display: none !important;
}

.mhrsf-skin-plain .mhrsf-form-title {
	padding: 0 !important;
	color: var(--mhrsf-ink, #1c2140) !important;
}

.mhrsf-skin-plain .mhrsf-form hr {
	background: var(--mhrsf-hairline, rgba(41, 49, 124, 0.10)) !important;
}

/* گردی گوشه از تنظیمات — آخرین قانون فایل تا بر قالب‌های آماده اولویت داشته باشد */
.mhrsf-scope .mhrsf-form,
.mhrsf-scope .mhrsf-pp,
.mhrsf-style-modern .mhrsf-form,
.mhrsf-style-minimal .mhrsf-form,
.mhrsf-style-glass .mhrsf-form,
.mhrsf-style-soft .mhrsf-form,
.mhrsf-style-modern .mhrsf-pp,
.mhrsf-style-minimal .mhrsf-pp,
.mhrsf-style-glass .mhrsf-pp,
.mhrsf-style-soft .mhrsf-pp {
	border-radius: var(--mhrsf-round, 22px) !important;
	border-start-start-radius: var(--mhrsf-round, 22px) !important;
	border-start-end-radius: var(--mhrsf-round, 22px) !important;
	border-end-start-radius: var(--mhrsf-round, 22px) !important;
	border-end-end-radius: var(--mhrsf-round, 22px) !important;
}

/* ============================================================
   خط دور کارت: نیمه‌ی چپ طلایی، نیمه‌ی راست سرمه‌ای
   دور تا دور و روی هر چهار گوشه‌ی گرد
   ============================================================ */

.mhrsf-scope .mhrsf-form,
.mhrsf-scope .mhrsf-pp {
	position: relative !important;
	border-color: transparent !important;
}

/* نوار بالای قبلی دیگر لازم نیست */
.mhrsf-scope .mhrsf-form::before,
.mhrsf-scope .mhrsf-pp::before {
	content: none !important;
	display: none !important;
}

/* خط دور تا دور با گرادیان دو رنگ، دقیقاً روی گردی گوشه‌ها */
.mhrsf-scope .mhrsf-form::after,
.mhrsf-scope .mhrsf-pp::after {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	inset: 0 !important;
	width: auto !important;
	height: auto !important;
	transform: none !important;
	border: 0 !important;
	border-radius: inherit !important;
	padding: var(--mhrsf-stroke, 4px) !important;
	background: linear-gradient(
		to right,
		var(--mhrsf-line-outer, #ebc942) 0%,
		var(--mhrsf-line-outer, #ebc942) 50%,
		var(--mhrsf, #29317c) 50%,
		var(--mhrsf, #29317c) 100%
	) !important;
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0) !important;
	-webkit-mask-composite: xor !important;
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0) !important;
	mask-composite: exclude !important;
	pointer-events: none !important;
	z-index: 4 !important;
}

/* در حالت ساده، خط دور هم برداشته می‌شود */
.mhrsf-skin-plain .mhrsf-form::after,
.mhrsf-skin-plain .mhrsf-pp::after {
	content: none !important;
	display: none !important;
}

.mhrsf-scope .mhrsf-form,
.mhrsf-scope .mhrsf-pp {
	--mhrsf-stroke: 4px;
}

@media (max-width: 600px) {
	.mhrsf-scope .mhrsf-form,
	.mhrsf-scope .mhrsf-pp {
		--mhrsf-stroke: 3px;
	}
}

/* ============================================================
   خط دور کارت: تک‌رنگ سرمه‌ای + دکمه‌ی بزرگ‌تر
   ============================================================ */

.mhrsf-scope .mhrsf-form::after,
.mhrsf-scope .mhrsf-pp::after {
	background: var(--mhrsf, #29317c) !important;
}

/* دکمه‌ی ثبت — بزرگ‌تر و خواناتر */
.mhrsf-scope .mhrsf-submit,
.mhrsf-scope button.mhrsf-submit,
.mhrsf-pp-overlay .mhrsf-pp-submit,
.mhrsf-pp-overlay button.mhrsf-pp-submit,
.mhrsf-pp-overlay .mhrsf-pp-ok,
.mhrsf-pp-overlay button.mhrsf-pp-ok {
	height: 60px !important;
	min-height: 60px !important;
	padding: 0 46px !important;
	font-size: 18px !important;
	gap: 12px !important;
	border-width: 2px !important;
}

.mhrsf-scope .mhrsf-submit .mhrsf-submit-icon,
.mhrsf-pp-overlay .mhrsf-pp-submit .mhrsf-submit-icon {
	width: 22px !important;
	height: 22px !important;
}

@media (max-width: 600px) {
	.mhrsf-scope .mhrsf-submit,
	.mhrsf-pp-overlay .mhrsf-pp-submit,
	.mhrsf-pp-overlay .mhrsf-pp-ok {
		height: 52px !important;
		min-height: 52px !important;
		padding: 0 30px !important;
		font-size: 16px !important;
		gap: 10px !important;
	}

	.mhrsf-scope .mhrsf-submit .mhrsf-submit-icon,
	.mhrsf-pp-overlay .mhrsf-pp-submit .mhrsf-submit-icon {
		width: 20px !important;
		height: 20px !important;
	}
}

/* ============================================================
   رنگ دکمه: دقیقاً همان چیزی که کاربر انتخاب می‌کند
   (آخرین قانون فایل تا بر همه‌ی قوانین قبلی اولویت داشته باشد)
   ============================================================ */

.mhrsf-scope .mhrsf-submit,
.mhrsf-scope button.mhrsf-submit,
.mhrsf-scope .mhrsf-pp-submit,
.mhrsf-scope button.mhrsf-pp-submit,
.mhrsf-scope .mhrsf-pp-ok,
.mhrsf-pp-overlay .mhrsf-pp-submit,
.mhrsf-pp-overlay button.mhrsf-pp-submit,
.mhrsf-pp-overlay .mhrsf-pp-ok {
	background: var(--mhrsf-btn, #2e2a6e) !important;
	background-image: none !important;
	background-color: var(--mhrsf-btn, #2e2a6e) !important;
	color: var(--mhrsf-btn-ink, #ebc547) !important;
	border-color: var(--mhrsf-btn-bd, var(--mhrsf-btn-ink, #ebc547)) !important;
}

/* گرادیان اختیاری (فقط اگر در تنظیمات روشن باشد) */
.mhrsf-btn-grad .mhrsf-submit,
.mhrsf-btn-grad .mhrsf-pp-submit,
.mhrsf-btn-grad .mhrsf-pp-ok {
	background-image: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.16) 0%,
		rgba(255, 255, 255, 0) 55%,
		rgba(0, 0, 0, 0.12) 100%
	) !important;
}

/* هاور */
.mhrsf-scope .mhrsf-submit:hover:not(:disabled),
.mhrsf-scope button.mhrsf-submit:hover:not(:disabled),
.mhrsf-scope .mhrsf-pp-submit:hover:not(:disabled),
.mhrsf-pp-overlay .mhrsf-pp-submit:hover:not(:disabled),
.mhrsf-pp-overlay .mhrsf-pp-ok:hover:not(:disabled) {
	background: var(--mhrsf-btn-hover, #ebc547) !important;
	background-color: var(--mhrsf-btn-hover, #ebc547) !important;
	color: var(--mhrsf-btn-ink-hover, #2e2a6e) !important;
	border-color: var(--mhrsf-btn-bd-hover, var(--mhrsf-btn-hover, #ebc547)) !important;
}

/* متن و آیکون همیشه هم‌رنگ دکمه */
.mhrsf-scope .mhrsf-submit .mhrsf-submit-label,
.mhrsf-scope .mhrsf-submit .mhrsf-submit-icon,
.mhrsf-pp-overlay .mhrsf-pp-submit .mhrsf-submit-label,
.mhrsf-pp-overlay .mhrsf-pp-submit .mhrsf-submit-icon {
	color: inherit !important;
	stroke: currentColor !important;
	fill: none !important;
}

/* ============================================================
   توضیح کوتاه زیر عنوان + خط دور کارت از تنظیمات
   ============================================================ */

.mhrsf-scope .mhrsf-form-subtitle {
	margin: 10px 0 0 !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	line-height: 2 !important;
	color: var(--mhrsf-ink, #1c2140) !important;
	opacity: 0.75;
	text-align: center !important;
}

/* خط دور کارت رنگش را از تنظیم «رنگ خط دور کارت» می‌گیرد */
.mhrsf-scope .mhrsf-form::after,
.mhrsf-scope .mhrsf-pp::after {
	background: var(--mhrsf-line-outer, #29317c) !important;
}

@media (max-width: 600px) {
	.mhrsf-scope .mhrsf-form-subtitle {
		font-size: 13px !important;
	}
}

/* دکمه‌ی پاپ‌آپ دقیقاً وسط — آخرین قانون فایل */
.mhrsf-pp-overlay .mhrsf-pp .mhrsf-pp-submit,
.mhrsf-pp-overlay .mhrsf-pp button.mhrsf-pp-submit,
.mhrsf-scope .mhrsf-pp .mhrsf-pp-submit {
	display: flex !important;
	margin-left: auto !important;
	margin-right: auto !important;
	align-self: center !important;
	float: none !important;
	inset-inline: auto !important;
}

/* فهرست تصاویر گزینه‌ها برای خوانده شدن توسط ابزارهای سئو
   (در صفحه دیده نمی‌شود ولی از DOM حذف نمی‌شود) */
.mhrsf-combo__index {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	pointer-events: none;
}

.mhrsf-combo__index img {
	width: 1px;
	height: 1px;
}

/* ============================================================
   تأیید تصویر + دکمه‌ی راهنمایی + راهنمای زیر فیلد
   ============================================================ */

/* ---------- راهنمای زیر فیلد ---------- */
.mhrsf-hint {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	font-size: 12px;
	line-height: 1.9;
	opacity: 0.75;
}

.mhrsf-hint::before {
	content: "";
	flex: 0 0 auto;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--mhrsf-accent, #ebc942);
}

/* ---------- دکمه‌ی راهنمایی کنار دکمه‌ی ثبت ---------- */
.mhrsf-form-footer.has-help {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.mhrsf-scope .mhrsf-help-btn {
	all: unset;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	height: 60px !important;
	padding: 0 30px !important;
	border: 2px solid var(--mhrsf, #29317c) !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--mhrsf, #29317c) !important;
	font: inherit !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	transition: background-color 0.22s ease, color 0.22s ease !important;
}

.mhrsf-scope .mhrsf-help-btn:hover {
	background: var(--mhrsf, #29317c) !important;
	color: #fff !important;
}

.mhrsf-scope .mhrsf-help-btn .mhrsf-help-icon {
	width: 20px !important;
	height: 20px !important;
	flex: 0 0 auto;
}

.mhrsf-pp-desc {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 2;
	opacity: 0.75;
	text-align: center;
}

/* ---------- پنجره‌ی تأیید تصویر ---------- */
.mhrsf-confirm {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(18, 20, 32, 0.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.mhrsf-confirm.is-open {
	opacity: 1;
	pointer-events: auto;
}

.mhrsf-confirm__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: min(94vw, 560px);
	max-height: 92vh;
	padding: 20px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 70px -20px rgba(20, 25, 45, 0.5);
	transform: scale(0.96);
	transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
	overflow: auto;
}

.mhrsf-confirm.is-open .mhrsf-confirm__card {
	transform: scale(1);
}

.mhrsf-confirm__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: 52vh;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.03);
	overflow: hidden;
}

.mhrsf-confirm__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.mhrsf-confirm__cap {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.8;
	text-align: center;
	color: #1c2140;
}

.mhrsf-confirm__note {
	font-size: 13px;
	line-height: 1.9;
	text-align: center;
	opacity: 0.7;
}

.mhrsf-confirm__actions {
	display: flex;
	gap: 10px;
	width: 100%;
	margin-top: 4px;
}

.mhrsf-confirm .mhrsf-confirm__ok,
.mhrsf-confirm .mhrsf-confirm__cancel {
	all: unset;
	box-sizing: border-box !important;
	flex: 1 1 auto;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 50px !important;
	border-radius: 999px !important;
	font: inherit !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease, color 0.2s ease !important;
}

.mhrsf-confirm .mhrsf-confirm__ok {
	background: var(--mhrsf-btn, #29317c) !important;
	color: var(--mhrsf-btn-ink, #ebc942) !important;
	border: 2px solid var(--mhrsf-btn-bd, #ebc942) !important;
}

.mhrsf-confirm .mhrsf-confirm__ok:hover {
	background: var(--mhrsf-btn-hover, #ebc942) !important;
	color: var(--mhrsf-btn-ink-hover, #29317c) !important;
}

.mhrsf-confirm .mhrsf-confirm__cancel {
	background: rgba(0, 0, 0, 0.06) !important;
	color: #4a5068 !important;
}

.mhrsf-confirm .mhrsf-confirm__cancel:hover {
	background: rgba(0, 0, 0, 0.12) !important;
}

@media (max-width: 600px) {
	.mhrsf-scope .mhrsf-help-btn {
		height: 52px !important;
		padding: 0 22px !important;
		font-size: 14px !important;
		width: 100%;
	}

	.mhrsf-confirm__card {
		padding: 14px;
		gap: 10px;
	}

	.mhrsf-confirm__cap {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mhrsf-confirm,
	.mhrsf-confirm__card {
		transition: none !important;
	}
}

/* ============================================================
   تراز نهایی دکمه‌ها: وسط‌چین در پاپ‌آپ‌ها و هم‌اندازه در فوتر فرم
   ============================================================ */

/* ---------- همه‌ی دکمه‌های داخل پاپ‌آپ‌ها وسط‌چین ---------- */
.mhrsf-pp-overlay .mhrsf-pp {
	text-align: center;
}

.mhrsf-pp-overlay .mhrsf-pp .mhrsf-submit,
.mhrsf-pp-overlay .mhrsf-pp .mhrsf-pp-submit,
.mhrsf-pp-overlay .mhrsf-pp .mhrsf-help-submit,
.mhrsf-pp-overlay .mhrsf-pp .mhrsf-pp-ok {
	display: inline-flex !important;
	float: none !important;
	margin: 18px auto 0 !important;
	inset-inline: auto !important;
	align-self: center !important;
}

/* محتوای پاپ‌آپ راست‌چین می‌ماند، فقط دکمه وسط است */
.mhrsf-pp-overlay .mhrsf-pp .mhrsf-form-grid,
.mhrsf-pp-overlay .mhrsf-pp .mhrsf-field {
	text-align: start;
}

/* ---------- فوتر فرم: دو دکمه هم‌اندازه و هم‌تراز ---------- */
.mhrsf-scope .mhrsf-form-footer.has-help {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
	justify-content: center !important;
	gap: 14px !important;
	margin-top: 22px !important;
}

.mhrsf-scope .mhrsf-form-footer.has-help .mhrsf-submit,
.mhrsf-scope .mhrsf-form-footer.has-help .mhrsf-help-btn {
	/* هر دو دقیقاً هم‌ارتفاع و هم‌عرض */
	flex: 0 1 260px !important;
	height: 58px !important;
	min-height: 58px !important;
	margin: 0 !important;
	padding: 0 24px !important;
	font-size: 16px !important;
	border-radius: 999px !important;
	box-sizing: border-box !important;
}

.mhrsf-scope .mhrsf-form-footer.has-help .mhrsf-submit .mhrsf-submit-icon,
.mhrsf-scope .mhrsf-form-footer.has-help .mhrsf-help-btn .mhrsf-help-icon {
	width: 19px !important;
	height: 19px !important;
	flex: 0 0 auto !important;
}

/* اگر دکمه‌ی راهنمایی نباشد، دکمه‌ی ثبت وسط بماند */
.mhrsf-scope .mhrsf-form-footer {
	display: flex !important;
	justify-content: center !important;
}

@media (max-width: 600px) {
	.mhrsf-scope .mhrsf-form-footer.has-help {
		gap: 10px !important;
	}

	.mhrsf-scope .mhrsf-form-footer.has-help .mhrsf-submit,
	.mhrsf-scope .mhrsf-form-footer.has-help .mhrsf-help-btn {
		flex: 1 1 100% !important;
		height: 52px !important;
		min-height: 52px !important;
		font-size: 14px !important;
	}

	.mhrsf-pp-overlay .mhrsf-pp .mhrsf-submit,
	.mhrsf-pp-overlay .mhrsf-pp .mhrsf-pp-submit,
	.mhrsf-pp-overlay .mhrsf-pp .mhrsf-help-submit {
		width: auto !important;
		margin: 16px auto 0 !important;
	}
}

/* ============================================================
   فیلد وابسته در حالت انتظار + بزرگ‌تر شدن تصویر تأیید
   ============================================================ */

/* گزینه‌ها دیده می‌شوند ولی تا انتخاب فیلد مرجع غیرفعال‌اند */
.mhrsf-field.mhrsf-optmap-wait {
	opacity: 0.55;
}

.mhrsf-field.mhrsf-optmap-wait .mhrsf-choices,
.mhrsf-field.mhrsf-optmap-wait .mhrsf-choice,
.mhrsf-field.mhrsf-optmap-wait .mhrsf-select-wrap,
.mhrsf-field.mhrsf-optmap-wait .mhrsf-control {
	pointer-events: none !important;
	cursor: not-allowed !important;
}

/* تصویر پنجره‌ی تأیید — فقط ۵ درصد بزرگ‌تر از حالت اولیه */
.mhrsf-confirm__card {
	width: min(94vw, 560px);
}

.mhrsf-confirm__stage {
	max-height: 52vh;
}

.mhrsf-confirm__img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transform: scale(1.05);
	transform-origin: center;
}

@media (max-width: 600px) {
	.mhrsf-confirm__img {
		transform: scale(1.03);
	}
}
