/**
 * Shared money-page FAQ accordion — active CI EN style.css `.faq-section` / `.accordion`.
 * Opt-in only under `.zc-faq`. Does not affect homepage `.zuri-faq-*`.
 */

.zc-faq {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1aa7ff 0%, #1aa7ff 100%);
  margin-top: 30px;
  margin-bottom: 30px;
  font-family: var(--zc-font-body);
}

.zc-faq__inner {
  width: min(var(--zc-container), calc(100% - var(--zc-container-pad)));
  margin: 30px auto 50px;
}

/* Beat money-page wrappers (`.zc-svc :is(h2,h3,h4) { color: ink }`, etc.). */
.zc-faq .zc-faq__heading,
.zc-faq h2.zc-faq__heading {
  font-family: var(--zc-font-heading) !important;
  font-size: 35px;
  font-weight: 600;
  line-height: 60px;
  text-align: center;
  color: #fff !important;
  margin: 0 0 0.5rem;
}

.zc-faq .zc-faq__subheading {
  font-family: var(--zc-font-body);
  font-size: 26px;
  font-weight: 300;
  line-height: 29.87px;
  text-align: center;
  margin: 0 0 80px;
  color: #fff !important;
}

.zc-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zc-faq__item {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.075) 100%
  );
  color: #fff;
  margin-top: 20px;
  border-radius: 15px;
  border: none;
  overflow: hidden;
  transition: border-radius 0.3s ease;
}

.zc-faq .zc-faq__item-heading,
.zc-faq h3.zc-faq__item-heading {
  margin: 0;
  font-family: var(--zc-font-heading) !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 26.4px;
  text-align: left;
  color: #fff !important;
}

.zc-faq__trigger {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 10px 10px 10px 20px;
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 15px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-family: var(--zc-font-heading) !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 26.4px;
}

.zc-faq__item.is-open .zc-faq__trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.zc-faq__trigger:focus {
  outline: none;
}

.zc-faq__trigger:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.zc-faq__question {
  flex: 1;
  min-width: 0;
}

.zc-faq__icon {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  transition: transform 0.3s ease;
  user-select: none;
}

.zc-faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.zc-faq__item.is-open .zc-faq__panel {
  grid-template-rows: 1fr;
}

.zc-faq__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.zc-faq__answer {
  font-family: var(--zc-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  text-align: left;
  color: #fff;
  margin: 0;
  padding: 0 20px 16px 30px;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.zc-faq__answer p {
  margin: 0 0 0.75rem;
}

.zc-faq__answer p:last-child {
  margin-bottom: 0;
}

.zc-faq__answer a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .zc-faq__panel,
  .zc-faq__icon,
  .zc-faq__item {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .zc-faq__heading {
    font-size: 40px;
    line-height: 48px;
  }

  .zc-faq__subheading {
    font-size: 22px;
    line-height: 25px;
    margin-bottom: 60px;
  }

  .zc-faq__item-heading,
  .zc-faq__trigger {
    font-size: 20px;
  }

  .zc-faq__answer {
    font-size: 14px;
    line-height: 24px;
  }

  .zc-faq__icon {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .zc-faq__heading {
    font-size: 30px;
    line-height: 36px;
  }

  .zc-faq__subheading {
    font-size: 20px;
    line-height: 23px;
    margin-bottom: 50px;
  }

  .zc-faq__item-heading,
  .zc-faq__trigger {
    font-size: 18px;
  }

  .zc-faq__answer {
    font-size: 13px;
    line-height: 22px;
    padding-left: 20px;
  }

  .zc-faq__icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .zc-faq__heading {
    font-size: 25px;
    line-height: 30px;
  }

  .zc-faq__subheading {
    font-size: 18px;
    line-height: 21px;
    margin-bottom: 40px;
  }

  .zc-faq__item-heading,
  .zc-faq__trigger {
    font-size: 16px;
  }

  .zc-faq__answer {
    font-size: 12px;
    line-height: 20px;
  }

  .zc-faq__icon {
    font-size: 1.2rem;
  }
}
