/* =========================================================================
   صفحه‌ی تماس با ما (page-contact.php) — «کارت ویزیت»
   پایه: page-buying-guide.css (.rg، .rg-hd). جدا از تم صفحه‌های قوانین و خدمات.
   ========================================================================= */
.rc { --rc-glass: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(240, 242, 246, .42)); --rc-edge: rgba(255, 255, 255, .72); }
.rc ul { margin: 0; padding: 0; list-style: none; }

/* ---------- سربرگ: شیشه‌ی پاپ‌آپ با خط‌چین سرمه‌ای ---------- */
.rc-head {
  position: relative; margin-top: 18px; padding: 22px 18px 24px; border-radius: 30px; text-align: center;
  border: 1px solid var(--rg-edge-lux, rgba(255, 255, 255, .55));
  background: var(--rg-glass-lux, linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(238, 240, 244, .2) 100%));
  -webkit-backdrop-filter: var(--rg-blur-lux, blur(30px) saturate(160%)); backdrop-filter: var(--rg-blur-lux, blur(30px) saturate(160%));
  box-shadow: var(--rg-hi-lux, inset 0 1.5px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .4)), 0 30px 60px -28px rgba(20, 25, 35, .5);
}
.rc-head::before { content: ''; position: absolute; inset: 7px; border: 1.5px dashed rgba(13, 27, 46, .55); border-radius: 24px; pointer-events: none; }
.rc-head__orn { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; }
.rc-head__orn i { width: 38px; height: 1px; background: rgba(13, 27, 46, .55); }
.rc-head__orn b { width: 6px; height: 6px; transform: rotate(45deg); background: var(--rg-nd); }
.rc-head h1 { position: relative; margin-top: 10px !important; font-size: 26px; font-weight: 800; line-height: 1.5; color: var(--rg-b); }
.rc-head__sub { position: relative; margin-top: 6px !important; font-size: 13px; line-height: 1.9; color: rgba(19, 39, 63, .72); }

/* کپسول وضعیت پاسخگویی */
.rc-status {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  width: max-content; max-width: 100%; margin: 0 auto 16px !important; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 #fff, 0 12px 22px -14px rgba(20, 25, 35, .5);
  font-size: 13px; color: var(--rg-nd);
}
.rc-status b { font-weight: 800; }
.rc-status small { padding-right: 10px; border-right: 1px solid rgba(19, 39, 63, .15); font-size: 11.5px; color: rgba(19, 39, 63, .62); }
.rc-status__dot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: rgba(19, 39, 63, .35); }
.rc-status.is-open .rc-status__dot { background: #2f6b4f; box-shadow: 0 0 0 4px rgba(47, 107, 79, .15); }
.rc-status.is-closed .rc-status__dot { background: var(--rg-b); box-shadow: 0 0 0 4px rgba(78, 0, 0, .1); }

/* ---------- کارت ویزیت ---------- */
.rc-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: min(100%, 460px); margin: 26px auto 0; padding: 0 10px 40px;
  perspective: 1400px;
}
.rc-card__under {
  position: absolute; inset: 18px 4px 2px 22px; border-radius: 14px; transform: rotate(5deg);
  background: linear-gradient(160deg, #5a0a14, #3a0408 60%, #24030a);
  box-shadow: 0 26px 40px -22px rgba(40, 4, 10, .8);
}
.rc-card__under::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(253, 251, 247, .22); border-radius: 8px; }
.rc-card__under::after {
  content: 'R'; position: absolute; left: 30px; bottom: 0;
  font-family: 'Playfair Display', Georgia, 'Noto Naskh Arabic', serif; font-style: italic; font-size: 44px; line-height: 1.2; color: #ece6e0;
}
.rc-card__in {
  position: relative; display: block; width: 100%; aspect-ratio: 1.6 / 1; margin: 0; padding: 0; border: 0;
  background: none; font: inherit; color: inherit; text-align: right; cursor: default;
  transform-style: preserve-3d; transform: rotate(-2.5deg) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .9s var(--rg-e);
  -webkit-tap-highlight-color: transparent;
}
button.rc-card__in { cursor: pointer; }
button.rc-card__in:focus-visible { outline: 2px solid var(--rg-b); outline-offset: 6px; border-radius: 16px; }
.rc-card.is-tilting .rc-card__in { transition: transform .15s linear; }
.rc-card__in.is-flipped { transform: rotate(2deg) rotateX(var(--rx)) rotateY(calc(180deg + var(--ry))); }

.rc-face {
  position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 14px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.rc-face--back { transform: rotateY(180deg); }
.rc-face__img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rc-card.is-custom .rc-face { overflow: visible; border-radius: 0; filter: drop-shadow(0 22px 22px rgba(19, 25, 35, .28)); }

/* کارت پیش‌فرض (تا عکس سفارشی‌سازی گذاشته نشده) */
.rc-def {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px 20px 16px;
  border-radius: 14px; background: linear-gradient(160deg, #fffdf9, #f5efe5);
  box-shadow: inset 0 1px 0 #fff, 0 30px 46px -24px rgba(19, 25, 35, .6), 0 6px 12px -8px rgba(19, 25, 35, .35);
}
.rc-def::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(78, 0, 0, .16); border-radius: 8px; pointer-events: none; }
.rc-def__brand { display: block; }
.rc-def__logo { display: block; direction: ltr; text-align: right; font-family: 'Playfair Display', Georgia, 'Noto Naskh Arabic', serif; font-size: 22px; letter-spacing: .32em; color: var(--rg-b); }
.rc-def__sub { display: block; margin-top: 3px; font-size: 11px; color: rgba(19, 39, 63, .6); }
.rc-def__rule { display: block; width: 46px; height: 1px; margin-top: 10px; background: rgba(78, 0, 0, .35); }
.rc-def__list { display: flex; flex-direction: column; font-size: 12px; line-height: 2.1; color: var(--rg-nd); }
.rc-def__li { display: flex; align-items: center; gap: 8px; }
.rc-def__li svg { flex: 0 0 15px; width: 15px; height: 15px; fill: none; stroke: var(--rg-b); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rc-def__li bdi { margin-right: auto; color: rgba(19, 39, 63, .65); font-size: 11px; }
.rc-def--back { align-items: center; justify-content: center; gap: 6px; color: var(--rg-iv); background: linear-gradient(160deg, #5a0a14, #3a0408 60%, #24030a); }
.rc-def--back::before { border-color: rgba(253, 251, 247, .22); }
.rc-def__mono { font-family: 'Playfair Display', Georgia, 'Noto Naskh Arabic', serif; font-style: italic; font-size: 64px; line-height: 1; color: #ece6e0; }
.rc-def--back .rc-def__sub { color: rgba(253, 251, 247, .7); letter-spacing: .04em; }

.rc-hint { margin-top: -26px !important; text-align: center; font-size: 11px; color: rgba(19, 39, 63, .5); }

/* ---------- راه‌های تماس ---------- */
.rc-ways { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.rc-main {
  display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px 12px 20px; border-radius: 999px;
  color: var(--rg-iv); text-decoration: none; background: linear-gradient(160deg, #1d3554, var(--rg-nd) 60%, #081321);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 22px 34px -20px rgba(9, 20, 34, .8);
  -webkit-tap-highlight-color: transparent; transition: transform .35s var(--rg-e);
}
.rc-main__ic { display: flex; flex: 0 0 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); }
.rc-main__ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rc-main__t { flex: 1; font-size: 15px; font-weight: 800; line-height: 1.6; }
.rc-main__t small { display: block; font-size: 11px; font-weight: 500; opacity: .65; }
.rc-main__ar { font-size: 17px; opacity: .8; transition: transform .35s var(--rg-e); }

.rc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rc-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 22px;
  border: 1px solid var(--rc-edge); background: var(--rc-glass); box-shadow: inset 0 1.5px 0 #fff, 0 16px 30px -22px rgba(20, 25, 35, .5);
  color: var(--rg-nd); font-size: 12px; font-weight: 800; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--rg-e);
}
.rc-tile__ic { display: flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .72); border: 1px solid rgba(19, 39, 63, .2); transition: border-color .3s ease; }
.rc-tile__ic svg { width: 19px; height: 19px; fill: none; stroke: var(--rg-n); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rc-main.is-off, .rc-tile.is-off { opacity: .55; cursor: default; }
a.rc-main:active, a.rc-tile:active { transform: scale(.97); }
a.rc-main:focus-visible, a.rc-tile:focus-visible, .rc-faq a:focus-visible { outline: 2px solid var(--rg-b); outline-offset: 3px; }

/* ---------- پرسش‌های پرتکرار ---------- */
.rc-faq { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 6px; }
.rc-faq a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; -webkit-tap-highlight-color: transparent; border-radius: 16px; }
.rc-faq__ic {
  display: flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 20px;
  border: 1px solid var(--rc-edge); background: var(--rc-glass); box-shadow: inset 0 1.5px 0 #fff, 0 14px 24px -16px rgba(20, 25, 35, .55);
  transition: transform .35s var(--rg-e), border-color .3s ease;
}
.rc-faq__ic svg { width: 21px; height: 21px; fill: none; stroke: var(--rg-b); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rc-faq__t { font-size: 11px; font-weight: 700; line-height: 1.6; color: var(--rg-nd); }
.rc-faq a:active .rc-faq__ic { transform: scale(.94); }

@media (hover: hover) {
  a.rc-main:hover .rc-main__ar { transform: translateX(-4px); }
  a.rc-tile:hover { transform: translateY(-2px); }
  a.rc-tile:hover .rc-tile__ic, .rc-faq a:hover .rc-faq__ic { border-color: var(--rg-b); }
  .rc-faq a:hover .rc-faq__ic { transform: translateY(-3px); }
}

@media (min-width: 768px) {
  .rc-head { width: min(100%, 560px); margin-right: auto; margin-left: auto; padding: 28px 28px 30px; }
  .rc-head h1 { font-size: 32px; }
  .rc-ways { width: min(100%, 560px); margin-right: auto; margin-left: auto; }
  .rc-faq { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .rc-card__in, .rc-main, .rc-main__ar, .rc-tile, .rc-faq__ic { transition: none; }
}
