/* =========================================
   DESKTOP FAQ
========================================= */

.faq-section {
  padding: 82px 0 80px;
  min-height: 100vh;
  font-family: "Overused Grotesk", Arial, sans-serif;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 233, 225, 0.50) 30%, rgba(233, 217, 255, 0.50) 70%, rgba(255, 255, 255, 0.50) 100%);
}

.faq-title {
  color: #2C2C2C;
  text-align: center;
  font-family: "Overused Grotesk";
  font-size: 48px;
  font-weight: 700;
  line-height: 120%;
}

.faq-title span {
  color: #6d3cff;
}

.faq-subtitle {
  color: #2C2C2C;
  text-align: center;
  font-family: "Overused Grotesk";
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
}

.faq-content-row {
  margin-top: 59px;
  row-gap: 30px;
}

.faq-sidebar {
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
}

.faq-category {
  width: 100%;
  padding: 20px 15px;
  border: 0;
  border-radius: 6px;
  background-color: transparent;
  color: #2c2c2c;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-align: left;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-category:hover,
.faq-category.active {
  background-color: #f4f4f4;
}

.faq-list {
  width: 100%;
}

.faq-group {
  display: none;
}

.faq-group.active {
  display: block;
}

.faq-accordion-item {
  width: 100%;
  margin-bottom: 14px;
  padding: 15px 20px 5px 20px;
  border: 1px solid #c4c4c4;
  border-radius: 14px;
  background: #eaf3ff26;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.faq-accordion-item.active {
  margin-bottom: 5px;
  padding: 18px 20px 0 20px;
  background: rgba(255, 255, 255, 0.70);
}

.faq-question {
  margin: 0;
  color: #2c2c2c;
  font-size: 18px;
  font-weight: 600;
  line-height: 25px;

  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.faq-accordion-item.active .faq-question {
  margin-bottom: 17px;
  color: #3804ae;
}

.faq-answer {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: #2c2c2c;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.faq-accordion-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-toggle {
  position: relative;
  flex: 0 0 25px;
  width: 25px;
  min-width: 25px;
  height: 25px;
  padding: 0;
  margin: 0;
  border: 0;
  line-height: 1;
  background-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

.faq-toggle,
.faq-toggle:hover,
.faq-toggle:focus,
.faq-toggle:active,
.faq-toggle:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  content: "";
  top: 12px;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: 10px;
  background-color: #6d3cff;
  transition: transform 0.3s ease;
}

.faq-toggle::before {
  transform: translate(-50%, -50%);
}

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

.faq-accordion-item.active .faq-toggle::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.faq-accordion-item.active .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Safari only - move plus icon slightly up */
@supports (background: -webkit-named-image(i)) {
  .faq-toggle::before,
  .faq-toggle::after {
    top: calc(50% - 8px);
  }
}

@media (min-width: 1200px) {
  .faq-content-row {
    column-gap: 30px;
  }

  .faq-content-row > .col-12.col-lg-4 {
    max-width: 380px;
  }

  .faq-content-row > .col-12.col-lg-8 {
    max-width: 792px;
  }
}

@media (max-width: 1199px) {
  .faq-section {
    padding: 75px 0;
    min-height: auto;
  }
}

@media (max-width: 991px) {
  .faq-section {
    padding: 65px 0;
  }

  .faq-title {
    font-size: 40px;
  }

  .faq-subtitle {
    font-size: 17px;
  }

  .faq-category {
    padding: 18px 15px;
  }
}


/* =========================================
   SHOW / HIDE VERSIONS
========================================= */

.faq-mobile-version {
  display: none;
}

@media (max-width: 767px) {
  .faq-desktop-version {
    display: none !important;
  }

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


/* =========================================
   MOBILE FAQ (only visible below 768px)
========================================= */

.faq-mobile-section {
  padding: 28px 0 33px;
  font-family: "Overused Grotesk";
  overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 233, 225, 0.50) 30%, rgba(233, 217, 255, 0.50) 70%, rgba(255, 255, 255, 0.50) 100%);
}

.faq-mobile-title {
  margin: 0 0 14px;
  color: #0D073B;
  font-family: "Overused Grotesk";
  font-size: 30px !important;
  font-weight: 600;
  line-height: 110%;
  text-align: left;
}

.faq-mobile-title span {
  color: #6D3CFF;
}

.faq-mobile-subtitle {
  margin: 0;
  color: #2C2C2C;
  font-family: "Overused Grotesk";
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 150%;
  text-align: left;
}

/* Sticky category dropdown */
.faq-mobile-content-row {
  position: sticky;
  top: 100px;
  z-index: 10;
  margin-top: 30px;
  margin-bottom: 18px;
  background: transparent;
}

.faq-mobile-dropdown {
  position: relative;
  z-index: 100;
  width: 100%;
}

.faq-mobile-dropdown-btn {
  width: 100%;
  min-height: 58px;
  padding: 17px 18px;
  border-radius: 10px;
  background-color: #ffffff;
  color: #2C2C2C;
  font-family: "Overused Grotesk";
  font-size: 16px;
  font-weight: 600;
  line-height: 130%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.faq-mobile-dropdown-btn,
.faq-mobile-dropdown-btn:hover,
.faq-mobile-dropdown-btn:focus,
.faq-mobile-dropdown-btn:active,
.faq-mobile-dropdown-btn:focus-visible {
  border: 1px solid #9CA3AF !important;
  outline: none !important;
  box-shadow: none !important;
}

.faq-mobile-dropdown-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.faq-mobile-dropdown-icon::before {
  position: absolute;
  content: "";
  top: 45%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #2C2C2C;
  border-bottom: 1.5px solid #2C2C2C;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-mobile-dropdown.open .faq-mobile-dropdown-icon::before {
  top: 55%;
  transform: translate(-50%, -50%) rotate(-135deg);
}

.faq-mobile-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 101;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
  background-color: #ffffff;
}

.faq-mobile-dropdown.open .faq-mobile-dropdown-menu {
  display: block;
}

.faq-mobile-category {
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-radius: 6px;
  background-color: transparent;
  color: #2C2C2C;
  font-family: "Overused Grotesk";
  font-size: 15px;
  font-weight: 600;
  line-height: 130%;
  text-align: left;
}

.faq-mobile-category.active {
  background-color: #F4F4F4;
}

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

.faq-mobile-group.active {
  display: block;
}

/* FAQ item */
.faq-mobile-item {
  width: 100%;
  margin-bottom: 14px;
  padding: 16px 16px 8px 16px;
  border: 1px solid #c4c4c4;
  border-radius: 14px;
  background-color: transparent;
  cursor: pointer;
}

.faq-mobile-item.active {
  margin-bottom: 5px;
  background-color: rgba(255, 255, 255, 0.70);
}

/* Fix: text and icon touching the border */
.faq-mobile-item > .row {
  --bs-gutter-x: 0;
  margin-left: 0;
  margin-right: 0;
  flex-wrap: nowrap;
  align-items: flex-start;
  column-gap: 12px;
}

.faq-mobile-item > .row > .col,
.faq-mobile-item > .row > .col-auto {
  padding-left: 0;
  padding-right: 0;
}

.faq-mobile-item > .row > .col {
  min-width: 0;
}

.faq-mobile-question {
   margin: 0;
  color: #2C2C2C;
  font-family: "Overused Grotesk";
  font-size: 16px !important;
  font-weight: 600;
  line-height: 28px !important;
  text-align: left;

  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.faq-mobile-item.active .faq-mobile-question {
  margin-bottom: 13px;
  color: #3804AE;
}

.faq-mobile-answer {
  max-height: 0;
  overflow: hidden;
  color: #2C2C2C;
  font-family: "Overused Grotesk";
  font-size: 14px !important;
  font-weight: 400;
  line-height: 155%;
  text-align: left;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.faq-mobile-item.active .faq-mobile-answer {
  max-height: 2000px;
  opacity: 1;
}

.faq-mobile-answer p {
  margin-top: 0;
  margin-bottom: 12px;
  text-align: left;
}

.faq-mobile-answer p:last-child {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .faq-mobile-dropdown,
  .faq-mobile-list {
    padding-right: 15px;
  }
}
/* Plus icon */
.faq-mobile-toggle {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.faq-mobile-toggle,
.faq-mobile-toggle:hover,
.faq-mobile-toggle:focus,
.faq-mobile-toggle:active,
.faq-mobile-toggle:focus-visible,
.faq-mobile-category,
.faq-mobile-category:focus,
.faq-mobile-category:active,
.faq-mobile-category:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.faq-mobile-toggle,
.faq-mobile-toggle:hover,
.faq-mobile-toggle:focus,
.faq-mobile-toggle:active,
.faq-mobile-toggle:focus-visible {
  border: none !important;
  background: transparent !important;
}

.faq-mobile-toggle::before,
.faq-mobile-toggle::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 10px;
  background-color: #6D3CFF;
  transition: transform 0.25s ease;
}

.faq-mobile-toggle::before {
  transform: translate(-50%, -50%);
}

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

.faq-mobile-item.active .faq-mobile-toggle::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.faq-mobile-item.active .faq-mobile-toggle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Safari only - mobile icon position */
@supports (background: -webkit-named-image(i)) {
  .faq-mobile-toggle::before,
  .faq-mobile-toggle::after {
    top: calc(30% - 5px);
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .faq-mobile-item {
    padding: 14px 12px;
  }

  .faq-mobile-question {
    font-size: 15px !important;
  }
}