/* =====================================================
   🎨 بیمه معلم — استایل صفحات محتوا (خبر + فرم)
   
   📖 راهنمای کلی:
   این فایل به ۹ بخش تقسیم شده. هر بخش با کامنت مشخصه.
   برای ویرایش هر بخش، فقط همون بخش رو تغییر بدید.
   از تغییر بخش‌های دیگه خودداری کنید.
   
   🔧 برای تغییر رنگ‌ها → بخش ۱ (:root)
   🔧 برای تغییر فونت → بخش ۲
   🔧 برای تغییر Breadcrumb → بخش ۵
   🔧 برای تغییر صفحه خبر → بخش ۶
   🔧 برای تغییر فرم → بخش ۷
   ===================================================== */


/* =====================================================
   ۱️⃣ متغیرهای رنگی — محل اصلی تغییر رنگ برند
   
   🔧 برای تغییر رنگ برند: فقط --brand و --brand-hover رو عوض کنید
   🔧 برای تغییر رنگ خطا: --error رو عوض کنید
   🔧 برای تغییر رنگ موفقیت: --success رو عوض کنید
   
   ⚠️ هشدار: اسم متغیرها رو عوض نکنید، فقط مقدارشون رو
   ===================================================== */
:root {
  /* --- رنگ‌های پایه --- */
  --bg: #FFFFFF;
  --text: #0A0A0A;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  /* --- رنگ برند (اینجا رو عوض کنید) --- */
  --brand: #2563EB;
  --brand-light: #EFF6FF;
  --brand-hover: #1D4ED8;

  /* --- رنگ‌های وضعیت --- */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --error: #EF4444;
  --error-bg: #FEF2F2;

  /* --- خطوط و پس‌زمینه --- */
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --hover-bg: #F9FAFB;

  /* --- سایه‌ها --- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(37, 99, 235, 0.12);

  /* --- گردی گوشه‌ها --- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* --- سرعت انیمیشن --- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;

  /* --- اندازه‌های صفحه --- */
  --article-max: 760px;   /* عرض متن خبر */
  --form-max: 640px;      /* عرض فرم */
}


/* =====================================================
   ۲️⃣ ریست پایه — همه مرورگرها یکسان
   
   ⚠️ این بخش رو دست نزنید مگر مطمئن باشید
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
p.img_caption {
    display:none;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }


/* =====================================================
   ۳️⃣ انیمیشن‌ها
   ===================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* =====================================================
   🔷 هدر و منو — کپی از صفحه اصلی
   
   ⚠️ این بخش برای استایل هدر و منوی ناوبری هست
   ===================================================== */

/* ---------- هدر ---------- */
.header {
  position: sticky;
  top: 0;
  height: 72px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  position: relative;
  list-style: none;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: 10px;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.menu-link:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.menu-link .chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
  opacity: 0.6;
}

.menu-item:hover .chevron {
  transform: rotate(180deg);
}

/* ---------- مگا منو ---------- */
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 50%;
  transform: translateX(50%) translateY(-8px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-modal);
  display: grid;
  grid-template-columns: repeat(4, 220px);
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 200;
}

.menu-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

.mega-col {
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mega-col:hover {
  background: var(--hover-bg);
}

.mega-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.mega-col-title:hover {
  color: var(--brand);
}

.mega-col-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.mega-col:hover .mega-col-icon {
  background: var(--brand);
  color: white;
}

.mega-col-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.mega-col-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-col-links a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.5;
  text-decoration: none;
}

.mega-col-links a:hover {
  background: var(--brand-light);
  color: var(--brand);
  padding-right: 14px;
}

/* ---------- دراپ‌داون ---------- */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 50%;
  transform: translateX(50%) translateY(-8px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 200;
}

.menu-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  border-radius: 10px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.dropdown-menu a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.dropdown-menu a:hover::before {
  background: var(--brand);
}

/* ---------- اکشن‌های هدر ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.support-btn:hover {
  background: var(--brand);
  color: white;
}

.support-btn svg {
  width: 16px;
  height: 16px;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle:hover {
  background: var(--hover-bg);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}


/* =====================================================
   📱 منوی موبایل
   ===================================================== */

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  z-index: 300;
  animation: fadeIn var(--transition-base);
}

.mobile-drawer.active {
  display: block;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 90%;
  background: var(--bg);
  padding: 20px;
  overflow-y: auto;
  animation: slideInRight var(--transition-slow);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
  transition: background var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-drawer-close:hover {
  background: var(--hover-bg);
}

.mobile-menu-section {
  margin-bottom: 16px;
}

.mobile-menu-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 0 8px;
  letter-spacing: 0.05em;
}

.mobile-menu-group {
  background: var(--hover-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}

.mobile-menu-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-menu-group-title .mega-col-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

.mobile-menu-group-title .mega-col-icon svg {
  width: 15px;
  height: 15px;
}

.mobile-menu-links {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mobile-menu-links a {
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mobile-menu-links a:hover {
  background: var(--bg);
  color: var(--brand);
}

.mobile-menu-simple {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-simple a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 10px;
  transition: background var(--transition-fast);
  text-decoration: none;
}

.mobile-menu-simple a:hover {
  background: var(--hover-bg);
}


/* =====================================================
   📱 ریسپانسیو منو
   ===================================================== */

@media (min-width: 1024px) and (max-width: 1279px) {
  .mega-menu { grid-template-columns: repeat(2, 220px); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .main-menu { display: none; }
  .mobile-toggle { display: flex; }
}

@media (max-width: 767px) {
  .header { padding: 0 16px; height: 64px; }
  .logo img { height: 38px; }
  .main-menu { display: none; }
  .mobile-toggle { display: flex; }
  .support-btn span { display: none; }
  .support-btn { padding: 8px 10px; }
}


/* =====================================================
   ۴️⃣ هدر — کپی از صفحه اصلی
   
   ⚠️ اگر صفحه اصلی رو تغییر دادید، اینجا هم به‌روز کنید
   ===================================================== */
.header {
  position: sticky;
  top: 0;
  height: 72px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hover));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong { font-size: 15px; font-weight: 700; }
.logo-text span { font-size: 11px; color: var(--text-muted); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.support-btn:hover { background: var(--brand); color: white; }
.support-btn svg { width: 16px; height: 16px; }


/* =====================================================
   ۵️⃣ Breadcrumb (مسیر راهنما)
   
   🔧 برای تغییر فونت/رنگ Breadcrumb، همین بخش رو ویرایش کنید
   ===================================================== */
.breadcrumb-wrap {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 20px 24px 0;
}

/* وقتی داخل صفحه فرم هستیم، عرض رو از فرم می‌گیره */
.form-page ~ .breadcrumb-wrap,
body.page-form .breadcrumb-wrap {
  max-width: var(--form-max);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: 4px 6px;
  border-radius: 6px;
}

.breadcrumb a:hover {
  color: var(--brand);
  background: var(--brand-light);
}

.breadcrumb .sep {
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.breadcrumb .sep svg { width: 12px; height: 12px; opacity: 0.6; }

.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
  padding: 4px 6px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =====================================================
   ۶️⃣ صفحه خبر — مقاله
   
   🔧 برای تغییر ظاهر خبر:
   - عرض متن: --article-max در بخش ۱
   - فونت تیتر: .article-title
   - فونت متن: .article-content
   ===================================================== */
.article-page {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 24px 24px 64px;
  animation: fadeIn var(--transition-base);
}

/* --- هدر مقاله --- */
.article-header { margin-bottom: 24px; }

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
}

.article-category svg { width: 14px; height: 14px; }

.article-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--text);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--text-light);
}

/* --- تصویر شاخص --- */
.article-featured-image {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--hover-bg);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- متن مقاله --- */
.article-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}

.article-content > * + * { margin-top: 20px; }

.article-content p { color: #1F2937; }

.article-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-right: 14px;
  border-right: 4px solid var(--brand);
  line-height: 1.5;
  color: var(--text);
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.article-content ul,
.article-content ol {
  padding-right: 24px;
  margin: 16px 0;
}

.article-content li {
  margin-bottom: 10px;
  position: relative;
  padding-right: 18px;
  line-height: 1.8;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.article-content ol {
  counter-reset: ol-counter;
  list-style: none;
}

.article-content ol li { counter-increment: ol-counter; }

.article-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  right: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-content blockquote {
  padding: 16px 20px;
  background: var(--brand-light);
  border-right: 4px solid var(--brand);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text);
  margin: 24px 0;
  line-height: 1.8;
}

.article-content strong { font-weight: 700; color: var(--text); }

.article-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover { color: var(--brand-hover); }

/* =====================================================
   🔧 اصلاح لینک‌های داخل تیتر و متن خبر
   
   ⚠️ این بخش برای رفع مشکل زیرخط و رنگ آبی تیترهاست
   که از استایل پیش‌فرض جوملا میاد.
   ===================================================== */

/* --- تیتر اصلی خبر (h1) --- */
.item-page h1,
.item-page h1 a,
.item-page h1 a:link,
.item-page h1 a:visited,
.item-page h1 a:hover,
.item-page h1 a:active {
    color: var(--text) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    background: none !important;
    pointer-events: none;
}

/* --- تیترهای میانی (h2, h3) --- */
.item-page h2,
.item-page h2 a,
.item-page h3,
.item-page h3 a {
    color: var(--text) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* --- تیترهای داخل متن (p strong) --- */
.item-page p strong,
.item-page p strong a {
    color: var(--text) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* --- لینک‌های داخل متادیتا (تاریخ، دسته‌بندی) --- */
.item-page .article-info a,
.item-page .article-info dd a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
}

.item-page .article-info a:hover {
    color: var(--brand) !important;
}

/* --- لینک‌های داخل متن خبر (لینک‌های واقعی) --- */
/* این‌ها باید آبی و زیرخط‌دار باشن چون لینک واقعی‌ان */
.item-page .article-content a,
.item-page > p a:not(.backto) {
    color: var(--brand) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.item-page .article-content a:hover,
.item-page > p a:not(.backto):hover {
    color: var(--brand-hover) !important;
}

/* --- breadcrumb: حذف زیرخط --- */
.breadcrumbs a,
.breadcrumbs a:link,
.breadcrumbs a:visited,
.breadcrumbs a:hover,
.breadcrumbs a:active {
    text-decoration: none !important;
}

/* --- فوتر: حذف زیرخط --- */
.footer a,
.footer a:link,
.footer a:visited,
.footer a:hover,
.footer a:active {
    text-decoration: none !important;
}

/* --- هدر: حذف زیرخط --- */
.header a,
.header a:link,
.header a:visited {
    text-decoration: none !important;
}

/* --- دکمه بازگشت: حذف زیرخط --- */
.back-to-list,
.back-to-list:hover {
    text-decoration: none !important;
}

/* --- لینک‌های عمومی در قالب: فقط hover زیرخط --- */
.item-page a:not([class]):hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =====================================================
   ۷️⃣ نوار اشتراک‌گذاری + دکمه بازگشت
   
   🔧 برای اضافه کردن پلتفرم جدید:
   - دکمه رو در index.php اضافه کنید
   - رنگ hover رو اینجا تعریف کنید
   ===================================================== */
.share-bar {
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.share-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label svg { width: 18px; height: 18px; color: var(--brand); }

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-btn svg { width: 18px; height: 18px; }

.share-btn[data-platform="telegram"]:hover {
  background: #229ED9; border-color: #229ED9; color: white;
}

.share-btn[data-platform="whatsapp"]:hover {
  background: #25D366; border-color: #25D366; color: white;
}

.share-btn[data-platform="copy"]:hover {
  background: var(--brand); border-color: var(--brand); color: white;
}

.share-btn.copied {
  background: var(--success); border-color: var(--success); color: white;
}

.share-btn .copied-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--success);
  color: white;
  border-radius: 10px;
  font-size: 10px;
  padding: 2px 6px;
  font-weight: 700;
  animation: checkPop var(--transition-base);
}

.back-to-list {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg);
  color: var(--brand);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.back-to-list:hover {
  background: var(--brand);
  color: white;
  transform: translateX(3px);
}

.back-to-list svg { width: 16px; height: 16px; }


/* =====================================================
   ۸️⃣ صفحه فرم — استایل‌های RSForm
   
   🔧 نکته مهم: این استایل‌ها روی کلاس‌های RSForm اعمال می‌شن.
   🔧 برای تغییر ظاهر فیلدها: .form-input, .form-select
   🔧 برای تغییر دکمه: .btn-primary
   🔧 برای تغییر نوار اعتماد: .form-trust
   ===================================================== */
/* =====================================================
   ۸️⃣ صفحه فرم — استایل RSForm (Override)
   ===================================================== */
/* =====================================================
   ۸️⃣ صفحه فرم + جوملا + RSForm
   
   ⚠️ نکته: 
   این بخش هم کلاس‌های سفارشی (form-input) و هم کلاس‌های
   جوملا (item-page) و RSForm (rsform-input-box) رو پوشش می‌ده.
   ===================================================== */

/* ---------- کانتینر اصلی محتوا ---------- */
.content-main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ---------- جوملا: کانتینر مقاله/فرم ---------- */
.item-page {
    max-width: var(--article-max);
    margin: 0 auto;
    padding: 24px 24px 64px;
    animation: fadeIn var(--transition-base);
}

/* وقتی صفحه فرم RSForm هست (دارای form) */
.item-page:has(form),
.item-page.text-fire {
    max-width: var(--form-max);
}

/* ---------- جوملا: breadcrumb ---------- */
.breadcrumbs {
    max-width: var(--article-max);
    margin: 0 auto;
    padding: 20px 24px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
    padding: 4px 6px;
    border-radius: 6px;
}

.breadcrumbs a:hover {
    color: var(--brand);
    background: var(--brand-light);
}

.breadcrumbs .sep,
.breadcrumbs .arrow {
    color: var(--text-light);
    margin: 0 4px;
}

.breadcrumbs > span:last-child {
    color: var(--text);
    font-weight: 500;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- جوملا: پیام‌های سیستم ---------- */
#system-message-container {
    max-width: var(--article-max);
    margin: 0 auto;
    padding: 0 24px;
}

#system-message-container:empty {
    display: none;
}

.alert,
.system-message {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-size: 14px;
    border: 1px solid var(--border);
    background: var(--hover-bg);
}

.alert-message,
.message { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }
.alert-error,
.error { background: var(--error-bg); border-color: var(--error); color: var(--error); }
.alert-success,
.success { background: var(--success-bg); border-color: var(--success); color: var(--success); }

/* =====================================================
   📰 صفحه خبر — جوملا
   ===================================================== */

/* ---------- تیتر h1 ---------- */
.item-page h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text);
}

/* لینک داخل h1 (جوملا معمولاً اضافه می‌کنه) */
.item-page h1 a {
    color: inherit;
    text-decoration: none;
    pointer-events: none; /* غیرقابل کلیک — تیتره نه لینک */
}

/* ---------- متادیتا ---------- */
.item-page .article-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.item-page .article-info-term {
    display: none; /* «مشخصات» رو مخفی کن */
}

.item-page .article-info dd {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.item-page .article-info dd::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-light);
}

.item-page .article-info dd:first-of-type::before { display: none; }

.item-page .article-info a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.item-page .article-info a:hover { color: var(--brand); }

/* ---------- تصویر شاخص ---------- */
.item-page .img-fulltext-left,
.item-page .img-fulltext-right,
.item-page .img-intro-left,
.item-page .img-intro-right {
    float: none;
    margin: 28px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--hover-bg);
    text-align: center;
}

.item-page .img-fulltext-left img,
.item-page .img-fulltext-right img,
.item-page .img-intro-left img,
.item-page .img-intro-right img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* ---------- متن مقاله ---------- */
.item-page > p,
.item-page .article-content p {
    font-size: 16px;
    line-height: 1.9;
    color: #1F2937;
    margin-bottom: 20px;
}

.item-page > p:empty {
    display: none; /* پاراگراف‌های خالی رو مخفی کن */
}

/* تیترهای داخل متن */
.item-page p strong {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-top: 16px;
    margin-bottom: 4px;
    padding-right: 14px;
    border-right: 4px solid var(--brand);
    line-height: 1.6;
}

/* پاراگراف‌هایی که فقط یک strong دارن → تبدیل به تیتر */
.item-page p:has(> strong:only-child) {
    margin-top: 32px;
    margin-bottom: 12px;
}

/* لیست‌ها */
.item-page ul,
.item-page ol {
    padding-right: 0;
    margin: 16px 0;
}

.item-page ul li,
.item-page ol li {
    margin-bottom: 10px;
    padding-right: 20px;
    position: relative;
    font-size: 16px;
    line-height: 1.9;
    color: #1F2937;
}

.item-page ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

/* ---------- لینک‌های داخل متن ---------- */
.item-page a:not(.backto):not(.rsform-submit-button) {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.item-page a:not(.backto):not(.rsform-submit-button):hover {
    color: var(--brand-hover);
}

/* =====================================================
   📝 فرم RSForm — استایل یکپارچه
   ===================================================== */

/* ---------- کانتینر فرم ---------- */
.BuyForm,
.rsform {
    background: var(--bg);
}

/* عنوان فرم (h2 در بالای فرم) */
.BuyForm h2,
.componentheading {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
    text-align: center;
}

/* ---------- چیدمان فرم ---------- */
.form2LinesLayout {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

/* هر فیلد */
.formField,
.rsform-block {
    margin-bottom: 20px;
}

.formField:last-child,
.rsform-block:last-child {
    margin-bottom: 0;
}

/* برچسب فیلد — متنی که مستقیم در div هست */
.formField > br:first-child {
    display: none;
}

.formField {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.6;
}

/* ---------- input / select / textarea ---------- */
.rsform-input-box,
.rsform-select-box,
.rsform-textarea,
.formField input[type="text"],
.formField input[type="email"],
.formField input[type="tel"],
.formField input[type="number"],
.formField select,
.formField textarea {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    margin-top: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.rsform-textarea,
.formField textarea {
    height: auto;
    min-height: 120px;
    padding: 12px 16px;
    resize: vertical;
    line-height: 1.7;
}

.rsform-input-box::placeholder,
.formField input::placeholder,
.formField textarea::placeholder {
    color: var(--text-light);
}

.rsform-input-box:hover,
.rsform-select-box:hover,
.formField input:hover,
.formField select:hover,
.formField textarea:hover {
    border-color: #D1D5DB;
}

.rsform-input-box:focus,
.rsform-select-box:focus,
.rsform-textarea:focus,
.formField input:focus,
.formField select:focus,
.formField textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
    outline: none;
}

/* فیلد readonly (مثل مبلغ) */
.rsform-input-box[readonly],
.formField input[readonly] {
    background: var(--brand-light);
    color: var(--brand);
    font-weight: 500;
    cursor: default;
    text-align: center;
    font-size: 17px;
    border-color: var(--brand-light);
}

/* ---------- select سفارشی ---------- */
.rsform-select-box,
.formField select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 44px;
    cursor: pointer;
}

/* ---------- دکمه‌ها ---------- */
.rsform-submit-button,
.formField input[type="submit"],
button[type="submit"] {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: white;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    font-family: inherit;
    margin-top: 8px;
}

.rsform-submit-button:hover,
.formField input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.rsform-submit-button:active,
.formField input[type="submit"]:active {
    transform: translateY(0);
}

/* ---------- خطاها ---------- */
.formNoError {
    display: none; /* مخفی به صورت پیش‌فرض */
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
}

/* وقتی RSForm خطا نشون می‌ده */
.formField.rsform-error .formNoError,
.formField .rsform-error + .formNoError {
    display: block;
}

.formField.rsform-error input,
.formField.rsform-error select,
.formField.rsform-error textarea,
.rsform-input-box.rsform-error,
.rsform-select-box.rsform-error {
    border-color: var(--error);
    background: var(--error-bg);
}

/* ---------- دکمه بازگشت قدیمی — مخفی ---------- */
.rsform-block-backto,
.formField a.backto {
    display: none !important;
}

/* ---------- فیلدهای hidden ---------- */
.formField input[type="hidden"],
.rsform-block-zarinpal-amount {
    display: none !important;
}

/* ---------- راهنمای داخل فرم (p) ---------- */
.formField p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 8px;
    font-weight: 400;
}

/* ---------- نوار اعتماد پایین فرم ---------- */
.form-trust {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--hover-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.form-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-trust-item svg {
    width: 15px;
    height: 15px;
    color: var(--success);
}

/* =====================================================
   📱 ریسپانسیو
   ===================================================== */
@media (max-width: 767px) {
    .item-page { padding: 16px 16px 48px; }
    .item-page h1 { font-size: 22px; }
    .item-page > p { font-size: 15px; }
    .item-page p strong { font-size: 17px; }

    .form2LinesLayout {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }

    .BuyForm h2,
    .componentheading {
        font-size: 20px;
    }

    .formField { font-size: 13.5px; }

    .breadcrumbs {
        padding: 16px 16px 0;
        font-size: 12px;
    }

    .breadcrumbs > span:last-child { max-width: 140px; }
}

/* =====================================================
   ۹️⃣ فوتر + ریسپانسیو
   ===================================================== */
.footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer a:hover { color: var(--text); }


/* =====================================================
   📱 ریسپانسیو — تبلت و موبایل
   
   🔧 برای تغییر رفتار موبایل، همین بخش رو ویرایش کنید
   ===================================================== */
/* =====================================================
   📚 صفحات آرشیو — لیست اخبار / مقالات
   
   🔧 برای ویرایش:
   - عرض کانتینر: --article-max در بخش ۱
   - فونت عنوان خبر: .cat-list-title
   - رنگ هاور: --brand
   ===================================================== */

/* ---------- کانتینر اصلی آرشیو ---------- */
.category-list {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 24px 24px 64px;
  animation: fadeIn var(--transition-base);
}

/* ---------- هدر صفحه آرشیو ---------- */
.category-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.category-title-main {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.category-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- فرم جوملا (adminForm) ---------- */
.category-list form {
  display: block;
}

/* ---------- جدول جوملا → تبدیل به لیست کارتی ---------- */
.category-list table.category {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
}

.category-list table.category tbody {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-list table.category tr {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.category-list table.category tr:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.category-list table.category td {
  display: block;
  padding: 0;
  border: none;
}

/* ---------- لینک عنوان خبر ---------- */
.category-list td.list-title,
.category-list td.list-title a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

/* آیکن کوچک سمت راست (فلش خبر) */
.category-list td.list-title a::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.4;
  transition: all var(--transition-fast);
}

/* فلش کوچک انتهای خبر */
.category-list td.list-title a::after {
  content: '';
  margin-right: auto;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transition: all var(--transition-fast);
  transform: translateX(-4px);
}

.category-list tr:hover td.list-title a::before {
  opacity: 1;
  transform: scale(1.3);
}

.category-list tr:hover td.list-title a::after {
  opacity: 1;
  transform: translateX(0);
}

.category-list td.list-title a:hover {
  color: var(--brand);
  text-decoration: none;
}

/* ---------- حذف استایل‌های اضافی جوملا ---------- */
.category-list .cat-list-row0,
.category-list .cat-list-row1 {
  background: transparent;
}

.category-list .cat-items {
  display: block;
}

/* مخفی کردن ستون‌های خالی احتمالی */
.category-list td.list-hits,
.category-list td.list-author,
.category-list td.list-date,
.category-list td.list-category,
.category-list th {
  display: none;
}

/* ---------- صفحه‌بندی (Pagination) ---------- */
.category-list .pagination {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.category-list .pagination .counter {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.category-list .pagination ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.category-list .pagination li {
  display: inline-flex;
}

/* دکمه‌های شماره صفحه و ناوبری */
.category-list .pagination .pagenav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.category-list .pagination a.pagenav:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

/* صفحه فعلی (span بدون لینک) */
.category-list .pagination span.pagenav {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  cursor: default;
  font-weight: 600;
}

/* دکمه‌های غیرفعال (شروع، قبلی در صفحه ۱) */
.category-list .pagination .pagination-start span.pagenav,
.category-list .pagination .pagination-prev span.pagenav,
.category-list .pagination .pagination-next span.pagenav,
.category-list .pagination .pagination-end span.pagenav {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--hover-bg);
  color: var(--text-light);
}

/* دکمه‌های شروع/قبلی/بعدی/پایان — کمی پهن‌تر */
.category-list .pagination .pagination-start .pagenav,
.category-list .pagination .pagination-prev .pagenav,
.category-list .pagination .pagination-next .pagenav,
.category-list .pagination .pagination-end .pagenav {
  padding: 0 14px;
  font-size: 13px;
}


/* =====================================================
   📱 ریسپانسیو آرشیو
   ===================================================== */
@media (max-width: 767px) {
  .category-list {
    padding: 16px 16px 48px;
  }

  .category-title-main {
    font-size: 22px;
  }

  .category-subtitle {
    font-size: 13px;
  }

  .category-list td.list-title,
  .category-list td.list-title a {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
  }

  .category-list .pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .category-list .pagination .counter {
    text-align: center;
  }

  .category-list .pagination ul {
    justify-content: center;
    gap: 3px;
  }

  .category-list .pagination .pagenav {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 12.5px;
    border-radius: 8px;
  }

  /* مخفی کردن دکمه‌های شروع/پایان در موبایل */
  .category-list .pagination .pagination-start,
  .category-list .pagination .pagination-end {
    display: none;
  }
}


/* =====================================================
   🔒 کپچا RSForm — استایل یکپارچه
   
   🔧 نکته: این استایل برای همه فرم‌های RSForm کار می‌کنه
   🔧 ساختار: تصویر + فیلد ورودی + دکمه رفرش
   ===================================================== */

/* ---------- کانتینر کپچا ---------- */
.formField.rsform-block-captcha,
.rsform-block-captcha {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ---------- تصویر کپچا ---------- */
.rsform-block-captcha img,
#captcha213,
[id^="captcha"]:not([id^="captchaTxt"]) {
  display: inline-block;
  vertical-align: middle;
  height: 48px;
  width: auto;
  min-width: 140px;
  max-width: 200px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--hover-bg);
  padding: 4px;
  object-fit: contain;
  margin: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* ---------- فیلد ورودی کپچا ---------- */
.rsform-captcha-box,
.rsform-block-captcha input[type="text"] {
  display: inline-block;
  vertical-align: middle;
  width: 120px !important;
  height: 48px;
  padding: 0 16px;
  margin: 0 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 4px;
  color: var(--text);
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  direction: ltr;
}

.rsform-captcha-box::placeholder,
.rsform-block-captcha input[type="text"]::placeholder {
  color: var(--text-light);
  letter-spacing: normal;
  font-size: 14px;
  font-weight: 400;
}

.rsform-captcha-box:hover,
.rsform-block-captcha input[type="text"]:hover {
  border-color: #D1D5DB;
}

.rsform-captcha-box:focus,
.rsform-block-captcha input[type="text"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
  outline: none;
}

/* ---------- لینک «تازه کردن» ---------- */
.rsform-block-captcha a,
.rsform-block-captcha a:link,
.rsform-block-captcha a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 14px;
  margin: 0;
  background: var(--brand-light);
  color: var(--brand) !important;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  vertical-align: middle;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.rsform-block-captcha a:hover,
.rsform-block-captcha a:focus {
  background: var(--brand);
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.rsform-block-captcha a::before {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2v6h-6'/%3E%3Cpath d='M3 12a9 9 0 0 1 15-6.7L21 8'/%3E%3Cpath d='M3 22v-6h6'/%3E%3Cpath d='M21 12a9 9 0 0 1-15 6.7L3 16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.rsform-block-captcha a:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2v6h-6'/%3E%3Cpath d='M3 12a9 9 0 0 1 15-6.7L21 8'/%3E%3Cpath d='M3 22v-6h6'/%3E%3Cpath d='M21 12a9 9 0 0 1-15 6.7L3 16'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}

/* ---------- پیام خطا ---------- */
.rsform-block-captcha .formNoError {
  display: none;
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  font-weight: 500;
}

.rsform-block-captcha.rsform-error .formNoError,
.rsform-block-captcha .formNoError:not(:empty) {
  display: block;
}

/* ---------- جدا کردن کپچا از بقیه فرم ---------- */
.rsform-block-captcha {
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid var(--border-light);
}

/* =====================================================
   📱 ریسپانسیو کپچا
   ===================================================== */
@media (max-width: 767px) {
  .rsform-block-captcha img,
  #captcha213,
  [id^="captcha"]:not([id^="captchaTxt"]) {
    min-width: 120px;
    max-width: 160px;
    height: 44px;
  }

  .rsform-captcha-box,
  .rsform-block-captcha input[type="text"] {
    width: 100px !important;
    height: 44px;
    margin: 0 6px;
    font-size: 16px;
  }

  .rsform-block-captcha a {
    height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }

  .rsform-block-captcha a::before {
    width: 12px;
    height: 12px;
  }
}

/* در صفحات خیلی باریک (زیر ۳۶۰px) */
@media (max-width: 400px) {
  .rsform-block-captcha img,
  #captcha213,
  [id^="captcha"]:not([id^="captchaTxt"]) {
    min-width: 100px;
    height: 40px;
    padding: 2px;
  }

  .rsform-captcha-box,
  .rsform-block-captcha input[type="text"] {
    width: 80px !important;
    height: 40px;
    margin: 0 4px;
    padding: 0 8px;
    font-size: 15px;
    letter-spacing: 3px;
  }

  .rsform-block-captcha a {
    height: 40px;
    padding: 0 10px;
    font-size: 11px;
  }
}


/* =====================================================
   📤 فیلد آپلود فایل RSForm — استایل مدرن
   
   🔧 نکته: این استایل برای همه فیلدهای آپلود RSForm کار می‌کنه
   🔧 کلاس‌های هدف: .rsform-upload-box, .rsform-block-carcart,
     و همه .rsform-block-* که input[type="file"] دارن
   ===================================================== */

/* ---------- کانتینر فیلد آپلود ---------- */
.formField:has(input[type="file"]),
.rsform-block:has(input[type="file"]),
.rsform-block-carcart,
.rsform-block-cartsales,
.rsform-block-poshtcart,
.rsform-block-poshtcart-copy {
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ---------- پنهان کردن input پیش‌فرض ---------- */
.formField input[type="file"],
.rsform-upload-box {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------- برچسب اصلی (placeholder) ---------- */
/* با استفاده از ::before روی span کمکی که در HTML اضافه می‌کنیم */
/* یا با پیچیدن input در یک label جدید */

/* =====================================================
   🎨 طراحی جایگزین: باکس آپلود زیبا
   
   ⚠️ نکته: برای این طراحی، به تغییر کوچیک در HTML نیاز داریم
   که در بخش توضیحات اومده. اما این CSS با HTML فعلی هم کار می‌کنه
   و از ::after روی div استفاده می‌کنه.
   ===================================================== */

/* ---------- باکس آپلود (روی div فیلد) ---------- */
.rsform-block-carcart,
.rsform-block-cartsales,
.rsform-block-poshtcart,
.rsform-block-poshtcart-copy {
  position: relative;
  padding: 0;
}

/* ساخت باکس آپلود با ::before روی div */
.rsform-block-carcart::before,
.rsform-block-cartsales::before,
.rsform-block-poshtcart::before,
.rsform-block-poshtcart-copy::before {
  content: '';
  display: block;
  width: 100%;
  height: 140px;
  margin: 12px 0;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--hover-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M17 8l-5-5-5 5'/%3E%3Cpath d='M12 3v12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 30px;
  background-size: 32px 32px;
  transition: all var(--transition-base);
  cursor: pointer;
  pointer-events: none;
  box-sizing: border-box;
}

/* متن داخل باکس — با ::after */
.rsform-block-carcart::after,
.rsform-block-cartsales::after,
.rsform-block-poshtcart::after,
.rsform-block-poshtcart-copy::after {
  content: 'فایل را اینجا رها کنید یا کلیک کنید';
  position: absolute;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

/* هاور روی باکس */
.rsform-block-carcart:hover::before,
.rsform-block-cartsales:hover::before,
.rsform-block-poshtcart:hover::before,
.rsform-block-poshtcart-copy:hover::before {
  border-color: var(--brand);
  background-color: var(--brand-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M17 8l-5-5-5 5'/%3E%3Cpath d='M12 3v12'/%3E%3C/svg%3E");
  transform: translateY(-2px);
}

.rsform-block-carcart:hover::after,
.rsform-block-cartsales:hover::after,
.rsform-block-poshtcart:hover::after,
.rsform-block-poshtcart-copy:hover::after {
  color: var(--brand);
}

/* وقتی فایل انتخاب شده — کلاس AdresFile از JS قدیمی اضافه می‌شه */
.rsform-block-carcart .AdresFile,
.rsform-block-cartsales .AdresFile,
.rsform-block-poshtcart .AdresFile,
.rsform-block-poshtcart-copy .AdresFile {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- برچسب (لیبل اصلی) ---------- */
/* «روی کارت ماشین» — متن ابتدای فیلد */
.rsform-block-carcart,
.rsform-block-cartsales,
.rsform-block-poshtcart,
.rsform-block-poshtcart-copy {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

/* ---------- متن راهنما (آخر فیلد) ---------- */
/* «لطفا کیفیت عکس... / حداکثر ۳ مگابایت / jpg / عکس خوانا...» */
.rsform-block-carcart,
.rsform-block-cartsales,
.rsform-block-poshtcart,
.rsform-block-poshtcart-copy {
  /* این متن مستقیم داخل div هست، نمی‌تونیم جدا استایل بدیم */
  /* پس از ::first-line استفاده نمی‌کنیم چون همه خطوط استایل می‌گیرن */
}

/* به جای اون، یه style برای text node با trick */
/* در HTML، اگه این متن رو در <small> یا <p> بذارید، این کد اعمال می‌شه: */
.rsform-block-carcart p,
.rsform-block-cartsales p,
.rsform-block-poshtcart p,
.rsform-block-poshtcart-copy p,
.rsform-block-carcart small,
.rsform-block-cartsales small,
.rsform-block-poshtcart small,
.rsform-block-poshtcart-copy small {
  display: block;
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--brand-light);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-size: 12px;
  line-height: 1.8;
  font-weight: 400;
  border-right: 3px solid var(--brand);
}

/* ---------- پیام خطا ---------- */
.rsform-block-carcart .formNoError,
.rsform-block-cartsales .formNoError,
.rsform-block-poshtcart .formNoError,
.rsform-block-poshtcart-copy .formNoError {
  display: none;
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  font-weight: 500;
}

.rsform-block-carcart.rsform-error .formNoError,
.rsform-block-cartsales.rsform-error .formNoError,
.rsform-block-poshtcart.rsform-error .formNoError,
.rsform-block-poshtcart-copy.rsform-error .formNoError {
  display: block;
}

/* ---------- حالت خطا ---------- */
.rsform-block-carcart.rsform-error::before,
.rsform-block-cartsales.rsform-error::before,
.rsform-block-poshtcart.rsform-error::before,
.rsform-block-poshtcart-copy.rsform-error::before {
  border-color: var(--error);
  background-color: var(--error-bg);
}

/* =====================================================
   📱 ریسپانسیو فیلد آپلود
   ===================================================== */
@media (max-width: 767px) {
  .rsform-block-carcart::before,
  .rsform-block-cartsales::before,
  .rsform-block-poshtcart::before,
  .rsform-block-poshtcart-copy::before {
    height: 120px;
    background-position: center 22px;
    background-size: 28px 28px;
  }

  .rsform-block-carcart::after,
  .rsform-block-cartsales::after,
  .rsform-block-poshtcart::after,
  .rsform-block-poshtcart-copy::after {
    top: 68px;
    font-size: 12px;
    white-space: normal;
    max-width: 90%;
  }

  .rsform-block-carcart p,
  .rsform-block-cartsales p,
  .rsform-block-poshtcart p,
  .rsform-block-poshtcart-copy p,
  .rsform-block-carcart small,
  .rsform-block-cartsales small,
  .rsform-block-poshtcart small,
  .rsform-block-poshtcart-copy small {
    font-size: 11.5px;
    padding: 8px 12px;
  }
}

/* =====================================================
   ✅ پیام موفقیت آپلود فایل
   ===================================================== */

.upload-success-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  animation: fadeIn var(--transition-base);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.upload-success-msg svg {
  flex-shrink: 0;
}

.upload-success-msg strong {
  font-weight: 700;
  color: var(--success);
  direction: ltr;
  display: inline-block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

/* وقتی فایل انتخاب شده، باکس سبز می‌شه */
.formField.has-file::before,
.rsform-block.has-file::before {
  border-color: var(--success) !important;
  background-color: var(--success-bg) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") !important;
}

.formField.has-file::after,
.rsform-block.has-file::after {
  content: 'فایل انتخاب شد ✓' !important;
  color: var(--success) !important;
}


/* =====================================================
   🔘 رادیو و چک‌باکس RSForm — نسخه اصلاح‌شده
   
   ⚠️ اصلاحات:
   - input کاملاً مخفی شده با appearance: none
   - دایره سفارشی فقط از ::before میاد
   - بدون کلاس card-options، همه یه شکل هستن
   ===================================================== */

/* ---------- کانتینر فیلد ---------- */
.formField:has(input[type="radio"]),
.formField:has(input[type="checkbox"]),
.rsform-block:has(input[type="radio"]),
.rsform-block:has(input[type="checkbox"]) {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

/* =====================================================
   🔴 حیاتی: مخفی کردن کامل input پیش‌فرض
   ===================================================== */

.formField input[type="radio"],
.formField input[type="checkbox"],
.rsform-block input[type="radio"],
.rsform-block input[type="checkbox"] {
  /* مخفی کردن کامل — این خط حیاتی بود */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* ---------- برچسب (label) → کارت کوچک ---------- */
.formField input[type="radio"] + label,
.formField input[type="checkbox"] + label,
.rsform-block input[type="radio"] + label,
.rsform-block input[type="checkbox"] + label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin: 8px 6px 0 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  min-width: 90px;
  vertical-align: middle;
  line-height: 1.5;
}

/* ---------- دایره/مربع سفارشی داخل label ---------- */
.formField input[type="radio"] + label::before,
.formField input[type="checkbox"] + label::before,
.rsform-block input[type="radio"] + label::before,
.rsform-block input[type="checkbox"] + label::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: all var(--transition-fast);
  position: relative;
  box-sizing: border-box;
}

/* رادیو: دایره */
.formField input[type="radio"] + label::before,
.rsform-block input[type="radio"] + label::before {
  border-radius: 50%;
}

/* چک‌باکس: مربع */
.formField input[type="checkbox"] + label::before,
.rsform-block input[type="checkbox"] + label::before {
  border-radius: 5px;
}

/* ---------- هاور ---------- */
.formField input[type="radio"] + label:hover,
.formField input[type="checkbox"] + label:hover,
.rsform-block input[type="radio"] + label:hover,
.rsform-block input[type="checkbox"] + label:hover {
  border-color: var(--brand);
  background: var(--brand-light);
}

.formField input[type="radio"] + label:hover::before,
.formField input[type="checkbox"] + label:hover::before {
  border-color: var(--brand);
}

/* ---------- حالت انتخاب‌شده ---------- */
.formField input[type="radio"]:checked + label,
.formField input[type="checkbox"]:checked + label,
.rsform-block input[type="radio"]:checked + label,
.rsform-block input[type="checkbox"]:checked + label {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

/* رادیو انتخاب‌شده: دایره آبی با نقطه سفید */
.formField input[type="radio"]:checked + label::before,
.rsform-block input[type="radio"]:checked + label::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px var(--bg);
}

/* چک‌باکس انتخاب‌شده: مربع آبی با تیک */
.formField input[type="checkbox"]:checked + label::before,
.rsform-block input[type="checkbox"]:checked + label::before {
  border-color: var(--brand);
  background: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

/* ---------- فوکوس (دسترسی‌پذیری) ---------- */
.formField input[type="radio"]:focus-visible + label,
.formField input[type="checkbox"]:focus-visible + label {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- پیام خطا ---------- */
.formField:has(input[type="radio"]) .formNoError,
.formField:has(input[type="checkbox"]) .formNoError,
.rsform-block:has(input[type="radio"]) .formNoError,
.rsform-block:has(input[type="checkbox"]) .formNoError {
  display: none;
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  font-weight: 500;
}

.formField.rsform-error:has(input[type="radio"]) .formNoError,
.formField.rsform-error:has(input[type="checkbox"]) .formNoError {
  display: block;
}

/* =====================================================
   📱 ریسپانسیو
   ===================================================== */
@media (max-width: 767px) {
  .formField input[type="radio"] + label,
  .formField input[type="checkbox"] + label {
    padding: 9px 14px;
    font-size: 13.5px;
    margin: 6px 4px 0 0;
    min-width: 80px;
    gap: 8px;
  }

  .formField input[type="radio"] + label::before,
  .formField input[type="checkbox"] + label::before {
    width: 16px;
    height: 16px;
  }
}


/* =====================================================
   🏷️ نشانگر «الزامی» در برچسب‌های فرم
   
   🔧 این بخش با کد Horizontal سازگار شده
   ===================================================== */

/* --- برچسب: خط آبی + ساختار --- */

.rsform-label-text {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  line-height: 1.6 !important;
  margin-bottom: 12px !important;
  padding-right: 12px !important;
  position: relative !important;
  width: auto !important;
  text-align: right;
}

/* خط آبی سمت راست */
.rsform-label-text::before {
  content: '' !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 3px !important;
  height: 18px !important;
  background: linear-gradient(180deg, var(--brand), var(--brand-hover)) !important;
  border-radius: 2px !important;
}

/* --- نشانگر «الزامی» --- */

.rsform-required-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 8px !important;
  background: var(--brand-light) !important;
  color: var(--brand) !important;
  border-radius: 6px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin-right: 6px !important;
  margin-left: auto !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
  flex-shrink: 0;
  vertical-align: middle;
}

/* --- برای Horizontal: همون استایل --- */

.formHorizontal .rsform-label-text {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
  padding-right: 12px !important;
  position: relative !important;
  width: auto !important;
}

.formHorizontal .rsform-label-text::before {
  content: '' !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 3px !important;
  height: 18px !important;
  background: linear-gradient(180deg, var(--brand), var(--brand-hover)) !important;
  border-radius: 2px !important;
}

/* --- موبایل --- */

@media (max-width: 767px) {
  .rsform-label-text,
  .formHorizontal .rsform-label-text {
    font-size: 13.5px !important;
    padding-right: 10px !important;
    gap: 6px !important;
  }

  .rsform-label-text::before,
  .formHorizontal .rsform-label-text::before {
    width: 2.5px !important;
    height: 16px !important;
  }

  .rsform-required-badge {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }
}


/* =====================================================
   🛡️ نوار اعتماد داخل کارت فرم
   ===================================================== */

.form-trust {
  /* داخل کارت — با خط جداکننده بالایی */
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  
  /* بدون پس‌زمینه و گردی گوشه */
  background: transparent;
  border-radius: 0;
  
  /* چیدمان */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.form-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.form-trust-item svg {
  width: 15px;
  height: 15px;
  color: var(--success);
  flex-shrink: 0;
}

/* نماد اینماد */
.form-trust-enamad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  opacity: 0.9;
}

.form-trust-enamad:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.form-trust-enamad img {
  height: 28px;
  width: auto;
  display: block;
}

/* --- موبایل --- */
@media (max-width: 767px) {
  .form-trust {
    gap: 12px;
    font-size: 11.5px;
    padding-top: 16px;
    margin-top: 22px;
  }

  .form-trust-item svg {
    width: 13px;
    height: 13px;
  }

  .form-trust-enamad img {
    height: 24px;
  }
}





/* =====================================================
   📤 نوار اشتراک‌گذاری
   ===================================================== */

.share-bar {
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.share-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  position: relative;
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.share-btn[data-platform="telegram"]:hover {
  background: #229ED9;
  border-color: #229ED9;
  color: white;
}

.share-btn[data-platform="whatsapp"]:hover {
  background: #25D366;
  border-color: #25D366;
  color: white;
}

.share-btn[data-platform="copy"]:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.share-btn.copied {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.share-btn .copied-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--success);
  color: white;
  border-radius: 10px;
  font-size: 10px;
  padding: 2px 6px;
  font-weight: 700;
  animation: checkPop var(--transition-base);
}

/* موبایل */
@media (max-width: 767px) {
  .share-bar {
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .share-label {
    font-size: 13px;
  }
  
  .share-btn {
    width: 38px;
    height: 38px;
  }
}
.showHere {
    display:none;
}







/* تبلت */
@media (max-width: 1023px) {
  .article-title { font-size: 26px; }
}

/* موبایل */
@media (max-width: 767px) {
  /* هدر */
  .header { padding: 0 16px; height: 64px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 10px; }
  .logo-text strong { font-size: 13px; }
  .logo-text span { display: none; }
  .support-btn span { display: none; }
  .support-btn { padding: 8px 10px; }

  /* Breadcrumb */
  .breadcrumb-wrap { padding: 16px 16px 0; }
  .breadcrumb .current { max-width: 140px; }

  /* مقاله */
  .article-page { padding: 16px 16px 48px; }
  .article-title { font-size: 22px; }
  .article-content { font-size: 15px; }
  .article-content h2 { font-size: 18px; margin-top: 28px; }
  .article-content h3 { font-size: 16px; }
  .article-meta { gap: 12px; font-size: 12px; }

  /* اشتراک‌گذاری */
  .share-bar { padding: 16px 0; }
  .share-label { font-size: 13px; }
  .share-btn { width: 38px; height: 38px; }

  /* فرم */
  .form-page { padding: 16px 16px 48px; }
  .form-card { padding: 24px 20px; border-radius: var(--radius-lg); }
  .form-title { font-size: 20px; }
  .form-icon { width: 56px; height: 56px; border-radius: 16px; }
  .form-icon svg { width: 26px; height: 26px; }
  .form-trust { gap: 12px; font-size: 11.5px; }

  /* فوتر */
  .footer { gap: 16px; padding: 24px 16px; }
}



/* =====================================================
   🔐 صفحه ورود (Login) — استایل اختصاصی
   
   ⚠️ نکته مهم: 
   همه سلکتورها با .login شروع می‌شن تا با سایر بخش‌ها
   تداخل نکنن. فقط صفحه ورود تحت تأثیر قرار می‌گیره.
   ===================================================== */

/* --- کانتینر اصلی صفحه ورود --- */
.login {
  max-width: 420px;
  margin: 48px auto;
  padding: 0 24px;
  animation: fadeIn var(--transition-base);
}

/* --- کارت ورود --- */
.login form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  display: block;
}

/* --- fieldset (حذف استایل پیش‌فرض) --- */
.login fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* --- هر فیلد --- */
.login .login-fields {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- برچسب --- */
.login .login-fields label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  text-align: right;
  display: block;
}

/* --- ورودی متن و رمز --- */
.login .login-fields input[type="text"],
.login .login-fields input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.login .login-fields input[type="text"]:hover,
.login .login-fields input[type="password"]:hover {
  border-color: #D1D5DB;
}

.login .login-fields input[type="text"]:focus,
.login .login-fields input[type="password"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
  outline: none;
}

.login .login-fields input::placeholder {
  color: var(--text-light);
}

/* --- فیلد «مرا به یاد داشته باش» (checkbox) --- */
.login .login-fields:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  margin-bottom: 24px;
  cursor: pointer;
}

/* برچسب چک‌باکس */
.login .login-fields:has(input[type="checkbox"]) label {
  order: 2;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin: 0;
  user-select: none;
}

/* خود چک‌باکس — استایل سفارشی */
.login .login-fields input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  order: 1;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
  margin: 0;
}

.login .login-fields input[type="checkbox"]:hover {
  border-color: var(--brand);
}

.login .login-fields input[type="checkbox"]:checked {
  border-color: var(--brand);
  background: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.login .login-fields input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* --- دکمه ورود --- */
.login button.button,
.login button[type="submit"],
.login .button {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand);
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.login button.button:hover,
.login button[type="submit"]:hover,
.login .button:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.login button.button:active,
.login button[type="submit"]:active,
.login .button:active {
  transform: translateY(0);
}

/* --- input های hidden (نامرئی) --- */
.login input[type="hidden"] {
  display: none;
}

/* --- پیام خطا (جوملا) --- */
.login .alert,
.login .alert-error,
.login .alert-message {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.7;
  border: 1px solid;
}

.login .alert-error {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}

.login .alert-message,
.login .alert-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

/* =====================================================
   📱 ریسپانسیو
   ===================================================== */
@media (max-width: 767px) {
  .login {
    margin: 24px auto;
    padding: 0 16px;
  }

  .login form {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .login .login-fields label {
    font-size: 13.5px;
  }

  .login .login-fields input[type="text"],
  .login .login-fields input[type="password"] {
    height: 44px;
    font-size: 14px;
  }

  .login button.button,
  .login button[type="submit"],
  .login .button {
    height: 48px;
    font-size: 15px;
  }

  .login .login-fields:has(input[type="checkbox"]) label {
    font-size: 13px;
  }
}
/* =====================================================
   🔗 لینک‌های کمکی صفحه ورود
   (فراموشی رمز / فراموشی نام کاربری)
   
   ⚠️ بدون تداخل با سایر صفحات
   ===================================================== */

/* کانتینر لینک‌ها — div بعد از .login */
.login + div {
  max-width: 420px;
  margin: 20px auto 48px;
  padding: 0 24px;
}

/* حذف استایل پیش‌فرض لیست */
.login + div ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.login + div ul li {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* لینک‌ها */
.login + div a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: all var(--transition-fast);
  width: 100%;
  justify-content: center;
}

.login + div a:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* آیکن قبل از هر لینک (با استفاده از ::before) */
.login + div a::before {
  content: '';
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

/* آیکن «فراموشی رمز» (قفل) */
.login + div ul li:first-child a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.login + div ul li:first-child a:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* آیکن «فراموشی نام کاربری» (کاربر) */
.login + div ul li:nth-child(2) a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.login + div ul li:nth-child(2) a:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* --- موبایل --- */
@media (max-width: 767px) {
  .login + div {
    padding: 0 16px;
    margin-bottom: 32px;
  }

  .login + div a {
    font-size: 13px;
    padding: 9px 14px;
  }

  .login + div a::before {
    width: 14px;
    height: 14px;
  }
}




 /* تماس با ما ===== اسکوپ شده برای جلوگیری از تداخل با سایر استایل‌های سایت ===== */
/* ===== استایل صفحه تماس با ما ===== */

/* ===== صفحه تماس با ما ===== */
.bmcnt-wrap {
    all: initial;
    display: block !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    color: #111827 !important;
    direction: rtl !important;
    text-align: right !important;
    line-height: 1.8 !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
}
.bmcnt-wrap *,
.bmcnt-wrap *::before,
.bmcnt-wrap *::after {
    box-sizing: border-box !important;
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}

/* عنوان */
.bmcnt-header {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 0 40px 0 !important;
}
.bmcnt-header h1 {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 2rem !important;
    font-weight: bold !important;
    color: #111827 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    text-align: center !important;
}
.bmcnt-header p {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    color: #6b7280 !important;
    font-size: 1rem !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    max-width: 600px !important;
}

/* لیست */
.bmcnt-list {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* کارت */
.bmcnt-card {
    display: block !important;
    background: #ffffff !important;
    padding: 25px 25px 25px 30px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    border-right: 4px solid #1a56db !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px 0 !important;
    direction: rtl !important;
}
.bmcnt-card-green {
    border-right-color: #8BC34A !important;
}

/* بدنه کارت */
.bmcnt-body {
    display: block !important;
    width: 100% !important;
}
.bmcnt-body h3 {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    color: #111827 !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    text-align: right !important;
}
.bmcnt-body p {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    color: #6b7280 !important;
    font-size: 0.95rem !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    line-height: 1.9 !important;
    text-align: right !important;
}
.bmcnt-body p:last-child {
    margin-bottom: 0 !important;
}
.bmcnt-body strong {
    color: #111827 !important;
    font-weight: bold !important;
}

/* لینک‌ها */
.bmcnt-link {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    color: #0000EE !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}
.bmcnt-link:hover {
    color: #1a56db !important;
    text-decoration: underline !important;
}
.bmcnt-phones {
    display: block !important;
    line-height: 2 !important;
    direction: ltr !important;
    text-align: right !important;
}
.bmcnt-phones .bmcnt-link {
    display: inline-block !important;
}
.bmcnt-sep {
    color: #6b7280 !important;
    margin: 0 6px !important;
    display: inline-block !important;
}

/* دکمه سبز */
.bmcnt-greenbtn {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    background: #8BC34A !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    margin: 12px 0 0 0 !important;
    border: none !important;
    cursor: pointer !important;
}
.bmcnt-greenbtn:hover {
    background: #7cb342 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* نقشه */
.bmcnt-map {
    display: block !important;
    margin: 30px 0 0 0 !important;
    padding: 10px !important;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb !important;
    background: #ffffff !important;
    width: 100% !important;
    overflow: hidden !important;
}
.bmcnt-map iframe {
    width: 100% !important;
    height: 350px !important;
    border: none !important;
    border-radius: 8px !important;
    display: block !important;
}

/* شبکه‌های اجتماعی */
.bmcnt-social {
    display: block !important;
    margin: 40px 0 0 0 !important;
    text-align: center !important;
    padding: 30px 0 0 0 !important;
    border-top: 1px solid #e5e7eb !important;
    width: 100% !important;
}
.bmcnt-social h3 {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    font-size: 1rem !important;
    color: #6b7280 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
    text-align: center !important;
}
.bmcnt-social-links {
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}
.bmcnt-social-link {
    font-family: 'Vazirmatn', Tahoma, sans-serif !important;
    display: inline-block !important;
    width: 46px !important;
    height: 46px !important;
    line-height: 46px !important;
    text-align: center !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 50% !important;
    color: #6b7280 !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
    margin: 0 7px !important;
    padding: 0 !important;
    direction: ltr !important;
}
.bmcnt-social-link:hover {
    background: #1a56db !important;
    color: #ffffff !important;
    border-color: #1a56db !important;
    text-decoration: none !important;
}

/* موبایل */
@media (max-width: 576px) {
    .bmcnt-wrap {
        padding: 25px 15px !important;
    }
    .bmcnt-header h1 {
        font-size: 1.5rem !important;
    }
    .bmcnt-card {
        padding: 18px 18px 18px 22px !important;
    }
    .bmcnt-map iframe {
        height: 250px !important;
    }
}

/*پایان تماس با ما */




/* مراکز پرداخت خسارت */
.insurance-branches {
  max-width: 100%;
  color: #222;
  font-size: 14px;
  line-height: 1.9;
}

.insurance-branches__title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: 16px;
}

.insurance-branches__table-wrap {
  width: 100%;
  overflow-x: auto;
}

.insurance-branches__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.insurance-branches__table th,
.insurance-branches__table td {
  border: 1px solid #d9d9d9;
  padding: 8px 10px;
  vertical-align: top;
  text-align: center;
  word-break: break-word;
}

.insurance-branches__table th {
  background: #f5f7fa;
  font-weight: 700;
  white-space: nowrap;
}

.insurance-branches__table th:nth-child(1),
.insurance-branches__table td:nth-child(1) {
  width: 24%;
}

.insurance-branches__table th:nth-child(2),
.insurance-branches__table td:nth-child(2) {
  width: 56%;
  text-align: right;
}

.insurance-branches__table th:nth-child(3),
.insurance-branches__table td:nth-child(3) {
  width: 20%;
  white-space: nowrap;
}

.insurance-branches__table a {
  color: #0b57d0;
  text-decoration: none;
  direction: ltr;
  display: inline-block;
}

.insurance-branches__table a:hover {
  text-decoration: underline;
}

.insurance-branches__note {
  margin: 16px 0 6px;
}

.insurance-branches__link {
  margin: 0;
}

@media (max-width: 640px) {
  .insurance-branches {
    font-size: 13px;
  }

  .insurance-branches__table th,
  .insurance-branches__table td {
    padding: 6px 7px;
  }

  .insurance-branches__table th:nth-child(1),
  .insurance-branches__table td:nth-child(1) {
    width: 30%;
  }

  .insurance-branches__table th:nth-child(2),
  .insurance-branches__table td:nth-child(2) {
    width: 45%;
  }

  .insurance-branches__table th:nth-child(3),
  .insurance-branches__table td:nth-child(3) {
    width: 25%;
  }
}
/* پایان مراکز خسارت */


/* کسانی که انیمیشن نمی‌خوان */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}