/* قالب صفحه سرویس — ۸۰٪ المنتور + ۲۰٪ فرم چسبان */

body.mycell-service-page {
  --svc-n: #000037;
  --svc-c: #7bdcee;
  --svc-muted: rgba(0, 0, 55, 0.55);
  --svc-radius: 16px;
  --svc-sticky-top: calc(var(--mycell-header-h, 72px) + 0.75rem);
}

body.mycell-service-page #content.mycell-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.mycell-service-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(220px, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  width: min(100% - 2rem, 1400px);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.75rem) 1rem 3rem;
  direction: rtl;
}

/* RTL: ستون اول (محتوا) راست، ستون دوم (فرم) چپ */
.mycell-service-main {
  min-width: 0;
}

.mycell-service-sidebar {
  min-width: 0;
  align-self: start;
  position: relative;
}

/* دسکتاپ: فرم fixed زیر هدر — همیشه دم دست */
@media (min-width: 992px) {
  .mycell-service-form-sticky {
    position: fixed;
    top: var(--svc-sticky-top);
    left: var(--mycell-form-left, 1rem);
    width: var(--mycell-form-width, 260px);
    z-index: 999;
    max-height: calc(100vh - var(--svc-sticky-top) - 1rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mycell-service-form-sticky.is-unpinned {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: none;
  }
}

@media (max-width: 991px) {
  .mycell-service-form-sticky {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    z-index: 1;
    max-height: none;
  }
}

.mycell-service-form-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 55, 0.1);
  border-radius: var(--svc-radius);
  padding: 1.35rem 1.15rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 55, 0.08);
}

.mycell-service-form-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--svc-n);
  line-height: 1.35;
}

.mycell-service-form-card__sub {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--svc-muted);
}

.mycell-service-form__field {
  display: block;
  margin-bottom: 0.85rem;
}

.mycell-service-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--svc-n);
}

.mycell-service-form__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 55, 0.16);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--svc-n);
  background: #fafbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mycell-service-form__input:focus {
  outline: none;
  border-color: var(--svc-c);
  box-shadow: 0 0 0 3px rgba(123, 220, 238, 0.35);
}

.mycell-service-form__submit {
  width: 100%;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--svc-n) 0%, #00005a 100%);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.mycell-service-form__submit:hover {
  opacity: 0.92;
}

.mycell-service-form__submit:active {
  transform: scale(0.98);
}

.mycell-service-form__note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--svc-muted);
}

.mycell-service-form__note.is-success {
  color: #0a6b4a;
}

.mycell-service-form__note.is-error {
  color: #b42318;
}

/* المنتور داخل ستون ۸۰٪ */
body.mycell-service-page .mycell-service-main .elementor {
  width: 100%;
  max-width: 100%;
}

body.mycell-service-page .mycell-service-main .e-con.e-parent,
body.mycell-service-page .mycell-service-main .elementor-section {
  width: 100% !important;
  max-width: 100% !important;
}

/* هیرو سرویس (کلاس سفارشی در المنتور) */
.mycell-svc-hero .elementor-heading-title {
  margin: 0;
  max-width: 28ch;
  margin-inline: auto;
}

@media (max-width: 991px) {
  .mycell-service-layout {
    grid-template-columns: 1fr;
  }

  .mycell-service-sidebar {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mycell-service-form__submit {
    transition: none;
  }
}

/* جدول مقایسه روش‌های درمان */
.mycell-svc-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 55, 0.06);
}

.mycell-svc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.55;
  background: #fff;
}

.mycell-svc-table caption {
  caption-side: top;
  text-align: right;
  font-weight: 800;
  color: var(--svc-n, #000037);
  padding: 0 0 0.75rem;
  font-size: 0.95rem;
}

.mycell-svc-table th,
.mycell-svc-table td {
  border: 1px solid rgba(0, 0, 55, 0.12);
  padding: 0.65rem 0.75rem;
  text-align: right;
  vertical-align: top;
}

.mycell-svc-table thead th {
  background: #000037;
  color: #fff;
  font-weight: 700;
}

.mycell-svc-table tbody tr:nth-child(even) {
  background: rgba(123, 220, 238, 0.08);
}

.mycell-svc-table tbody tr:hover {
  background: rgba(123, 220, 238, 0.16);
}

body.mycell-service-page .mycell-service-main .elementor-widget-text-editor p {
  margin: 0 0 1rem;
  line-height: 1.85;
  color: rgba(0, 0, 55, 0.88);
}

body.mycell-service-page .mycell-service-main .elementor-widget-text-editor a {
  color: var(--svc-n, #000037);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(123, 220, 238, 0.85);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body.mycell-service-page .mycell-service-main .elementor-widget-text-editor a:hover {
  color: #00005a;
  text-decoration-color: var(--svc-c, #7bdcee);
}

body.mycell-service-page .mycell-service-main .elementor-widget-heading h2 {
  margin: 0 0 1rem;
}

body.mycell-service-page .mycell-service-main .elementor-widget-image img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
}
