/**
 * Treatment Module — frontend component styles.
 *
 * Scope: ONLY elements the plugin's own shortcodes / blocks / Elementor widgets
 * render (all `.tmom-*` prefixed). This file must never style the host theme —
 * no `body`, no headings, no `.wp-block-*`, no `.woocommerce`. It is enqueued
 * only on views that actually contain plugin markup (see FrontendController).
 *
 * The "Care Pharmacy" site design (colours, fonts, page chrome, mega-menu,
 * homepage sections) lives in the separate `care-pharmacy-theme` child theme,
 * not here.
 */

:root {
  /* Brand defaults — a host theme can override --tmom-accent* via its own CSS. */
  --tmom-accent: var(--wp--preset--color--primary, #490160);
  --tmom-accent-strong: var(--wp--preset--color--primary, #38014a);
  --tmom-accent-contrast: var(--wp--preset--color--background, #ffffff);

  --tmom-purple-deep: #490160;
  --tmom-purple-muted: #8b5a94;
  --tmom-purple-light: #faf5ff;
  --tmom-purple-soft: #f3e8f8;
  --tmom-purple-border: #ebd5f2;

  /* Patient consultation & RAF form defaults — host themes can customize these */
  --tmom-consultation-accent: var(--tmom-accent, #490160);
  --tmom-consultation-shadow: rgba(73, 1, 96, 0.25);
  --tmom-progress-gradient: linear-gradient(90deg, #6b21a8, #9333ea);

  --tmom-teal: #0d9488;
  --tmom-teal-light: #f0fdfa;
  --tmom-teal-border: #99f6e4;
  
  --tmom-orange: #f97316;
  --tmom-orange-light: #fff7ed;
  
  --tmom-slate-900: #1a0422;
  --tmom-slate-800: #2e1039;
  --tmom-slate-700: #4a2856;
  --tmom-slate-600: #6b4d75;
  --tmom-slate-500: #8a7092;
  --tmom-slate-400: #ab98b2;
  --tmom-slate-300: #d4c7da;
  --tmom-slate-200: #ebe3ef;
  --tmom-slate-100: #f7f3f9;
  --tmom-slate-50: #fdfbfd;
  
  --tmom-shadow-soft: 0 2px 20px rgba(73, 1, 96, 0.08);
  --tmom-shadow-medium: 0 6px 30px rgba(73, 1, 96, 0.12);
  --tmom-shadow-large: 0 16px 50px rgba(73, 1, 96, 0.20);
  
  --tmom-radius-3xl: 24px;
  --tmom-radius-2xl: 18px;
  --tmom-radius-xl: 14px;
  --tmom-radius-lg: 10px;
  --tmom-radius-md: 8px;
  --tmom-radius-full: 9999px;
  
  /* Inherit the host theme's typography — the plugin ships no webfont. */
  --tmom-font-display: inherit;
  --tmom-font-sans: inherit;
  --tmom-font-body: inherit;
}

/* -------- Buttons & badges -------- */
.tmom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tmom-purple-light);
  color: var(--tmom-purple-deep);
  font-weight: 700;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: var(--tmom-radius-full);
  border: 1px solid var(--tmom-purple-border);
}

.tmom-badge-teal {
  background: var(--tmom-teal-light);
  color: var(--tmom-teal);
  border-color: var(--tmom-teal-border);
}

/* Buttons */
.tmom-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #490160 0%, #701a88 100%) !important;
  color: #ffffff !important;
  font-family: var(--tmom-font-sans) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 13px 26px !important;
  border-radius: var(--tmom-radius-xl) !important;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 16px rgba(73, 1, 96, 0.25) !important;
}

.tmom-btn-primary:hover {
  background: linear-gradient(135deg, #38014a 0%, #58126b 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(73, 1, 96, 0.35) !important;
  color: #ffffff !important;
}

.tmom-btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  color: var(--tmom-purple-deep) !important;
  font-family: var(--tmom-font-sans) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 13px 26px !important;
  border-radius: var(--tmom-radius-xl) !important;
  border: 1.5px solid var(--tmom-purple-border) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  box-shadow: var(--tmom-shadow-soft) !important;
}

.tmom-btn-secondary:hover {
  background: var(--tmom-purple-light) !important;
  border-color: var(--tmom-purple-muted) !important;
  transform: translateY(-2px) !important;
  color: var(--tmom-purple-deep) !important;
}

/* ==========================================================================
   2. HERO BANNER & SEARCH SECTION
   ========================================================================== */

.tmom-home-hero {
  position: relative;
  background: linear-gradient(135deg, #faf5ff 0%, #f6eaf9 50%, #ffffff 100%) !important;
  border: 1.5px solid var(--tmom-purple-border);
  border-radius: var(--tmom-radius-3xl);
  padding: 70px 24px 60px 24px !important;
  text-align: center;
  margin: 20px auto 40px auto !important;
  box-shadow: var(--tmom-shadow-medium);
  overflow: hidden;
  box-sizing: border-box;
}

.tmom-home-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tmom-home-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(73, 1, 96, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tmom-hero-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--tmom-purple-border);
  padding: 7px 18px;
  border-radius: var(--tmom-radius-full);
  box-shadow: var(--tmom-shadow-soft);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--tmom-slate-700);
}

.tmom-hero-trust-pill strong {
  color: var(--tmom-purple-deep);
}

.tmom-home-title {
  font-size: 54px !important;
  font-weight: 900 !important;
  color: var(--tmom-slate-900) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em !important;
  max-width: 860px;
  margin: 0 auto 18px auto !important;
}

@media (max-width: 768px) {
  .tmom-home-title {
    font-size: 36px !important;
  }
}

.tmom-home-subtitle {
  font-size: 18.5px !important;
  color: var(--tmom-slate-600) !important;
  line-height: 1.6 !important;
  max-width: 680px;
  margin: 0 auto 34px auto !important;
}

/* Interactive Search Bar */
.tmom-hero-search-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto 28px auto;
  z-index: 50;
}

.tmom-search-box {
  position: relative;
  background: #ffffff !important;
  border: 2px solid var(--tmom-purple-border) !important;
  border-radius: var(--tmom-radius-full) !important;
  box-shadow: 0 8px 24px -6px rgba(73, 1, 96, 0.12), 0 2px 6px rgba(0,0,0,0.04) !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  padding: 6px 8px 6px 20px !important;
  box-sizing: border-box !important;
  min-height: 60px !important;
}

.tmom-search-box:focus-within {
  border-color: #2e1065 !important;
  box-shadow: 0 12px 32px -8px rgba(46, 16, 101, 0.25), 0 0 0 4px var(--tmom-purple-light) !important;
}

.tmom-search-icon {
  font-size: 20px;
  color: var(--tmom-purple-deep);
  flex-shrink: 0;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tmom-search-input {
  flex: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px 12px 10px 0 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border: none !important;
  background: transparent !important;
  color: var(--tmom-slate-900) !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

.tmom-search-input::placeholder {
  color: var(--tmom-slate-400) !important;
  font-size: 15px !important;
}

.tmom-search-submit-btn {
  background: #2e1065 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--tmom-radius-full) !important;
  padding: 12px 22px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: inherit !important;
  box-shadow: 0 4px 12px rgba(46, 16, 101, 0.2) !important;
}

.tmom-search-submit-btn:hover {
  background: #4c1d95 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(46, 16, 101, 0.3) !important;
}

/* Floating Search Autocomplete Dropdown */
.tmom-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--tmom-purple-border);
  border-radius: var(--tmom-radius-2xl);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18);
  max-height: 380px;
  overflow-y: auto;
  z-index: 999;
  padding: 10px 0;
}

.tmom-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  text-decoration: none !important;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f8fafc;
}

.tmom-search-item:last-child {
  border-bottom: none;
}

.tmom-search-item:hover {
  background: var(--tmom-purple-light);
}

.tmom-search-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tmom-search-item-icon {
  font-size: 22px;
}

.tmom-search-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--tmom-slate-900);
}

.tmom-search-item-group {
  font-size: 12px;
  font-weight: 700;
  color: #2e1065;
  background: var(--tmom-purple-light);
  padding: 3px 10px;
  border-radius: 9999px;
}

.tmom-search-item-action {
  font-size: 13px;
  font-weight: 700;
  color: #2e1065;
}

/* Quick Condition Links */
.tmom-quick-search-tags,
.tmom-quick-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.tmom-tag-label,
.tmom-pill-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--tmom-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tmom-quick-tag,
.tmom-condition-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--tmom-slate-200);
  color: var(--tmom-slate-800);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--tmom-radius-full);
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.tmom-quick-tag:hover,
.tmom-condition-pill:hover {
  background: #2e1065;
  color: #ffffff !important;
  border-color: #2e1065;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(46, 16, 101, 0.25);
}

/* Trust Badges Strip */
.tmom-trust-badges,
.tmom-trust-strip-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.tmom-trust-item,
.tmom-hero-trust-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--tmom-slate-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   3. MODERN POPULAR CATEGORIES GRID (OXFORDMEDS CARDS WITH IMAGES)
   ========================================================================== */

.tmom-directory-modern-wrap {
  margin: 40px auto 60px auto !important;
  width: 100%;
}

/* Grouped /treatments/ Online Doctor directory. */
.tmom-grouped-directory {
  width: min(1240px, calc(100vw - 48px)) !important;
  max-width: 1240px !important;
  margin-left: calc(50% - min(620px, calc(50vw - 24px))) !important;
  box-sizing: border-box;
}

.tmom-grouped-directory .tmom-dir-header h1 {
  margin: 14px 0 12px;
  color: var(--tmom-slate-900);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.tmom-grouped-directory .tmom-dir-header > p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--tmom-slate-600);
  font-size: 17px;
  line-height: 1.65;
}

.tmom-directory-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.tmom-directory-trust span {
  padding: 14px 18px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #eff6ff;
  color: #334155;
  font-weight: 700;
  text-align: center;
}

.tmom-directory-group-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 44px;
}

.tmom-directory-group-nav a {
  padding: 10px 18px;
  border: 1px solid var(--tmom-purple-border);
  border-radius: 999px;
  color: var(--tmom-purple-deep);
  font-weight: 700;
  text-decoration: none;
}

.tmom-directory-group-nav a:hover {
  background: var(--tmom-purple-deep);
  color: #fff;
}

.tmom-directory-groups {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.tmom-directory-group {
  scroll-margin-top: 32px;
}

.tmom-directory-group-heading {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.tmom-directory-group-heading h2 {
  margin: 0;
  color: var(--tmom-slate-900);
  font-size: 28px;
}

.tmom-directory-group-heading p {
  margin: 6px 0 0;
  color: var(--tmom-slate-600);
}

.tmom-group-treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tmom-group-treatment-link {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 16px;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: #f1f7fb;
  color: #0f172a;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tmom-group-treatment-link:hover {
  border-color: var(--tmom-purple-border);
  box-shadow: var(--tmom-shadow-medium);
  transform: translateY(-2px);
}

.tmom-group-treatment-link img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.tmom-group-treatment-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.tmom-group-treatment-copy strong {
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: normal;
  word-break: normal;
}

.tmom-group-treatment-copy small {
  color: #64748b;
  line-height: 1.4;
  overflow-wrap: normal;
  word-break: normal;
}

.tmom-group-treatment-arrow {
  display: grid;
  flex: 0 0 30px;
  margin-left: auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--tmom-purple-deep);
  font-weight: 800;
}

@media (max-width: 900px) {
  .tmom-group-treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .tmom-grouped-directory {
    width: calc(100vw - 24px) !important;
    margin-left: calc(50% - 50vw + 12px) !important;
  }
  .tmom-directory-trust,
  .tmom-group-treatment-grid { grid-template-columns: 1fr; }
  .tmom-directory-groups { gap: 38px; }
}

.tmom-dir-header {
  text-align: center;
  margin-bottom: 36px;
}

.tmom-filter-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 36px 0;
}

.tmom-filter-btn {
  background: #ffffff;
  color: var(--tmom-slate-700);
  border: 1.5px solid var(--tmom-slate-200);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--tmom-radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.tmom-filter-btn:hover {
  background: var(--tmom-purple-light);
  color: var(--tmom-purple-deep);
  border-color: var(--tmom-purple-border);
}

.tmom-filter-btn.active {
  background: var(--tmom-purple-deep) !important;
  color: #ffffff !important;
  border-color: var(--tmom-purple-deep) !important;
  box-shadow: 0 4px 16px rgba(73, 1, 96, 0.25) !important;
}

/* Visual Image Cards */
.tmom-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  width: 100%;
}

.tmom-treatment-card {
  position: relative;
  height: 380px;
  min-height: 380px;
  border-radius: var(--tmom-radius-3xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  box-sizing: border-box;
  text-decoration: none !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--tmom-shadow-soft);
  background-color: var(--tmom-slate-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tmom-treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--tmom-shadow-large);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Background image filling the entire card */
.tmom-card-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.tmom-treatment-card:hover .tmom-card-bg-img {
  transform: scale(1.08);
}

/* Dark Vignette Overlay for Crisp Contrast */
.tmom-card-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 4, 34, 0.15) 0%, rgba(26, 4, 34, 0.65) 45%, rgba(26, 4, 34, 0.96) 100%);
  z-index: 1;
  transition: background 0.3s ease;
}

.tmom-treatment-card:hover .tmom-card-bg-overlay {
  background: linear-gradient(180deg, rgba(26, 4, 34, 0.2) 0%, rgba(73, 1, 96, 0.7) 45%, rgba(26, 4, 34, 0.98) 100%);
}

.tmom-card-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tmom-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tmom-card-count-badge {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--tmom-radius-full);
}

.tmom-card-price-badge {
  background: #fdf4ff;
  color: #86198f;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--tmom-radius-full);
}

.tmom-card-title {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.tmom-card-desc {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

/* CTA Button contained cleanly inside card */
.tmom-card-cta-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  background: #ffffff !important;
  color: var(--tmom-purple-deep) !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  padding: 10px 16px !important;
  border-radius: var(--tmom-radius-lg) !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
  box-sizing: border-box !important;
  margin-top: 8px !important;
}

.tmom-treatment-card:hover .tmom-card-cta-btn {
  background: #fae8ff !important;
  color: var(--tmom-purple-deep) !important;
}

/* ==========================================================================
   6. CLINICAL FAQ ACCORDION
   ========================================================================== */

.tmom-faq-modern-wrap {
  max-width: 900px;
  margin: 20px auto 40px auto;
  width: 100%;
}

.tmom-faq-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.tmom-faq-tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--tmom-slate-200);
  color: var(--tmom-slate-700);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--tmom-radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tmom-faq-tab-btn:hover {
  background: var(--tmom-purple-light);
  border-color: var(--tmom-purple-border);
  color: var(--tmom-purple-deep);
}

.tmom-faq-tab-btn.active {
  background: var(--tmom-purple-deep) !important;
  color: #ffffff !important;
  border-color: var(--tmom-purple-deep) !important;
}

.tmom-faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tmom-faq-item-card {
  background: #ffffff;
  border: 1.5px solid var(--tmom-purple-border);
  border-radius: var(--tmom-radius-2xl);
  overflow: hidden;
  box-shadow: var(--tmom-shadow-soft);
  transition: all 0.2s ease;
}

.tmom-faq-item-card.active {
  border-color: var(--tmom-purple-deep);
  box-shadow: var(--tmom-shadow-medium);
}

.tmom-faq-question-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: inherit;
}

.tmom-faq-q-text {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--tmom-slate-900);
  line-height: 1.4;
}

.tmom-faq-icon {
  font-size: 18px;
  font-weight: 700;
  color: var(--tmom-purple-deep);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tmom-purple-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tmom-faq-answer-panel {
  display: none;
  padding: 0 24px 22px 24px;
  font-size: 15px;
  color: var(--tmom-slate-600);
  line-height: 1.65;
  border-top: 1px solid var(--tmom-purple-light);
  margin-top: 2px;
  padding-top: 16px;
}

.tmom-faq-item-card.active .tmom-faq-answer-panel {
  display: block;
}

/* ==========================================================================
   8. STEPPED CLINICAL QUESTIONNAIRE & NESTED FORMS (OXFORDMEDS STYLE)
   ========================================================================== */

.tmom-consultation-stepped-wrapper {
  margin: 30px auto 60px auto;
  max-width: 1240px;
  width: 100%;
  box-sizing: border-box;
}

/* Top 4-Step Consultation Progress Bar */
.tmom-stepper-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid var(--tmom-purple-border);
  border-radius: var(--tmom-radius-2xl);
  box-shadow: var(--tmom-shadow-soft);
}

.tmom-step-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.55;
  transition: all 0.2s ease;
}

.tmom-step-nav-item.completed {
  opacity: 0.9;
}

.tmom-step-nav-item.active {
  opacity: 1;
}

.tmom-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
  transition: all 0.2s ease;
}

.tmom-step-nav-item.completed .tmom-step-icon {
  background: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  color: #ffffff;
}

.tmom-step-nav-item.active .tmom-step-icon {
  background: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--tmom-purple-light);
}

.tmom-step-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--tmom-slate-700);
}

.tmom-step-nav-item.active .tmom-step-text {
  color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  font-weight: 800;
}

.tmom-step-line {
  flex: 0 1 60px;
  height: 2px;
  background: #e2e8f0;
}

.tmom-step-line.active {
  background: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
}

/* Two-Column Grid Layout */
.tmom-consultation-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .tmom-consultation-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Left Column / Heading */
.tmom-raf-page-heading {
  margin-bottom: 24px;
}

.tmom-raf-main-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160)) !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 8px 0 !important;
}

.tmom-raf-main-subtitle {
  font-size: 15px !important;
  color: var(--tmom-slate-600) !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Accordion Step Cards */
.tmom-raf-steps-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tmom-raf-step-card {
  background: #ffffff;
  border: 1.5px solid var(--tmom-purple-border);
  border-radius: var(--tmom-radius-2xl);
  overflow: hidden;
  box-shadow: var(--tmom-shadow-soft);
  transition: all 0.2s ease;
}

.tmom-raf-step-card.active {
  border-color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  box-shadow: var(--tmom-shadow-medium);
}

.tmom-step-card-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  background: #ffffff;
  user-select: none;
}

.tmom-step-num-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.tmom-step-header-info {
  flex: 1;
}

.tmom-step-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--tmom-slate-900) !important;
  margin: 0 !important;
}

.tmom-step-desc {
  font-size: 13.5px !important;
  color: var(--tmom-slate-500) !important;
  margin: 4px 0 0 0 !important;
}

.tmom-step-toggle-arrow {
  font-size: 18px;
  color: var(--tmom-slate-400);
  transition: transform 0.2s ease;
}

.tmom-raf-step-card.active .tmom-step-toggle-arrow {
  transform: rotate(180deg);
  color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
}

.tmom-step-card-body {
  padding: 0 24px 24px 24px;
  border-top: 1px solid var(--tmom-purple-light);
}

/* Question Items */
.tmom-step-questions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}

.tmom-question-block {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
}

.tmom-question-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tmom-question-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.tmom-q-badge {
  background: var(--tmom-purple-light);
  color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  font-weight: 800;
  font-size: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.tmom-q-title-wrap {
  flex: 1;
}

.tmom-q-title {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: var(--tmom-slate-900) !important;
  line-height: 1.4 !important;
  display: block;
}

.tmom-required-star {
  color: #dc2626;
  font-weight: 800;
  margin-left: 2px;
}

.tmom-q-desc {
  font-size: 13.5px;
  color: var(--tmom-slate-600);
  line-height: 1.55;
  margin-top: 6px;
}

.tmom-q-desc ul {
  margin: 6px 0 6px 18px;
  padding: 0;
}

.tmom-q-desc li {
  margin-bottom: 4px;
}

/* Pill Button Toggles (Yes / No) */
.tmom-pill-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.tmom-pill-btn {
  background: #ffffff;
  border: 1.5px solid var(--tmom-purple-border);
  color: var(--tmom-slate-700);
  padding: 9px 28px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
  font-family: inherit;
}

.tmom-pill-btn:hover {
  background: var(--tmom-purple-light);
  border-color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
}

.tmom-pill-btn.active {
  background: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160)) !important;
  color: #ffffff !important;
  border-color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160)) !important;
  box-shadow: 0 4px 12px var(--tmom-consultation-shadow, rgba(73, 1, 96, 0.25)) !important;
}

/* Inline Alerts */
.tmom-inline-stop-alert {
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-left: 5px solid #dc2626;
  border-radius: var(--tmom-radius-lg);
  padding: 14px 18px;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tmom-stop-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.tmom-stop-text {
  font-size: 14px;
  font-weight: 600;
  color: #991b1b;
  line-height: 1.5;
}

.tmom-inline-warn-alert {
  background: #fffbeb;
  border: 1.5px solid #fef3c7;
  border-left: 5px solid #d97706;
  border-radius: var(--tmom-radius-lg);
  padding: 14px 18px;
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tmom-warn-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.tmom-warn-text {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  line-height: 1.5;
}

/* Nested Question Container */
.tmom-nested-expansion {
  background: #fdfaff;
  border: 1.5px dashed var(--tmom-purple-border);
  border-radius: var(--tmom-radius-xl);
  padding: 16px 20px;
  margin-top: 12px;
  box-sizing: border-box;
}

.tmom-nested-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  margin-bottom: 8px;
}

.tmom-nested-q-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tmom-slate-900);
  margin-bottom: 6px;
}

.tmom-nested-q-desc {
  font-size: 13px;
  color: var(--tmom-slate-600);
  margin-bottom: 10px;
}

/* Text / Textarea / Select Inputs */
.tmom-input-text,
.tmom-input-select,
.tmom-input-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--tmom-purple-border);
  border-radius: var(--tmom-radius-lg);
  font-size: 14.5px;
  background: #ffffff;
  color: var(--tmom-slate-900);
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.2s ease;
}

.tmom-input-text:focus,
.tmom-input-select:focus,
.tmom-input-textarea:focus {
  outline: none;
  border-color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  box-shadow: 0 0 0 3px var(--tmom-purple-light);
}

/* Vertical Choices List (Radio & Checkbox) */
.tmom-choice-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.tmom-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1.5px solid var(--tmom-purple-border);
  border-radius: var(--tmom-radius-lg);
  cursor: pointer;
  transition: all 0.18s ease;
}

.tmom-choice-card:hover {
  background: var(--tmom-purple-light);
  border-color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
}

.tmom-choice-card input:checked ~ .tmom-choice-label {
  font-weight: 700;
  color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
}

.tmom-choice-label {
  font-size: 14px;
  color: var(--tmom-slate-800);
}

.tmom-consent-checkbox-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #fdfaff;
  border: 1.5px solid var(--tmom-purple-border);
  border-radius: var(--tmom-radius-lg);
  cursor: pointer;
}

.tmom-consent-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
}

/* Step Action Navigation Buttons */
.tmom-step-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.tmom-btn-step-prev {
  background: #ffffff;
  border: 1.5px solid var(--tmom-slate-200);
  color: var(--tmom-slate-700);
  padding: 11px 22px;
  border-radius: var(--tmom-radius-lg);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tmom-btn-step-prev:hover {
  background: #f1f5f9;
}

.tmom-btn-step-next {
  background: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--tmom-radius-lg);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--tmom-consultation-shadow, rgba(73, 1, 96, 0.25));
}

.tmom-btn-step-next:hover {
  background: var(--tmom-accent-strong, #38014a);
  transform: translateY(-1px);
}

.tmom-btn-step-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tmom-btn-submit-consultation {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #ffffff;
  border: none;
  padding: 14px 30px;
  border-radius: var(--tmom-radius-lg);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.tmom-btn-submit-consultation:hover {
  background: linear-gradient(135deg, #166534, #15803d);
  transform: translateY(-1px);
}
.tmom-btn-submit-consultation:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    filter: grayscale(0.25);
    box-shadow: none;
}

/* Right Sticky Sidebar Cards */
.tmom-consultation-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.tmom-sidebar-card {
  background: #ffffff;
  border: 1.5px solid var(--tmom-purple-border);
  border-radius: var(--tmom-radius-2xl);
  padding: 24px 20px;
  box-shadow: var(--tmom-shadow-soft);
}

.tmom-sidebar-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--tmom-slate-900) !important;
  margin: 0 0 14px 0 !important;
}

.tmom-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tmom-slate-600);
  margin-bottom: 8px;
}

.tmom-progress-percent {
  color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  font-weight: 800;
}

.tmom-progress-track {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.tmom-progress-fill {
  height: 100%;
  background: var(--tmom-progress-gradient, linear-gradient(90deg, #6b21a8, #9333ea));
  border-radius: 9999px;
  transition: width 0.35s ease;
}

.tmom-trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tmom-trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tmom-slate-700);
}

.tmom-trust-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.tmom-help-text {
  font-size: 13.5px !important;
  color: var(--tmom-slate-600) !important;
  line-height: 1.5 !important;
  margin: 0 0 14px 0 !important;
}

.tmom-help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tmom-consultation-accent, var(--tmom-purple-deep, #490160));
  text-decoration: none;
}

.tmom-help-link:hover {
  text-decoration: underline;
}


/* ==========================================================================
   9. TREATMENT SINGLE PAGE / PATIENT APP (migrated from inline <style>)
   ========================================================================== */
/* Minimalist Clinical Patient App Design */
.tmom-patient-app {
    font-family: var(--tmom-font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    color: #0f172a;
    max-width: 1240px;
    margin: 20px auto 40px auto;
    box-sizing: border-box;
}

/* Block themes commonly constrain post content to about 620px. The clinical
   form is a two-column application and needs its own wider canvas. Centre it
   against the viewport without changing the normal Treatment landing page. */
.tmom-patient-app.tmom-consultation-standalone,
.tmom-patient-app.tmom-choose-treatment-page {
    width: min(1240px, calc(100vw - 48px));
    max-width: none;
    margin-top: 24px;
    margin-right: 0;
    margin-bottom: 60px;
    margin-left: calc(50% - min(620px, calc(50vw - 24px)));
}

@media (max-width: 640px) {
    .tmom-patient-app.tmom-consultation-standalone,
    .tmom-patient-app.tmom-choose-treatment-page {
        width: calc(100vw - 24px);
        margin-top: 16px;
        margin-bottom: 40px;
        margin-left: calc(50% - 50vw + 12px);
    }
}

/* Automatic Treatment layouts can be reordered in the editor, so spacing must
   belong to the parent rather than depend on a particular section sequence. */
.tmom-treatment-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vw, 48px);
}

.tmom-treatment-layout > .tmom-treatment-clean-hero,
.tmom-treatment-layout > .tmom-structured-sections,
.tmom-treatment-layout > .tmom-treatment-medicine-preview,
.tmom-treatment-layout > .tmom-consultation-cta-card {
    margin-top: 0;
    margin-bottom: 0;
}

.tmom-treatment-medicine-preview > h2 {
    margin: 0 0 10px;
}

.tmom-treatment-medicine-preview > p {
    margin: 0 0 24px;
    color: #475569;
    line-height: 1.6;
}

.tmom-consultation-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .tmom-treatment-layout {
        gap: 24px;
    }

    .tmom-consultation-cta-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }
}


/* Clean Minimal Treatment Hero */
.tmom-treatment-clean-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 36px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 32px;
    box-sizing: border-box;
}

@media (max-width: 860px) {
    .tmom-treatment-clean-hero {
        grid-template-columns: 1fr;
        padding: 28px 22px;
    }
}

.tmom-clean-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.tmom-clean-hero-title {
    font-size: 38px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 14px 0 !important;
}

.tmom-clean-hero-desc {
    font-size: 16px !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0 0 24px 0 !important;
}

.tmom-clean-btn-dark {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 13px 26px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
}

.tmom-clean-btn-dark:hover {
    background: #1e293b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
    color: #ffffff !important;
}

.tmom-clean-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.tmom-clean-trust-item {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
}

.tmom-clean-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tmom-clean-hero-img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Structured Clinical Sections */
.tmom-structured-sections {
    margin-bottom: 32px;
}

.tmom-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .tmom-info-grid {
        grid-template-columns: 1fr;
    }
}

.tmom-info-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tmom-info-box h3 {
    margin: 0 0 8px 0;
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tmom-info-box p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.tmom-warning-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 18px 22px;
    border-radius: 10px;
    margin-bottom: 28px;
}

.tmom-warning-box h4 {
    margin: 0 0 6px 0;
    color: #92400e;
    font-size: 15px;
    font-weight: 700;
}

.tmom-warning-box p {
    margin: 0;
    color: #b45309;
    font-size: 13.5px;
    line-height: 1.55;
}

/* RAF Questionnaire Form Container */
#tmom-consultation-section {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    margin: 32px 0;
}

/* Dedicated consultation sub-page (/treatment/{slug}/consultation/) and Live Preview */
.tmom-preview-mode #tmom-consultation-section,
.tmom-consultation-standalone #tmom-consultation-section {
    display: block;
    margin-top: 8px;
}

/* ---- Guided flow: one question / one section at a time ---- */
.tmom-flow-guided .tmom-raf-step-card { display: none; }
.tmom-flow-guided .tmom-raf-step-card.tmom-step-unlocked { display: block; }
.tmom-flow-guided .tmom-step-card-header { cursor: default; }
.tmom-flow-guided .tmom-step-toggle-arrow { display: none; }
.tmom-flow-guided .tmom-question-block { display: none; }
.tmom-question-block.tmom-condition-hidden,
.tmom-flow-guided .tmom-question-block.tmom-condition-hidden { display: none !important; }
.tmom-flow-guided .tmom-question-block.tmom-q-revealed {
    display: block;
    animation: tmom-q-fade-in 0.28s ease;
}
.tmom-guided-question-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}
.tmom-guided-q-position {
    color: var(--tmom-muted, #6b5873);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
.tmom-guided-question-nav button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}
@media (max-width: 560px) {
    .tmom-guided-question-nav { flex-wrap: wrap; }
    .tmom-guided-q-position { order: -1; flex-basis: 100%; }
}
@keyframes tmom-q-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tmom-btn-step-continue {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--tmom-accent, #490160);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.tmom-btn-step-continue:hover { filter: brightness(1.08); }

/* ---- Mid-form login gate ---- */
.tmom-auth-gate {
    max-width: 460px;
    margin: 12px auto 24px;
    padding: 28px 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.tmom-auth-gate-title { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 8px; }
.tmom-auth-gate-intro { font-size: 14px; line-height: 1.6; color: #475569; margin: 0 0 18px; }
.tmom-auth-tabs { display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; margin-bottom: 16px; }
.tmom-auth-tab {
    flex: 1; padding: 9px 10px; border: none; background: transparent; border-radius: 7px;
    font-size: 13px; font-weight: 600; color: #475569; cursor: pointer;
}
.tmom-auth-tab.active { background: #ffffff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.tmom-auth-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 12px; }
.tmom-auth-label input,
.tmom-auth-label select {
    display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
    border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.tmom-auth-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
    border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 12px;
}
.tmom-auth-submit { width: 100%; margin-top: 4px; justify-content: center; }
.tmom-auth-fallback { text-align: center; margin: 14px 0 0; font-size: 12.5px; }
.tmom-auth-fallback-link { color: #64748b; }

.tmom-consultation-backlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tmom-accent, #490160);
    text-decoration: none;
}

.tmom-consultation-backlink:hover {
    text-decoration: underline;
}

.tmom-consultation-unavailable {
    max-width: 560px;
    margin: 48px auto;
    padding: 40px 32px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.tmom-consultation-unavailable h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}

.tmom-consultation-unavailable p {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 24px;
}

.step-progress-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.step-dot {
    flex: 1;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.step-dot.active {
    background: #0f172a;
}

.step-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.step-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #0f172a;
}

.step-header p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.tmom-field-group {
    margin-bottom: 22px;
}

.tmom-field-group label.field-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14.5px;
    color: #0f172a;
}

.tmom-field-group input[type="text"],
.tmom-field-group input[type="number"],
.tmom-field-group input[type="date"],
.tmom-field-group select,
.tmom-field-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14.5px;
    box-sizing: border-box;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s ease;
}

.tmom-field-group input:focus,
.tmom-field-group select:focus,
.tmom-field-group textarea:focus {
    outline: none;
    border-color: #0f172a;
    background: #ffffff;
}

.tmom-radio-group,
.tmom-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.tmom-choice-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #1e293b;
}

.tmom-choice-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.tmom-choice-item input {
    margin-right: 12px;
}

.bmi-result-badge {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 14px;
    display: inline-block;
}

.alert-screening-stop {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14.5px;
    line-height: 1.5;
}

/* Unlocked Medicines Grid */
#tmom-unlocked-medicines {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 30px;
    margin-top: 36px;
    box-sizing: border-box;
}

.tmom-success-banner {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    color: #15803d;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 28px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tmom-med-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tmom-med-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.tmom-med-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.tmom-med-details-link {
    color: inherit;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.tmom-med-details-link:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 4px;
    border-radius: 10px;
}

.tmom-med-details-link:hover .tmom-med-title {
    color: #1d4ed8 !important;
}

.tmom-med-details-cta {
    display: inline-block;
    margin: 0 0 16px;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
}

.tmom-med-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    padding: 12px;
    box-sizing: border-box;
}

.tmom-med-image img {
    max-height: 150px;
    width: auto;
    object-fit: contain;
}

.tmom-med-placeholder {
    font-size: 40px;
    color: #94a3b8;
}

.tmom-med-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.25 !important;
}

.tmom-med-price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 12px !important;
}

.tmom-med-desc,
.tmom-med-card p {
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-height: calc(1.5em * 3) !important;
}

.tmom-variation-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13.5px;
    background: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    box-sizing: border-box;
}

.tmom-pack-limit {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 14px;
}

.tmom-btn-med-order {
    width: 100% !important;
    padding: 12px 18px !important;
    font-size: 14.5px !important;
}

/* ---- Customer order-progress panel (My Account / order-received) ---- */
.tmom-order-progress {
    margin: 28px 0;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.tmom-order-progress-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}
.tmom-order-progress-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tmom-op-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 14.5px;
    color: #94a3b8;
    border-left: 2px solid #e2e8f0;
    padding-left: 16px;
    margin-left: 9px;
}
.tmom-op-step .tmom-op-dot {
    position: relative;
    left: -25px;
    margin-right: -18px;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}
.tmom-op-step.is-done { color: #0f172a; border-left-color: var(--tmom-accent, #490160); }
.tmom-op-step.is-done .tmom-op-dot { background: var(--tmom-accent, #490160); }
.tmom-op-step.is-current { color: #0f172a; font-weight: 700; }
.tmom-op-step.is-current .tmom-op-dot { background: var(--tmom-accent, #490160); animation: tmom-op-pulse 1.6s ease-in-out infinite; }
@keyframes tmom-op-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(73,1,96,0.35); } 50% { box-shadow: 0 0 0 6px rgba(73,1,96,0); } }
.tmom-op-now {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tmom-accent, #490160);
}
.tmom-order-progress-hint {
    margin: 14px 0 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
}
.tmom-order-progress-cancelled {
    margin: 0;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 13.5px;
    color: #991b1b;
}

/* =========================================================================
   Separated checkout flow — choose-treatment page + addresses page
   ========================================================================= */

/* choose-treatment: the medicine grid on its own URL renders open, so drop the
   reveal-hidden default and give it page breathing room. */
.tmom-choose-treatment-page #tmom-unlocked-medicines {
    display: block;
    margin-top: 20px;
}

/* Addresses page — two-column layout mirroring the consultation page. */
.tmom-addresses-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    margin-top: 20px;
}
@media (max-width: 860px) {
    .tmom-addresses-grid-layout {
        grid-template-columns: 1fr;
    }
}

.tmom-addresses-main-col {
    min-width: 0;
}

.tmom-address-fieldset {
    border: 1px solid var(--tmom-slate-200, #ebe3ef);
    border-radius: var(--tmom-radius-xl, 14px);
    padding: 18px 20px 20px;
    margin: 0 0 18px;
}
.tmom-address-fieldset legend {
    font-weight: 700;
    font-size: 15px;
    color: var(--tmom-slate-900, #1a0422);
    padding: 0 8px;
}
.tmom-address-fieldset label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tmom-slate-700, #4a2856);
    margin: 12px 0 0;
}
.tmom-address-fieldset input[type="text"],
.tmom-address-fieldset select {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 10px 12px;
    border: 1px solid var(--tmom-slate-300, #d4c7da);
    border-radius: var(--tmom-radius-md, 8px);
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
}
.tmom-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 520px) {
    .tmom-field-row {
        grid-template-columns: 1fr;
    }
}

.tmom-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tmom-slate-700, #4a2856);
    margin: 0 0 18px;
}
.tmom-checkbox-row input {
    width: 16px;
    height: 16px;
}

.tmom-delivery-rate {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.tmom-delivery-rate .tmom-choice-label {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}
.tmom-delivery-none {
    margin: 10px 0 0;
    font-size: 13.5px;
    color: #991b1b;
}
.tmom-delivery-prompt {
    margin: 10px 0 0;
    font-size: 13.5px;
    color: #64748b;
}

.tmom-addresses-summary {
    position: sticky;
    top: 24px;
}
.tmom-summary-lines {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}
.tmom-summary-line-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13.5px;
    padding: 6px 0;
    color: var(--tmom-slate-700, #4a2856);
}
.tmom-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    padding: 6px 0;
    border-top: 1px solid var(--tmom-slate-200, #ebe3ef);
}
.tmom-summary-total {
    font-weight: 800;
    font-size: 16px;
    color: var(--tmom-slate-900, #1a0422);
}
