/* لندینگ آزمایش در محل — هم‌تراز با تم نوبت‌دهی آنلاین (teal طب تو) */
:root {
  --lb-blue: #0d9488;
  --lb-blue-mid: #14b8a6;
  --lb-cyan: #10b981;
  --lb-ink: #0f172a;
  --lb-muted: #64748b;
  --lb-line: #e2e8f0;
  --lb-soft: #f0fdfa;
  --lb-accent: #0d9488;
  --lb-radius: 18px;
  --lb-shadow: 0 18px 48px -16px rgba(13, 148, 136, 0.28);
  --font: 'Vazirmatn', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
body.lb-landing {
  margin: 0;
  font-family: var(--font);
  color: var(--lb-ink);
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— هدر سفید sticky (مشابه lab-landing-design) —— */
.lb-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lb-line);
}
.lb-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lb-brand-new {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #0f766e;
  text-decoration: none;
  flex-shrink: 0;
}
.lb-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #0d9488, #0f766e);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  font-size: 0.95rem;
}
.lb-nav-links {
  display: none;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--lb-muted);
}
.lb-nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
  position: relative;
}
.lb-nav-links a:hover { color: #0f766e; }
.lb-nav-links a.active {
  color: #0d9488;
}
.lb-nav-links a.active::after {
  content: "";
  position: absolute;
  inset-inline: 0.15rem;
  bottom: -0.45rem;
  height: 2px;
  background: #0d9488;
  border-radius: 2px;
}
.lb-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.lb-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--lb-line);
  border-radius: 999px;
  background: #fff;
  color: var(--lb-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.lb-icon-btn:hover {
  border-color: #0d9488;
  color: #0d9488;
  background: var(--lb-soft);
}
.lb-btn-login,
.lb-nav-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #0f766e;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.12s;
}
.lb-btn-login:hover,
.lb-nav-solid:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff !important;
}
@media (min-width: 900px) {
  .lb-nav-links { display: flex; }
}

/* —— Hero یک‌تکه: عکس کامل + گرادیان خوانایی + لبه موج‌دار —— */
.lb-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #0f172a 0%, #134e4a 55%, #0d9488 100%);
}
.lb-hero__stage {
  position: relative;
  min-height: clamp(280px, 42vw, 420px);
  z-index: 1;
}
.lb-hero__media {
  position: absolute;
  inset: 0;
  background:
    url('/images/lab-booking-hero.jpg?v=20260718e') center center / cover no-repeat;
  z-index: 0;
}
.lb-hero__panel {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  /* گرادیان نرم از سمت متن (راست در RTL) روی همان عکس — بدون برش دوتکه */
  background: linear-gradient(
    to left,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(19, 78, 74, 0.78) 38%,
    rgba(13, 148, 136, 0.35) 68%,
    rgba(13, 148, 136, 0.08) 100%
  );
  padding: 3.25rem 0 4.25rem;
}
.lb-hero__content {
  max-width: 34rem;
  margin-inline-start: 0;
  margin-inline-end: auto;
}
.lb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.95;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}
.lb-hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-weight: 900;
  line-height: 1.4;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.lb-hero__lead {
  font-size: 0.95rem;
  line-height: 1.85;
  opacity: 0.96;
  margin: 0 0 1.25rem;
  max-width: 32rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
.lb-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(255,255,255,0.9);
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 0.7rem 1.35rem;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.lb-hero__cta:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
  transform: translateY(-2px);
}
/* موج سفید روی پایین هیرو می‌نشیند تا پس‌زمینه تیره دیده نشود */
.lb-hero__wave {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 56px;
  z-index: 4;
  pointer-events: none;
  color: #ffffff;
}

/* موبایل: عکس سمت راست، متن روبه‌رو (چپ) — کنار هم */
@media (max-width: 991px) {
  .lb-hero__stage {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 210px;
  }
  .lb-hero__media {
    position: relative;
    inset: auto;
    order: 1; /* در RTL اولین ستون بصری = راست */
    width: 42%;
    flex-shrink: 0;
    min-height: 210px;
    background-position: center 30%;
  }
  .lb-hero__panel {
    order: 2;
    flex: 1;
    min-height: 210px;
    padding: 4.5rem 0 1.5rem;
    background: linear-gradient(160deg, #0f172a 0%, #134e4a 55%, #0d9488 100%);
  }
  .lb-hero__content {
    max-width: none;
    padding-inline: 0.15rem;
  }
  .lb-hero h1 {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
  }
  .lb-hero__lead {
    font-size: 0.78rem;
    line-height: 1.65;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .lb-hero__cta {
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
  }
  .lb-hero__eyebrow {
    font-size: 0.65rem;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.55rem;
  }
  .lb-hero__wave { height: 40px; }

  #packages.lb-section {
    padding-top: 1.35rem;
    padding-bottom: 2.75rem;
  }
  #packages .lb-section__head {
    margin-bottom: 1.1rem;
  }
}

@media (max-width: 575px) {
  .lb-hero__media { width: 38%; }
  .lb-hero__panel { padding-top: 4.25rem; }
  .lb-hero h1 { font-size: 0.98rem; }
  .lb-hero__lead {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  #packages.lb-section {
    padding-top: 1rem;
  }
}

.lb-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: #f59e0b;
  font-size: 0.85rem;
  line-height: 1;
}
.lb-stars i { font-size: 0.82rem; }
.lb-stars__meta {
  margin-right: 0.4rem;
  color: var(--lb-muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.lab-card__rating { margin: 0.35rem 0 0.5rem; }

.lb-section {
  padding: 4rem 0;
}
.lb-section--soft { background: var(--lb-soft); }
.lb-section__head {
  text-align: center;
  margin-bottom: 2rem;
}
.lb-section__head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 900;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.lb-section__head p {
  color: var(--lb-muted);
  margin: 0 auto;
  max-width: 36rem;
  line-height: 1.7;
}

/* سه مسیر شروع رزرو — بالای پکیج سلامت */
.lb-intent {
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 55%, #f8fafc 100%);
  border: 1px solid #ccfbf1;
  text-align: right;
}
.lb-intent__label {
  margin: 0 0 0.85rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--lb-ink);
}
.lb-intent__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.lb-intent__btn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: right;
  width: 100%;
  padding: 0.9rem 0.85rem;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.lb-intent__btn:hover {
  border-color: #5eead4;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.12);
  transform: translateY(-2px);
}
.lb-intent__btn.is-active {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.lb-intent__icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 1.05rem;
}
.lb-intent__btn[data-intent="tracking"] .lb-intent__icon {
  background: #e8f5e9;
  color: #2e7d32;
}
.lb-intent__btn[data-intent="prescription"] .lb-intent__icon {
  background: #fff3e0;
  color: #ef6c00;
}
.lb-intent__btn[data-intent="package"] .lb-intent__icon {
  background: #f3e5f5;
  color: #7b1fa2;
}
.lb-intent__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.lb-intent__body strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--lb-ink);
}
.lb-intent__body small {
  font-size: 0.75rem;
  color: var(--lb-muted);
  line-height: 1.45;
}
@media (max-width: 767px) {
  .lb-intent__grid {
    grid-template-columns: 1fr;
  }
}

/* Packages — تب‌های دسته‌بندی (داده از پنل ادمین / category) */
.lb-section__head--center {
  text-align: center;
}
.lb-section__head--center p {
  margin-inline: auto;
  max-width: 36rem;
}
.pkg-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.pkg-filter-btn {
  border: 1px solid var(--lb-line);
  background: #fff;
  color: var(--lb-muted);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pkg-filter-btn:hover {
  border-color: var(--lb-blue);
  color: var(--lb-blue);
  background: var(--lb-soft);
}
.pkg-filter-btn.active {
  background: var(--lb-blue);
  border-color: var(--lb-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.pkg-card {
  background: #fff;
  border: 1.5px solid #94a3b8;
  border-radius: var(--lb-radius);
  padding: 1.25rem 1.35rem 1.35rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lb-shadow);
  border-color: #99f6e4;
}
.pkg-card.featured {
  border-color: var(--lb-cyan);
  box-shadow: var(--lb-shadow);
}
.pkg-card.selected {
  border-color: var(--lb-accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.18);
}
.pkg-card__badge {
  position: static;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--lb-blue);
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.pkg-card__title {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0 0 0.55rem;
  line-height: 1.45;
  padding-left: 0;
}
.pkg-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.65rem;
}
.pkg-card__meta .badge {
  font-weight: 600;
  font-size: 0.72rem;
}
.pkg-card__price {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--lb-blue);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}
.pkg-card__price small {
  font-size: 0.72rem;
  color: var(--lb-muted);
  font-weight: 500;
}
.pkg-card__desc {
  font-size: 0.82rem;
  color: var(--lb-muted);
  line-height: 1.6;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pkg-tests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 2rem;
}
.pkg-chip {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  color: var(--lb-blue);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pkg-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}
.pkg-card__actions .btn {
  flex: 1;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 999px;
}

/* Labs search + cards */
.lb-search {
  background: #fff;
  border: 1px solid var(--lb-line);
  border-radius: calc(var(--lb-radius) + 4px);
  padding: 1.15rem;
  box-shadow: 0 10px 30px -18px rgba(15,41,66,0.25);
  margin-bottom: 1.75rem;
}
.lb-search .form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lb-muted);
  margin-bottom: 0.35rem;
}
.lb-search .form-control,
.lb-search .form-select {
  border-radius: 12px;
  border-color: #d8e2ec;
  min-height: 46px;
}
.lb-search .form-control:focus,
.lb-search .form-select:focus {
  border-color: var(--lb-cyan);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.18);
}

.lab-card {
  background: #fff;
  border: 1px solid var(--lb-line);
  border-radius: var(--lb-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lb-shadow);
}
.lab-card__top {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.15rem 0.75rem;
  align-items: flex-start;
}
.lab-card__logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(145deg, #0d9488, #14b8a6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  flex-shrink: 0;
  overflow: hidden;
}
.lab-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lab-card__name {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.lab-card__meta {
  font-size: 0.8rem;
  color: var(--lb-muted);
  margin: 0;
  line-height: 1.55;
}
.lab-card__body {
  padding: 0 1.15rem 1rem;
  flex: 1;
}
.lab-card__bio {
  font-size: 0.82rem;
  color: var(--lb-muted);
  line-height: 1.65;
  margin: 0.35rem 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lab-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.lab-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}
.lab-tag--featured {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}
.lab-tag--home {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}
.lab-card__actions {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.15rem 1.15rem;
}
.lab-card__actions .btn {
  flex: 1;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
}

.lb-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--lb-muted);
  border: 1px dashed var(--lb-line);
  border-radius: var(--lb-radius);
  background: #fff;
}

.lb-footer {
  background: var(--lb-ink);
  color: rgba(255,255,255,0.72);
  padding: 2rem 0;
  font-size: 0.9rem;
  text-align: center;
}
.lb-footer a { color: #7dd3fc; }

.pkg-modal-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  white-space: pre-wrap;
  max-height: 220px;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--lb-line);
}
.pkg-modal-tests {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.45rem;
  max-height: 280px;
  overflow-y: auto;
}
.pkg-modal-test-item {
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  text-align: center;
}
