/**
 *
 * Question Section
 *
**/

.question-section {
  padding-block: 40px;

  @media (1024px <= width) {
    padding-block: 80px;
  }
}

.question-section > .container > ul {
  margin-top: 15px;
  display: grid;
  gap: 16px;

  @media (1024px <= width) {
    margin-top: 30px;
    gap: 30px;
    /* grid-template-columns: repeat(2, 1fr); */
  }
}

.question-section > .container > ul li hgroup {
  display: flex;
  flex-direction: column;
  gap: 5px;

  @media (1024px <= width) {
    gap: 10px;
  }
}

.question-section > .container > ul li hgroup p:nth-child(1) {
  font-weight: 900;
  font-size: 24px;
  color: var(--text-color);

  @media (1024px <= width) {
    font-size: 36px;
  }
}

.question-section > .container > ul li hgroup p:nth-child(2) {
  font-weight: 300;
  font-size: 14px;
  color: var(--text-color);
}

/* .question-list {
  margin-top: 10px;

  @media (1024px <= width) {
    margin-top: 20px;
  }
} */

.question-list li {
  & label {
    cursor: pointer;
    padding-block: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    @media (1024px <= width) {
      padding-block: 10px;
    }
  }

  & label div {
    display: flex;
  }

  & label div svg:first-child {
    margin-right: -24px;
  }

  & label svg {
    transition: all 0.3s;
  }

  &:not(:last-child) label {
    border-bottom: 1px solid #eaeaea;
  }

  &:has(input:checked) label div svg {
    transform: rotate(180deg);
  }

  &:has(input:not(:checked)) label div svg:first-child {
    opacity: 1;
  }

  &:has(input:checked) label div svg:first-child {
    opacity: 0;
  }

  &:has(input:not(:checked)) label div svg:nth-child(2) {
    opacity: 0;
  }

  &:has(input:checked) label div svg:nth-child(2) {
    opacity: 1;
  }
}

.question-list li label p {
  font-size: 14px;
  font-weight: 500;

  @media (1024px <= width) {
    font-size: 16px;
  }
}

.question-list li input {
  display: none;
}

.question-list li div {
  transition: all 0.3s;
  font-size: 14px;

  @media (1024px <= width) {
    font-size: 16px;
  }
}

.question-list li input:not(:checked) + div {
  overflow: hidden;
  opacity: 0;
  max-height: 0;
}

.question-list li input:checked + div {
  overflow: visible;
  opacity: 1;
  max-height: 9999vh;
  margin-top: 10px;
}