/* ===== Help Center / FAQ page ===== */
:root {
  --cmt-title: #1F3A32;
  --cmt-accent: #4A6358;
  --cmt-border: #DFE7E2;
  --cmt-soft: #EEF3EF;
  --cmt-page-bg: #F5F7F5;
  --cmt-body: #596660;
}

body.page-id-443,
body.page-slug-faq {
  background: var(--cmt-page-bg);
}

body.page-id-443.page-template-templatespage-builder-php .page_fullwidth_wrap > div[style*="clear"],
body.page-id-443.page-template-templatespage-builder-php .page_head + div[style*="clear"],
body.page-slug-faq.page-template-templatespage-builder-php .page_fullwidth_wrap > div[style*="clear"],
body.page-slug-faq.page-template-templatespage-builder-php .page_head + div[style*="clear"] {
  display: none !important;
}

/* Hero: Help Center + subtitle */
body.page-id-443 .cattitle_wrap .center,
body.page-slug-faq .cattitle_wrap .center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

body.page-id-443 .cattitle_wrap h1,
body.page-slug-faq .cattitle_wrap h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0.02em;
}

body.page-id-443 .cattitle_wrap .center::after,
body.page-slug-faq .cattitle_wrap .center::after {
  content: "Answers for a confident medical journey";
  display: block;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: center;
}

.faq-content.e-con,
.faq-content {
  width: calc(100% - 48px);
  max-width: 1100px;
  margin-inline: auto;
  flex-direction: column;
  padding-top: 36px !important;
  padding-bottom: 64px !important;
  gap: 28px !important;
  --gap: 28px;
}

.faq-content > .e-con-inner {
  gap: 28px !important;
  --gap: 28px;
}

.faq-intro .elementor-heading-title,
.faq-intro h2 {
  color: var(--cmt-title) !important;
  font-size: clamp(28px, 3vw, 34px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  letter-spacing: -0.01em;
}

.faq-intro .svc-lead,
.faq-intro .elementor-widget-text-editor {
  color: var(--cmt-body);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 640px;
}

.faq-intro .elementor-widget-text-editor p {
  margin: 0;
}

/* Search */
.cmt-faq-search {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--cmt-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 58, 50, 0.04);
  overflow: hidden;
}

.cmt-faq-search:focus-within {
  border-color: #b8cbbf;
  box-shadow: 0 8px 22px rgba(31, 58, 50, 0.07);
}

.cmt-faq-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  color: var(--cmt-accent);
}

.cmt-faq-search-icon svg {
  width: 20px;
  height: 20px;
}

.cmt-faq-search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--cmt-title);
  font-size: 15px;
  line-height: 1.4;
  padding: 0 8px 0 0;
}

.cmt-faq-search-input::placeholder {
  color: #8a9790;
}

.cmt-faq-search-btn {
  height: 54px;
  padding: 0 20px;
  border: 0;
  border-left: 1px solid var(--cmt-border);
  background: var(--cmt-soft);
  color: var(--cmt-title);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cmt-faq-search-btn:hover {
  background: var(--cmt-title);
  color: #fff;
}

.cmt-faq-search-empty {
  margin: 10px 0 0;
  color: var(--cmt-body);
  font-size: 14px;
}

.faq-content .screen-reader-text,
.cmt-faq-search .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Two-column layout (Elementor container or legacy HTML wrapper) */
.cmt-faq-layout,
.cmt-faq-layout.e-con,
.cmt-faq-layout.e-con > .e-con-inner {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px !important;
  --gap: 40px;
  align-items: start;
  width: 100% !important;
}

.cmt-faq-nav-wrap,
.cmt-faq-nav-wrap.elementor-widget-html {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: start;
}

.cmt-faq-nav {
  position: sticky;
  top: 96px;
}

.cmt-faq-nav-label {
  margin: 0 0 12px;
  color: #7a8a83;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cmt-faq-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmt-faq-nav-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--cmt-border);
  border-radius: 999px;
  background: #fff;
  color: var(--cmt-title);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cmt-faq-nav-link:hover {
  border-color: #c9d6ce;
  background: var(--cmt-soft);
}

.cmt-faq-nav-link.is-active {
  background: var(--cmt-title);
  border-color: var(--cmt-title);
  color: #fff;
}

.cmt-faq-main,
.cmt-faq-main.e-con {
  min-width: 0;
  width: auto !important;
}

.cmt-faq-sections,
.cmt-faq-sections.e-con,
.cmt-faq-main.cmt-faq-sections.e-con > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 34px !important;
  --gap: 34px;
}

.cmt-faq-section,
.cmt-faq-section.e-con {
  scroll-margin-top: 110px;
  width: 100% !important;
}

.cmt-faq-section.is-hidden {
  display: none !important;
}

.cmt-faq-section-title,
.cmt-faq-section-title .elementor-heading-title {
  margin: 0 0 14px !important;
  color: var(--cmt-title) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.cmt-faq-list,
.cmt-faq-list.e-con,
.cmt-faq-list.e-con > .e-con-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
  --gap: 11px;
  width: 100% !important;
}

.cmt-faq-item-wrap,
.cmt-faq-item-wrap.elementor-widget-html,
.cmt-faq-item-wrap .elementor-widget-container {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  line-height: normal !important;
}

/* Accordion */
.cmt-faq-item {
  border: 1px solid var(--cmt-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cmt-faq-item:hover {
  border-color: #b8cbbf;
  background: #fcfefc;
}

.cmt-faq-item[open] {
  border-color: #6f9482;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 58, 50, 0.07);
}

.cmt-faq-item.is-hidden {
  display: none;
}

.cmt-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cmt-faq-q::-webkit-details-marker {
  display: none;
}

.cmt-faq-q::marker {
  content: "";
}

.cmt-faq-q-text {
  flex: 1;
  color: var(--cmt-title);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
}

.cmt-faq-icon {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cmt-soft);
  color: var(--cmt-accent);
}

.cmt-faq-icon::before,
.cmt-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.75px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cmt-faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.cmt-faq-item[open] .cmt-faq-icon {
  background: #e2ebe5;
}

.cmt-faq-item[open] .cmt-faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

.cmt-faq-q:hover .cmt-faq-q-text {
  color: var(--cmt-accent);
}

.cmt-faq-a {
  padding: 0 20px 20px;
  color: var(--cmt-body);
  font-size: 14.5px;
  line-height: 1.7;
  border-top: 1px solid transparent;
}

.cmt-faq-item[open] .cmt-faq-a {
  border-top-color: var(--cmt-border);
  padding-top: 16px;
}

.cmt-faq-a p {
  margin: 0 0 12px;
}

.cmt-faq-a p:last-child {
  margin-bottom: 0;
}

.cmt-faq-a ul,
.cmt-faq-a ol {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.cmt-faq-a li {
  margin: 0 0 6px;
}

.cmt-faq-a li:last-child {
  margin-bottom: 0;
}

.cmt-faq-a strong {
  color: var(--cmt-title);
  font-weight: 650;
}

.cmt-faq-note {
  padding: 10px 12px;
  border-left: 3px solid #c9d6ce;
  background: var(--cmt-soft);
  color: var(--cmt-body);
  font-size: 13.5px;
  border-radius: 0 8px 8px 0;
}

/* CTA */
.faq-cta,
.faq-cta.e-con {
  margin-top: 8px;
  border: 1px solid #d7e2db;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7faf8 0%, var(--cmt-soft) 100%);
  box-shadow: 0 8px 24px rgba(31, 58, 50, 0.05);
  padding: 32px 30px !important;
  width: 100% !important;
}

.faq-cta-inner {
  padding: 32px 30px;
}

.faq-cta-title,
.faq-cta-title .elementor-heading-title {
  margin: 0 0 10px !important;
  color: var(--cmt-title) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

.faq-cta-text,
.faq-cta-copy,
.faq-cta-copy .elementor-widget-container,
.faq-cta-copy p {
  margin: 0 !important;
  max-width: 640px;
  color: var(--cmt-body) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.faq-cta-actions,
.faq-cta-actions.elementor-widget-html {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.cmt-faq-schema,
.cmt-faq-schema.elementor-widget-html {
  display: none !important;
}

.faq-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.faq-cta-primary,
.faq-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-cta-primary {
  background: var(--cmt-title);
  color: #fff !important;
}

.faq-cta-primary:hover {
  background: var(--cmt-accent);
}

.faq-cta-secondary {
  background: #fff;
  border: 1px solid var(--cmt-border);
  color: var(--cmt-title) !important;
}

.faq-cta-secondary:hover {
  border-color: #c9d6ce;
  background: #fff;
}

@media (max-width: 960px) {
  .faq-content.e-con,
  .faq-content {
    width: calc(100% - 40px) !important;
    max-width: 100% !important;
    --width: 100% !important;
  }

  .cmt-faq-layout,
  .cmt-faq-layout.e-con,
  .cmt-faq-layout.e-con > .e-con-inner {
    grid-template-columns: 1fr;
    gap: 22px !important;
    --gap: 22px;
    width: 100%;
    min-width: 0;
  }

  .cmt-faq-nav,
  .cmt-faq-main {
    min-width: 0;
    max-width: 100%;
  }

  .cmt-faq-nav {
    position: static;
  }

  .cmt-faq-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .cmt-faq-nav-link {
    white-space: nowrap;
    min-height: 40px;
  }
}

@media (max-width: 767px) {
  .faq-content.e-con,
  .faq-content {
    width: calc(100% - 32px) !important;
    max-width: 100% !important;
    --width: 100% !important;
    padding-top: 24px !important;
    padding-bottom: 44px !important;
  }

  .faq-content > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.page-id-443 .cattitle_wrap .center::after,
  body.page-slug-faq .cattitle_wrap .center::after {
    font-size: 13.5px;
    padding: 0 16px;
  }

  .cmt-faq-search {
    flex-wrap: wrap;
    min-height: 0;
  }

  .cmt-faq-search-input {
    height: 48px;
  }

  .cmt-faq-search-btn {
    width: 100%;
    height: 44px;
    border-left: 0;
    border-top: 1px solid var(--cmt-border);
  }

  .cmt-faq-q {
    padding: 16px;
  }

  .cmt-faq-a {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
  }

  .cmt-faq-q-text {
    font-size: 15px;
  }

  .faq-cta-inner {
    padding: 24px 18px;
  }

  .faq-cta-primary,
  .faq-cta-secondary {
    width: 100%;
  }
}
