/* FAQ page layout */
#faq-page {
  padding-top: 4.5rem;
}

.faq-intro-cta {
  margin: 1.8rem 0 2.4rem;
}

.faq-intro-cta p {
  margin-top: 0.6rem;
  font-size: 0.98rem;
  color: #4b4b52;
}

.faq-intro-cta a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.faq-intro-cta a:hover {
  border-color: #7b2236;
}

.faq-groups {
  margin-top: 1.5rem;
}

.faq-group-title {
  margin-top: 2.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f1f23;
}

.faq-item {
  margin-top: 1rem;
  padding: 0.9rem 0 1rem;
  border-bottom: 1px solid #d6ccc8;
}

/* hide the raw checkbox */
.faq-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* question row */
.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-size: 1.03rem;
  font-weight: 600;
  color: #303036;
}

/* answer block – desktop default: always visible */
.faq-answer {
  margin-top: 0.55rem;
}

.faq-answer p {
  font-size: 1.01rem;
  color: #3f3f45;
  line-height: 1.6;
  max-width: 48rem;
}

/* arrow icon – hidden on desktop by default */
.faq-arrow {
  display: none;
}

/* End CTA at bottom of page */
.faq-end-cta {
  margin-top: 3.6rem;
  text-align: center;
}

.faq-end-cta p {
  margin-top: 0.7rem;
  font-size: 0.98rem;
  color: #4b4b52;
}

/* Links inside FAQ answers */
#faq-page a {
  color: #7b2236;
}

#faq-page a:hover {
  text-decoration: underline;
}

/* Mobile behaviour: accordion */
@media (max-width: 767.98px) {
  .faq-group-title {
    margin-top: 2.2rem;
    font-size: 1.2rem;
  }

  .faq-item {
    padding: 0.75rem 0 0.85rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  /* arrow visible on mobile */
  .faq-arrow {
    display: inline-block;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-right: 2px solid #7b2236;
    border-bottom: 2px solid #7b2236;
    transform: rotate(45deg);
    margin-top: 3px;
    transition: transform 0.25s ease;
  }

  /* collapse answers by default on mobile */
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  }

  /* when checkbox is checked, expand answer */
  .faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.5rem;
  }

  /* rotate arrow when open */
  .faq-toggle:checked + .faq-question .faq-arrow {
    transform: rotate(225deg);
  }
}
/* Ensure FAQ CTA buttons keep the white text */
#faq-page .btn-primary {
  color: #f5f3f2 !important;
  text-decoration: none;
}