.faq-page {
  min-height: 100vh;
  background: #fff;
  color: #32153b;
  font-family: "Poppins", sans-serif;
}

.faq-page__container {
  width: min(100%, 960px);
  margin: 0 auto;
}

.faq-page__eyebrow {
  color: #8c2b7b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faq-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 11vw, 8rem) 1.25rem;
  background:
    radial-gradient(circle at 88% 15%, rgb(247 185 47 / 25%), transparent 18rem),
    radial-gradient(circle at 8% 100%, rgb(167 45 143 / 10%), transparent 24rem),
    linear-gradient(135deg, #fffdfb, #f8edf6);
}

.faq-hero h1 {
  max-width: 12ch;
  margin: 1rem 0;
  font-size: clamp(2.75rem, 7vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 1;
  text-wrap: balance;
  animation: faq-enter 650ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.faq-hero .faq-page__eyebrow {
  display: inline-block;
  animation: faq-enter 500ms ease-out both;
}

.faq-hero p {
  max-width: 39rem;
  margin: 0;
  color: #67586d;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
  animation: faq-enter 650ms 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.faq-listing {
  padding: clamp(4rem, 9vw, 7rem) 1.25rem;
  min-height: 100vh;
  background: #fff;
}

.faq-listing__heading {
  max-width: 42rem;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}

.faq-listing__heading h2 {
  margin: 0.8rem 0 0.75rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.faq-listing__heading p {
  margin: 0;
  color: #75677a;
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}

.faq-search {
  display: flex;
  position: relative;
  gap: 0.75rem;
  max-width: 52rem;
  margin: 0 auto;
}

.faq-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.faq-search__icon {
  position: absolute;
  top: 50%;
  left: 1.25rem;
  width: 1.35rem;
  height: 1.35rem;
  color: #8c2b7b;
  pointer-events: none;
  transform: translateY(-50%);
}

.faq-search__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.faq-search__input {
  width: auto;
  min-width: 0;
  min-height: 3.75rem;
  flex: 1;
  padding: 0.9rem 1.25rem 0.9rem 3.5rem;
  border: 1px solid rgb(116 37 102 / 22%);
  border-radius: 1rem;
  outline: none;
  background: #fff;
  color: #32153b;
  font: inherit;
  box-shadow: 0 0.75rem 2rem rgb(52 21 62 / 6%);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.faq-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.faq-search__input::placeholder {
  color: #8d8091;
}

.faq-search__input:focus {
  border-color: #a72d8f;
  box-shadow: 0 0 0 3px rgb(167 45 143 / 12%), 0 0.75rem 2rem rgb(52 21 62 / 8%);
}

.faq-search__button,
.faq-pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
  padding: 0.85rem 1.3rem;
  border: 0;
  border-radius: 1rem;
  background: #8c2b7b;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.faq-search__button:hover,
.faq-pagination__link:hover {
  background: #742566;
  box-shadow: 0 0.75rem 1.5rem rgb(52 21 62 / 14%);
  transform: translateY(-1px);
}

.faq-search__button:focus-visible,
.faq-pagination__link:focus-visible {
  outline: 3px solid rgb(247 185 47 / 70%);
  outline-offset: 3px;
}

.faq-search__help {
  max-width: 52rem;
  margin: 0.75rem auto 1.75rem;
  color: #75677a;
  font-size: 0.84rem;
  text-align: center;
}

.faq-search__clear {
  margin-left: 0.4rem;
  color: #8c2b7b;
  font-weight: 700;
}

.faq-search__empty {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border: 1px dashed #d8cedb;
  border-radius: 1rem;
  background: #fdfafd;
  text-align: center;
}

.faq-search__empty h3 {
  margin: 0;
  font-size: 1.3rem;
}

.faq-search__empty p {
  margin: 0.65rem 0 0;
  color: #75677a;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgb(116 37 102 / 14%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgb(52 21 62 / 6%);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: rgb(167 45 143 / 32%);
  box-shadow: 0 1rem 2.5rem rgb(52 21 62 / 10%);
}

.faq-item[open] {
  transform: translateY(-2px);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
  padding: 1.25rem 1.4rem;
  color: #32153b;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question:focus-visible {
  outline: 3px solid rgb(247 185 47 / 70%);
  outline-offset: -3px;
}

.faq-item__icon {
  position: relative;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 50%;
  background: #f6edf5;
}

.faq-item__icon::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #8c2b7b;
  border-bottom: 2px solid #8c2b7b;
  content: "";
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 180ms ease;
}

.faq-item[open] .faq-item__icon::before {
  transform: translate(-50%, -35%) rotate(225deg);
}

.faq-item__answer {
  padding: 0 4.9rem 1.5rem 1.4rem;
  border-top: 1px solid #f0eaf1;
  color: #67586d;
  line-height: 1.75;
}

.faq-item__answer p {
  margin: 1.25rem 0 0;
}

.faq-empty-state {
  max-width: 52rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  border: 1px dashed #d8cedb;
  border-radius: 1rem;
  background: #fdfafd;
  text-align: center;
}

.faq-empty-state h2 {
  margin: 0;
  font-size: 1.45rem;
}

.faq-empty-state p {
  margin: 0.75rem 0 0;
  color: #75677a;
}

.faq-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.faq-pagination__link {
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.faq-pagination__status {
  color: #67586d;
  font-size: 0.88rem;
  font-weight: 700;
}

@keyframes faq-enter {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .faq-search {
    flex-direction: column;
  }

  .faq-search__input {
    width: 100%;
  }

  .faq-pagination {
    flex-wrap: wrap;
  }

  .faq-pagination__status {
    width: 100%;
    order: -1;
    text-align: center;
  }

  .faq-item__question {
    gap: 1rem;
    padding: 1.1rem;
  }

  .faq-item__answer {
    padding: 0 1.1rem 1.25rem;
  }
}
