/*
 * FAQ page — desktop + mobile
 * Source: html_maket/neweditsandmobile/jby-faq
 * Header and footer are site-wide — not restyled here.
 */

#jb_body.page-faq {
  --faq-ink: #2f2f39;
  --faq-paper: #fcfcfd;
  --faq-navy: #41647b;
  --faq-mute: #575760;
  --faq-line: rgba(0, 0, 0, 0.08);
  --faq-pad: 40px;
  background: var(--faq-paper);
  color: var(--faq-ink);
}

#jb_body.page-faq main.faq-page {
  padding-top: 128px;
}

#jb_body.page-faq .faq-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--faq-pad);
}

/* PAGE HEAD */
#jb_body.page-faq .faq-head {
  padding-top: 48px;
}

#jb_body.page-faq .faq-head h1 {
  font-family: "Mesmerize-ex-lt", "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 48px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #111;
  margin: 0;
}

/* SEARCH */
#jb_body.page-faq .faq-search {
  margin-top: 24px;
  position: relative;
  max-width: 520px;
}

#jb_body.page-faq .faq-search input {
  width: 100%;
  height: 48px;
  border: 0.5px solid rgba(0, 0, 0, 0.28);
  background: #fff;
  border-radius: 2px;
  padding: 0 16px 0 46px;
  font-family: "Myriad-Pro-Light", "Myriad Pro", sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--faq-ink);
  outline: none;
  transition: border-color 0.2s;
}

#jb_body.page-faq .faq-search input:focus {
  border-color: var(--faq-navy);
}

#jb_body.page-faq .faq-search input::placeholder {
  color: #71717a;
}

#jb_body.page-faq .faq-search svg {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 20px;
  height: 20px;
  color: #71717a;
  pointer-events: none;
}

#jb_body.page-faq .faq-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  cursor: pointer;
  background-color: #71717a;
  transition: background-color 0.2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='black' stroke-width='2.2' fill='none'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='black' stroke-width='2.2' fill='none'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

#jb_body.page-faq .faq-search input[type="search"]::-webkit-search-cancel-button:hover {
  background-color: var(--faq-ink);
}

/* FILTER TABS */
#jb_body.page-faq .faq-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: baseline;
  margin-top: 32px;
  border-bottom: 0.5px solid var(--faq-line);
}

#jb_body.page-faq .faq-filter button {
  position: relative;
  font-family: "Myriad-Pro-Regular", "Myriad Pro", sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: #5f5f68;
  font-weight: 400;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 0 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.18s;
  white-space: nowrap;
}

#jb_body.page-faq .faq-filter button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5px;
  height: 2px;
  background: #111;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

#jb_body.page-faq .faq-filter button .n {
  font-size: 16px;
  color: #9a9aa2;
  font-variant-numeric: tabular-nums;
  transition: color 0.18s;
}

#jb_body.page-faq .faq-filter button:hover {
  color: #111;
}

#jb_body.page-faq .faq-filter button.on {
  color: #111;
}

#jb_body.page-faq .faq-filter button.on::after {
  transform: scaleX(1);
}

#jb_body.page-faq .faq-filter button.on .n {
  color: #111;
}

/* ACCORDION */
#jb_body.page-faq .faq-body {
  padding-top: 0;
  padding-bottom: 16px;
}

#jb_body.page-faq .faq-list {
  max-width: 1040px;
}

#jb_body.page-faq .faq-group {
  margin-top: 72px;
}

#jb_body.page-faq .faq-group:first-child {
  margin-top: 60px;
}

#jb_body.page-faq .faq-group h2 {
  font-family: "Mesmerize-ex-lt", "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

#jb_body.page-faq .faq-group h2 .idx {
  color: #111;
}

#jb_body.page-faq .faq-item {
  border-bottom: 0.5px solid var(--faq-line);
}

#jb_body.page-faq .faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 22px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "Myriad-Pro-Regular", "Myriad Pro", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #111;
  transition: color 0.2s;
}

#jb_body.page-faq .faq-q:hover {
  color: var(--faq-navy);
}

#jb_body.page-faq .faq-q .sign {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  position: relative;
  margin-top: 4px;
}

#jb_body.page-faq .faq-q .sign::before,
#jb_body.page-faq .faq-q .sign::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

#jb_body.page-faq .faq-q .sign::before {
  left: 0;
  top: 9.5px;
  width: 20px;
  height: 1px;
}

#jb_body.page-faq .faq-q .sign::after {
  left: 9.5px;
  top: 0;
  width: 1px;
  height: 20px;
}

#jb_body.page-faq .faq-item.open .faq-q .sign::after {
  opacity: 0;
}

#jb_body.page-faq .faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

#jb_body.page-faq .faq-a-in {
  padding: 0 60px 26px 0;
  font-family: "Myriad-Pro-Regular", "Myriad Pro", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 28px;
  color: #3a3a40;
}

#jb_body.page-faq .faq-a-in p {
  margin: 0 0 12px;
}

#jb_body.page-faq .faq-a-in p:last-child {
  margin-bottom: 0;
}

#jb_body.page-faq .faq-a-in a {
  color: var(--faq-navy);
  border-bottom: 1px solid rgba(65, 100, 123, 0.35);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

#jb_body.page-faq .faq-a-in a:hover {
  color: #111;
  border-color: #111;
}

#jb_body.page-faq .faq-a-in ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

#jb_body.page-faq .faq-a-in li {
  margin: 0 0 6px;
}

#jb_body.page-faq .faq-item.hide,
#jb_body.page-faq .faq-group.hide {
  display: none;
}

#jb_body.page-faq .faq-empty {
  padding: 48px 0 8px;
  font-family: "Myriad-Pro-Regular", "Myriad Pro", sans-serif;
  font-size: 16px;
  color: var(--faq-mute);
}

#jb_body.page-faq .faq-empty.hide {
  display: none;
}

/* EXPERT CTA (page-owned; footer CTA hidden on this route) */
#jb_body.page-faq .expert {
  margin-top: 88px;
  background: var(--faq-navy);
  color: #fff;
  padding: 0 40px;
  text-align: center;
  min-height: 315px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#jb_body.page-faq .expert h2 {
  font-family: "Mesmerize-ex-lt", "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 32px;
  line-height: 48px;
  color: #fff;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 12px;
}

#jb_body.page-faq .expert p {
  font-family: "Myriad-Pro-Light", "Myriad Pro", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
  max-width: 640px;
}

#jb_body.page-faq .expert .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 32px;
  background: transparent;
  color: #fff;
  font-family: "Mesmerize-ex-lt", "Mesmerize", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 0.5px solid #fff;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s;
}

#jb_body.page-faq .expert .btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* REVEAL */
#jb_body.page-faq .faq-reveal {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

#jb_body.page-faq .faq-reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#jb_body.page-faq .faq-reveal.d1 {
  transition-delay: 0.05s;
}

#jb_body.page-faq .faq-reveal.d2 {
  transition-delay: 0.1s;
}

#jb_body.page-faq .faq-reveal.d3 {
  transition-delay: 0.15s;
}

#jb_body.page-faq .faq-split {
  display: inline-block;
}

#jb_body.page-faq .faq-split .w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#jb_body.page-faq .faq-split.in .w {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 960px) {
  #jb_body.page-faq {
    --faq-pad: 24px;
  }

  #jb_body.page-faq main.faq-page {
    padding-top: 104px;
  }

  #jb_body.page-faq .faq-head {
    padding-top: 40px;
  }

  #jb_body.page-faq .faq-head h1 {
    font-size: 28px;
    line-height: 40px;
  }

  #jb_body.page-faq .faq-filter {
    gap: 22px;
  }

  #jb_body.page-faq .faq-q {
    font-size: 18px;
    line-height: 26px;
  }

  #jb_body.page-faq .faq-a-in {
    padding-right: 0;
  }

  #jb_body.page-faq .expert {
    padding: 56px 24px;
    min-height: auto;
  }

  #jb_body.page-faq .expert h2 {
    font-size: 24px;
    line-height: 36px;
  }
}

@media (max-width: 760px) {
  #jb_body.page-faq .faq-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  #jb_body.page-faq .faq-filter::-webkit-scrollbar {
    display: none;
  }

  #jb_body.page-faq .faq-filter button {
    flex: 0 0 auto;
  }
}

@media (max-width: 680px) {
  #jb_body.page-faq .expert h2 {
    font-size: clamp(16px, 5.8vw, 28px);
    line-height: 1.25;
  }

  #jb_body.page-faq .expert .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  #jb_body.page-faq .faq-filter button {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #jb_body.page-faq .faq-reveal,
  #jb_body.page-faq .faq-split .w {
    transition: none;
    opacity: 1;
    transform: none;
  }

  #jb_body.page-faq .faq-a {
    transition: none;
  }
}
