.faq {
  background-color: #ffffff;
  padding: 165px 2rem;
}

.faq-header {
  font-family: stolzl, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 48px;
  padding-bottom: 3rem;
}
.faq-container {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-container .faq-item {
  position: relative;
  padding-bottom: 28px;
  padding-top: 28px;
  border-top: 1px solid #dce7eb;
}
.faq-container .faq-item input[type="checkbox"] {
  position: absolute;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
}

.faq-container .faq-item .faq-item-headline .arrow {
  /* position: absolute; */
  /* transform: translate(-6px,0);
    margin-top: 16px;
    right: 0; */
  /* display: flex;
  margin-left: 20rem;
  top: 16px;
  position: relative; */
  width: 3px;
  height: 9px;
}
.faq-container .faq-item input[type="checkbox"]:checked ~ .faq-item-body p {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  /* transform: translateX(-50%); */
}

.faq-container
  .faq-item
  input[type="checkbox"]:checked
  ~ .faq-item-headline
  .arrow::before {
  transform: translate(2px, 0) rotate(45deg);
}
.faq-container
  .faq-item
  input[type="checkbox"]:checked
  ~ .faq-item-headline
  .arrow::after {
  transform: translate(-2px, 0) rotate(-45deg);
}
.faq-container .faq-item .wrapper .arrow::before,
.faq-container .faq-item .wrapper .arrow::after {
  content: "";
  position: absolute;
  background: #333;
  width: 3px;
  height: 9px;
}
.faq-container .faq-item .wrapper .faq-item-headline .arrow::before {
  transform: translate(-2px, 0) rotate(45deg);
}
.faq-container .faq-item .wrapper .faq-item-headline .arrow:after {
  transform: translate(2px, 0) rotate(-45deg);
}

.faq-item-headline {
  gap: 20px;
  align-items: center;
}

.wrapper {
  position: relative;
}

.faq-item-header {
  font-family: stolzl, sans-serif;
  font-weight: bold;
  font-style: normal;
  font-size: 20px;
  color: black;
}
.faq-item-body {
  font-family: stolzl, sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: 16px;
  color: black;
}
.faq p {
  font-size: 20px;
  color: rgba(48, 69, 92, 0.8);
  line-height: 26px;
  letter-spacing: 1px;
  position: relative;
  padding: 0 11px;
  max-height: 800px;
  margin-top: 14px;
  opacity: 1;
  transform: translate(0, 0);
  overflow: hidden;
}
.faq .transition,
.faq p,
.faq-container .faq-item .wrapper .arrow:before,
.faq-container .faq-item .wrapper .arrow:after {
  transition: all 0.25s ease-in-out;
}
.flipIn,
.faq-container .faq-item {
  animation: flipdown 0.5s ease both;
}

@keyframes flipdown {
  0% {
    opacity: 0;
    transform-origin: top center;
    transform: rotateX(-90deg);
  }
  5% {
    opacity: 1;
  }
  80% {
    transform: rotateX(8deg);
  }
  83% {
    transform: rotateX(6deg);
  }
  92% {
    transform: rotateX(-3deg);
  }
  100% {
    transform-origin: top center;
    transform: rotateX(0deg);
  }
}

.faq-wrapper {
  width: 100%;
  max-width: 1440px;
  margin: auto;
}

@media (min-width: 1920px) {
  .faq {
    padding: 165px 0;
  }
}
