/* Główny wrapper FAQ */
.faq-wrapper {
  margin: 20px 0;
  color: #222623;
}

.faq-heading-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #707070;
  padding-bottom: 30px;
  padding-left: 15px;
  padding-right: 15px;
}

/* Tytuł sekcji FAQ (nad całą listą) */
.faq-section-title {
  font-size: 30px;
  margin-bottom: 15px;
  font-weight: 700;
  margin: 0;
}

/* Pole wyszukiwania */
.faq-search {
  display: block;
  max-width: 300px;
  padding: 10px 30px;
  font-size: 22px;
  border-radius: 100px;
  border: 1px solid #575757;
  background-image: url("../../assets/images/search.svg");
  background-repeat: no-repeat;
  background-position: center right 30px;
  background-size: 24px;
  outline: none !important;
  font-family: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  line-height: 1;
}

.faq-search::placeholder {
  color: black;
  font-style: italic;
}

/* Tytuł pytania + przycisk "Szczegóły" */
.faq-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-title .faq-item-question {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

/* Przycisk do rozwijania FAQ-a (Szczegóły) */
.faq-toggle {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  border: 1px solid #efcc90;
  border-radius: 100px;
  font-weight: 600;
  color: #575757;
  cursor: pointer;
  padding: 10px 30px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: 0.3s;
}

.faq-toggle img {
  width: 20px;
  height: 20px;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

/* Kontener na treść odpowiedzi – animowany przez JS */
.faq-content {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease, padding 0.3s ease;
  padding-top: 0;
}

/* Po aktywacji .active otwieramy (wysokość nadaje JS) */
.faq-item.active .faq-content {
  /* Możesz dodać margines/padding górny przy otwarciu */
}

/* Obrócenie strzałki, kiedy jest aktywne */
.faq-item.active .faq-toggle img {
  transform: rotate(180deg);
}

.faq-item.active .faq-toggle {
  background: #f6f6f6;
}

/* Przycisk "Więcej" (pokazanie dodatkowych FAQ Itemów) */
.faq-show-more {
  display: block;
  margin: 20px auto;
  background-color: transparent;
  border: 1px solid #efcc90;
  border-radius: 100px;
  font-weight: 400;
  color: black;
  cursor: pointer;
  padding: 10px 70px;
  font-size: 22px !important;
  transition: 0.3s;
  text-align: center;
  font-family: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
}

.faq-show-more:hover {
  background: #efcc90;
}

/* Każdy FAQ Item (pytanie + odpowiedź) */

.faq-item {
  border-bottom: 1px solid #efcc90;
  padding: 15px;
  transition: all 0.3s ease;
  position: relative;
  visibility: visible;
  opacity: 1;
  max-height: unset;
}
.faq-wrapper .invisible {
  visibility: hidden;
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 1920px) and (min-width: 1000px) {
  .faq-wrapper {
    margin: calc(20 / 1920 * 100vw) 0;
  }
  .faq-heading-wrapper {
    padding-bottom: calc(30 / 1920 * 100vw);
    padding-left: calc(15 / 1920 * 100vw);
    padding-right: calc(15 / 1920 * 100vw);
  }
  .faq-section-title {
    font-size: calc(30 / 1920 * 100vw);
    margin-bottom: calc(15 / 1920 * 100vw);
  }
  .faq-search {
    max-width: calc(300 / 1920 * 100vw);
    padding: calc(10 / 1920 * 100vw) calc(30 / 1920 * 100vw);
    font-size: calc(22 / 1920 * 100vw);
    border-radius: calc(100 / 1920 * 100vw);
    background-position: center right calc(30 / 1920 * 100vw);
    background-size: calc(24 / 1920 * 100vw);
  }
  .faq-title .faq-item-question {
    font-size: calc(22 / 1920 * 100vw);
  }
  .faq-toggle {
    border-radius: calc(100 / 1920 * 100vw);
    padding: calc(10 / 1920 * 100vw) calc(30 / 1920 * 100vw);
    font-size: calc(18 / 1920 * 100vw);
  }
  .faq-toggle img {
    width: calc(20 / 1920 * 100vw);
    height: calc(20 / 1920 * 100vw);
    margin-left: calc(8 / 1920 * 100vw);
  }
  .faq-show-more {
    margin: calc(20 / 1920 * 100vw) auto;
    border-radius: calc(100 / 1920 * 100vw);
    padding: calc(10 / 1920 * 100vw) calc(70 / 1920 * 100vw);
    font-size: calc(18 / 1920 * 100vw);
  }
  .faq-item {
    padding: calc(15 / 1920 * 100vw);
  }
}

@media (max-width: 1000px) {
  .faq-toggle span {
    display: none;
  }

  .faq-toggle {
    padding: 10px 10px;
  }
  .faq-toggle img {
    margin-left: 0;
    width: 15px;
    height: 15px;
  }

  .faq-title .faq-item-question {
    font-size: 16px;
  }
  .faq-item {
    padding-left: 0;
    padding-right: 0;
  }

  .faq-heading-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .faq-section-title {
    font-size: 20px;
    text-align: center;
  }

  .faq-search {
    font-size: 16px;
  }
}

.two-columns {
  gap: 4%;
  display: flex;
  flex-wrap: wrap;
}

.faq-wrapper.two-columns .faq-item {
  width: 48%;
}

.faq-wrapper.two-columns .faq-item:not(.invisible) {
  padding: 10px 0;
}

.two-columns .faq-toggle span {
  display: none;
}

.two-columns .faq-toggle {
  border: none;
  padding: 10px 0;
  background: none !important;
}

.two-columns .faq-item {
  border-bottom: none;
  border-top: 1px solid #252728;
}

.two-columns .faq-title .faq-item-question {
  font-size: 22px;
}

.faq-item .faq-content {
  font-size: 22px;
}

.faq-show-more-wrapper {
  width: 100%;
}

@media (max-width: 1920px) and (min-width: 1000px) {
  .faq-wrapper {
    margin: calc(20 / 1920 * 100vw) 0;
  }
  .faq-heading-wrapper {
    padding-bottom: calc(30 / 1920 * 100vw);
    padding-left: calc(15 / 1920 * 100vw);
    padding-right: calc(15 / 1920 * 100vw);
  }
  .faq-section-title {
    font-size: calc(30 / 1920 * 100vw);
    margin-bottom: calc(15 / 1920 * 100vw);
  }
  .faq-search {
    max-width: calc(300 / 1920 * 100vw);
    padding: calc(10 / 1920 * 100vw) calc(30 / 1920 * 100vw);
    font-size: calc(22 / 1920 * 100vw);
    border-radius: calc(100 / 1920 * 100vw);
    background-position: center right calc(30 / 1920 * 100vw);
    background-size: calc(24 / 1920 * 100vw);
  }
  .faq-title .faq-item-question,
  .two-columns .faq-title .faq-item-question {
    font-size: calc(22 / 1920 * 100vw);
  }
  .faq-toggle {
    border-radius: calc(100 / 1920 * 100vw);
    padding: calc(10 / 1920 * 100vw) calc(30 / 1920 * 100vw);
    font-size: calc(18 / 1920 * 100vw);
  }
  .faq-toggle img {
    width: calc(20 / 1920 * 100vw);
    height: calc(20 / 1920 * 100vw);
    margin-left: calc(8 / 1920 * 100vw);
  }
  .faq-show-more {
    margin: calc(20 / 1920 * 100vw) auto;
    border-radius: calc(100 / 1920 * 100vw);
    padding: calc(10 / 1920 * 100vw) calc(70 / 1920 * 100vw);
    font-size: calc(18 / 1920 * 100vw);
  }
  .faq-item {
    padding: calc(15 / 1920 * 100vw);
  }

  .faq-item .faq-content {
    font-size: calc(22 / 1920 * 100vw);
  }
}
