/* FAQ module */
.faq_module{
  max-width: 100vw;
  padding: clamp(3rem, 6vw, 4.375rem) 0;
  --faq-bg: #09002c;
  --faq-heading: #5fc7dd;
  --faq-text: #ffffff;
  --faq-line: #88f4f3;
}

.faq_module--dark{
  background: var(--faq-bg);
  color: var(--faq-text);
}

.faq_module--light{
  background: #ffffff;
  color: #09002c;
  --faq-heading: #09002c;
  --faq-text: #09002c;
  --faq-line: #5fc7dd;
}

.faq_module .wrap{
  max-width: var(--ib-container);
  margin: 0 auto;
}

.faq_module h2{
  text-align: center;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  color: var(--faq-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.faq_module__list{
  max-width: none;
  margin: 0 auto;
}

.faq_module__item{
  border-top: 4px solid var(--faq-line);
}

.faq_module__item:last-child{
  border-bottom: 4px solid var(--faq-line);
}

.faq_module__question,
.faq_module__question *{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.25rem, 2vw, 1.75rem)
           clamp(1.25rem, 3vw, 2rem);
  border: 0;
  background: transparent;
  color: var(--faq-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.faq_module__question *{
  margin: 0;
  padding: 0;
}

.faq_module__question-text{
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.faq_module__icon{
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  position: relative;
}

.faq_module__icon::before,
.faq_module__icon::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .25s ease;
}

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

.faq_module__item.is-open .faq_module__icon::after{
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq_module__answer{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.faq_module__answer[hidden]{
  display: none;
}

.faq_module__answer-inner{
  overflow: hidden;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
  max-width: 60rem;
}

.faq_module__answer-inner p{
  margin: 0 0 2rem;
  color: var(--faq-text);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.7;
}

.faq_module__item.is-open .faq_module__answer{
  grid-template-rows: 1fr;
}

.faq_module__question:hover .faq_module__question-text,
.faq_module__question:focus-visible .faq_module__question-text,
.faq_module__question:hover .faq_module__question-text *,
.faq_module__question:focus-visible .faq_module__question-text *{
  color: var(--faq-heading) !important;
}

.faq_module__question:focus-visible{
  outline: 3px solid var(--faq-line);
  outline-offset: -8px;
}


@media (max-width: 48rem){
  .faq_module{
    padding: 3rem 1rem;
  }

  .faq_module__question{
    padding: 1.25rem;
  }

  .faq_module__answer-inner{
    padding: 0 1.25rem;
  }

  .faq_module__answer-inner p{
    margin-bottom: 1.5rem;
  }
}
