/* Basic Setup & Variables */
:root {
  --black: #000000;
  --white: #ffffff;
  --dark-teal: #00A99F;
  --grey: #F0F5F7;
}


/* ---------------------------------- */
/* Block: FAQ */
/* ---------------------------------- */

.faq {
  padding: 100px 0;
  display: flex;
  justify-content: center;
}

.faq__container {
  max-width: 700px;
  width: 100%;
}

/* ---------------------------------- */
/* Elements: Header */
/* ---------------------------------- */

.faq__header {
  text-align: center;
  margin-bottom: 50px;
}


.faq__intro {
  font-size: 24px;
  color: var(--black);
  font-weight: 400;
  line-height: 120%;
  margin-top: 24px;
}

.faq__intro a {
  color: var(--dark-teal);
  text-decoration: none;
}

.faq__intro a:hover {
  text-decoration: underline;
}

/* ---------------------------------- */
/* Element: List */
/* ---------------------------------- */

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------------------------------- */
/* Element: Item */
/* ---------------------------------- */

.faq__item {
  background-color: var(--color-item-bg);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Modifier: Open State */
.faq__item[open] {
  border: 1px solid rgb(0 0 0 / 12%);
  overflow: hidden;
}


.faq__question h3 {
  color: #00000080;
  background-color: #0000000a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 24px;
  padding: 16px 20px;
  font-weight: 600;
  /* Hide default arrow in some browsers */
  transition: background-color 0.2s;
  border-radius: 5px;
  text-transform: none;
}
.faq__item:not([open]) .faq__question h3 {
    color: #00000080;
}
.faq__item[open] .faq__question h3 {
  padding: 16px 20px 0;
  color: var(--black);
  background: var(--white);
}


/* Hide native details marker */
.faq__question h3::-webkit-details-marker,
.faq__question h3::marker {
  display: none;
}

/* Custom arrow for closed state */
.faq__question h3::after {
  content: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%236c757d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>');
  transform: rotate(0deg);
  transition: transform 0.2s;
  margin-left: 10px;
  height: 24px;
  width: 24px;
}

/* Arrow for OPEN state (when the parent details element has the [open] attribute) */
.faq__item[open] .faq__question h3::after {
  transform: rotate(90deg);
}

/* Background for the active/open question */
.faq__item[open] .faq__question h3 {
  background-color: var(--white);
}

/* ---------------------------------- */
/* Element: Answer */
/* ---------------------------------- */

.faq__answer {
  padding: 12px 20px 20px;
  background-color: var(--white);
}

.faq__answer p {
  margin: 0;
  font-size: 18px;
  color: var(--black);
}

.callout_outer.grey-bg+.faq.grey-bg {
  padding-top: 0;
}

@media(max-width: 1250px) {
  .faq, .callout_outer.grey-bg+.faq.grey-bg {
    padding: 60px 24px;
  }
}

@media(max-width: 991px) {
  .faq, .callout_outer.grey-bg+.faq.grey-bg {
    padding: 40px 24px;
  }

  .faq__header {
    font-size: 40px;
    font-weight: 700;
  }

  .faq__intro {
    font-size: 18px
  }

  .faq__question h3 {
    font-size: 24px;
    font-weight: 600;
  }
}
