﻿.faq-items {
  margin: 2.5rem 0;
  gap: 1rem;
}

.faq-items hr {
  border: none;
  border-top: 1.5px solid #101828;
  margin: 1rem 0;
}

.faq-item summary {
  color: #101828;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 30px;
  margin-bottom: 0.5rem;
}

.faq-item p>a {
  color: #DA1E28;
  text-decoration: none;
}

.faq-item p {
    max-width: 50rem;
    margin-right: 2rem;
    font-weight: 400;
    color: #101828;
    padding-bottom: 0.75rem;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.custom-details {
  position: static;
}

.custom-details summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.custom-details>summary>span {
  width: calc(100% - 72px);
}

.custom-details summary::before {
  content: "";
  background-image: url("../img/faq-open.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  width: 20px;
  height: 20px;
  padding: 0.5rem;
  border-radius: 50%;
  border: 2px solid #101828;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.custom-details[open] summary::before {
  background-image: url("../img/faq-close.svg");
}

.faq-cta {
  border-radius: 2rem;
  background: var(--color-gray-50, #F9FAFB);
  display: flex;
  padding: 40px 32px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  align-self: stretch;
}

.faq-cta article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-cta h2 {
  color: var(--color-red-primary-500, #DA1E28);
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px;
}

.faq-cta p {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}

@media (min-width: 768px) {
  .faq-items {
    margin: 5rem auto;
  }

  .faq-cta {
    padding: 3rem;
    margin: 0 auto;
  }
}

@media (min-width: 992px) {
  .faq-items {
    max-width: 1216px;
    width: 80vw;
  }

  .faq-cta {
    max-width: 1216px;
    width: 80vw;
    justify-content: space-between;
  }

  .faq-cta article {
    max-width: 585px;
  }
}

@media (min-width: 1366px) {
  .faq-cta {
    flex-direction: row;
  }
}
