@import url("../components/formulario.css");

section#faq {
  padding-block: 4rem;
}

div.container div.titulo h2,
div.container div.titulo h3 {
  font-family: "CCSignLanguage", sans-serif;
  color: #ffd80a;
}

div.container div.titulo h2 {
  padding: 1rem 2rem;
  border-radius: 1rem;
  background-color: #1d3176;
  width: fit-content;
  margin-bottom: 1rem;
}

div.container div.titulo h3 {
  max-width: 400px;
  width: 100%;
}

.search .input__container .wrapper {
  background-color: #f5f6fa;
  padding-right: 0;
}

.search .input__container .wrapper input::placeholder {
  color: #6c757d;
}

.search .input__container i {
  color: #1d3176;
  background-color: transparent;
  padding: 1rem;
}

/* .faq-list {
  padding-inline: 4rem;
} */

menu details {
  display: none;
  transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
  box-sizing: border-box;
}

menu:has(details.is-active) .default {
  display: none;
}

.default {
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding-block: 2.4rem;
}

menu:has(details.skeleton) {
  height: 800px;
}

details.skeleton span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(90deg, #dadada 25%, #e9e9e9 50%, #dedede 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite linear;
  z-index: 1;
  display: inline-block;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

details.is-active {
  display: block;
}

menu summary {
  list-style: none;
  color: #fff;
  font-weight: 700;
  padding-block: 2.4rem;
  padding-right: 4rem;
  position: relative;
  border-bottom: 1px solid #ffda00;
  text-align: start;
  width: 100%;
  cursor: pointer;
  transition: all 1s cubic-bezier(0.075, 0.82, 0.165, 1);
  box-sizing: border-box;
}

details[open] summary {
  border-bottom: none;
}

summary::after,
details[open] summary::after {
  font-family: "icomoon";
  position: absolute;
  top: 50%;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 100%;
  transform: translate(-10%, -50%);
}

summary::after {
  content: "\e901";
  background-color: #ffda00;
  color: #1d3175;
  transition: all 250ms ease-in-out;
}

details[open] summary::after {
  transform: translate(-10%, -50%) rotate(180deg);
}

details div {
  color: #fff;
  text-align: left;
}

.form--wrapper {
  border-radius: 20px;
  border: 1px solid rgba(148, 172, 255, 0.56);
  background: rgba(29, 49, 118, 0.5);
  color: #fff;
  padding-block: 4rem;
  padding-inline: 2rem;
  margin-top: 4rem;
}

.form--wrapper h2 {
  color: #ffd80a;
  font-family: "CCSignLanguage", sans-serif;
  margin-bottom: 2.2rem;
  font-size: 2.4rem;
}

.form--wrapper form {
  max-width: 660px;
  margin-inline: auto;
  box-sizing: border-box;
  padding-block: 2rem;
}

.input__container .wrapper:not(:has(.custom-input)) {
  background-color: #f5f6fa;
}

.input__container a {
  text-decoration: underline;
}

.input__container a:hover {
  text-decoration: none;
}

fieldset .input__container:has(select[name='assunto']),
fieldset .input__container:has(textarea) {
  grid-column: 1 / -1;
}

form .btn[type="submit"] {
  margin-inline: auto;
  width: fit-content;
}

#btnChamados {
  display: none;
}

#btnChamados.visible {
  display: block;
  margin-inline: auto;
  margin-top: 4rem;
  max-width: fit-content;
}

@media screen and (max-width: 1024px) {
  section#faq {
    padding-inline: 2.5rem;
  }
  section#faq .container {
    display: grid;
    row-gap: 2rem;
  }
  section#faq h1.title-page {
    margin-bottom: 4rem;
  }
  div.container div.titulo h2,
  div.container div.titulo h3 {
    font-size: 2.4rem;
  }
  .search .input__container {
    margin-inline: auto;
  }
  .form--wrapper h2 {
    text-align: center;
  }
}

@media screen and (min-width: 1024px) {
  section#faq h1.title-page {
    margin-bottom: 4rem;
  }

  section#faq div.container {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: space-around;
  }
  div.container div.titulo h2,
  div.container div.titulo h3 {
    font-size: 3.6rem;
  }
  section#faq div.container div.titulo {
    width: max-content;
  }

  section#faq div.container div.conteudo {
    max-width: 600px;
    width: 100%;
  }
  .form--wrapper h2 {
    text-align: left;
  }
}
