/*-----------------------------------*\
  #FAQ
\*-----------------------------------*/

.faq-section {
  width: 100%;
  padding: 170px 32px 96px;
  display: flex;
  justify-content: center;
  background: var(--white);
}

.faq-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.faq-header {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-title {
  font-size: 32px;
  line-height: 32px;
  letter-spacing: 0;
  font-weight: var(--regular);
  color: var(--neutral-19);
}

.faq-subtitle {
  font-size: 14px;
  line-height: 22px;
  font-weight: var(--regular);
  color: #666666;
}

.faq-mobile-prompt {
  display: none;
  font-size: 14px;
  line-height: 22px;
  font-weight: var(--regular);
  color: var(--neutral-19);
}

.faq-empty {
  width: 100%;
  padding: 48px 24px;
  color: var(--neutral-12);
  text-align: center;
}

.faq-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.faq-topics {
  position: sticky;
  top: 170px;
  border-right: 1px solid var(--neutral-03);
  padding-right: 0;
}

.faq-topics-title {
  font-size: 20px;
  line-height: 20px;
  font-weight: var(--semiBold);
  color: var(--neutral-19);
  margin-bottom: 40px;
}

.faq-topics-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-topic-button {
  appearance: none;
  border: none;
  background: transparent;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  text-align: left;
  border-right: 3px solid transparent;
  transition:
    background-color 200ms ease,
    border-color 200ms ease;
}

.faq-topic-button-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.faq-topic-button img {
  width: 24px;
  height: 24px;
  filter: var(--filter-primary);
  flex-shrink: 0;
}

.faq-topic-button-main > span {
  font-size: 16px;
  line-height: 16px;
  font-weight: var(--semiBold);
  color: var(--neutral-14);
}

.faq-topic-button:hover {
  background: var(--neutral-02);
}

.faq-topic-button.is-active {
  background: var(--neutral-02);
  border-right-color: var(--neutral-19);
}

.faq-topic-button.is-active .faq-topic-button-main > span {
  color: var(--neutral-19);
  font-weight: var(--bold);
}

.faq-topic-arrow,
.faq-mobile-topic-head {
  display: none;
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 62px;
}

.faq-group {
  scroll-margin-top: 170px;
}

.faq-group-title {
  font-size: 24px;
  line-height: 24px;
  letter-spacing: 0;
  font-weight: var(--regular);
  color: var(--neutral-19);
  margin-bottom: 16px;
}

.faq-accordion {
  border-top: 1px solid var(--neutral-03);
}

.faq-item {
  border-bottom: 1px solid var(--neutral-03);
}

.faq-question {
  appearance: none;
  border: 0;
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 24px 0;
}

.faq-question span {
  font-size: 16px;
  line-height: 22px;
  color: var(--neutral-19);
  font-weight: var(--semiBold);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  filter: var(--filter-primary);
  transform: rotate(0deg);
  transition: transform 180ms ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--neutral-16);
  font-weight: var(--regular);
  white-space: pre-wrap;
  transition:
    max-height 320ms ease,
    opacity 220ms ease,
    padding-bottom 220ms ease;
}

.faq-item.is-open .faq-answer {
  opacity: 1;
  padding-bottom: 40px;
}

@media (max-width: 1320px) {
  .faq-container {
    max-width: 1000px;
  }

  .faq-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 52px;
  }

  .faq-topic-button-main > span {
    font-size: 16px;
  }
}

@media (max-width: 1080px) {
  .faq-section {
    padding: 160px 48px 84px;
  }

  .faq-container {
    max-width: unset;
    gap: 28px;
  }

  .faq-header {
    text-align: left;
    max-width: unset;
    margin: 0;
  }

  .faq-title {
    font-size: 20px;
    line-height: 20px;
  }

  .faq-subtitle {
    font-size: 14px;
    line-height: 22px;
  }

  .faq-mobile-prompt {
    display: block;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .faq-topics {
    position: static;
    top: auto;
    border-right: 0;
    border-bottom: 0;
    padding-bottom: 0;
    z-index: auto;
    background: var(--white);
  }

  .faq-topics-title {
    display: none;
  }

  .faq-topics-nav {
    flex-direction: column;
    gap: 0;
  }

  .faq-topic-button {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--neutral-03);
    border-radius: 0;
    padding: 24px 16px;
    min-height: auto;
    background: transparent;
  }

  .faq-topic-button-main {
    gap: 12px;
  }

  .faq-topic-button-main > span {
    font-size: 16px;
    line-height: 16px;
  }

  .faq-topic-button:hover {
    background: transparent;
  }

  .faq-topic-button.is-active {
    background: transparent;
    border-bottom-color: var(--neutral-03);
  }

  .faq-topic-arrow {
    display: block;
    width: 16px;
    height: 16px;
    filter: var(--filter-primary);
  }

  .faq-layout .faq-content {
    display: none;
  }

  .faq-layout.is-mobile-topic-open .faq-topics {
    display: none;
  }

  .faq-layout.is-mobile-topic-open .faq-content {
    display: flex;
  }

  .faq-mobile-topic-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
  }

  .faq-mobile-back {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .faq-mobile-back img {
    width: 24px;
    height: 24px;
    filter: var(--filter-primary);
  }

  .faq-mobile-topic-title {
    font-size: 20px;
    line-height: 20px;
    font-weight: var(--semiBold);
    color: var(--neutral-19);
  }

  .faq-group {
    scroll-margin-top: 120px;
  }

  .faq-content {
    gap: 0;
  }

  .faq-group-title {
    display: none;
  }

  .faq-question {
    padding: 18px 0;
  }

  .faq-question span {
    font-size: 14px;
    line-height: 22px;
  }
}

@media (max-width: 700px) {
  .faq-section {
    padding: 160px 20px 72px;
  }

  .faq-header {
    gap: 12px;
  }

  .faq-chevron {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 500px) {
  .faq-section {
    padding: 160px 16px 64px;
  }
}
