@charset "utf-8";

/* FAQ MEDICALSPACE — arquivo independente */
.faq-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 52px;
  box-sizing: border-box;
}

.faq-section > h2 {
  width: 100%;
  margin: 0 auto 10px;
  text-align: center;
  box-sizing: border-box;
}

.faq-subtitle {
  margin: 0 auto 28px;
  text-align: center;
  color: #64748b;
}

.faq-container {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  box-sizing: border-box;
}

.faq-item {
  width: 100%;
  margin: 0 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

.faq-pergunta {
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: #1e293b;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  box-sizing: border-box;
}

.faq-pergunta > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.faq-icone {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 1px solid #bbf7d0;
  border-radius: 50%;
  background: #16a34a;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
}

.faq-icone::before {
  content: "+";
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.faq-item.ativo .faq-icone {
  background: #15803d;
}

.faq-item.ativo .faq-icone::before {
  content: "−";
}

/* Abertura rápida sem max-height artificial */
.faq-resposta {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows .18s ease, opacity .12s ease;
}

.faq-resposta-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-item.ativo .faq-resposta {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-resposta p {
  margin: 0;
  padding: 0 20px 18px;
  color: #5e6773;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
}

@media only screen and (max-width: 767px) {
  .faq-section {
    padding: 34px 18px 42px;
  }

  .faq-section > h2 {
    margin: 0 auto 10px;
    padding: 0 6px;
    font-size: 27px;
    line-height: 1.22;
    overflow-wrap: break-word;
  }

  .faq-subtitle {
    margin-bottom: 22px;
    padding: 0 6px;
    line-height: 1.5;
  }

  .faq-pergunta {
    padding: 16px;
    font-size: 16px;
    gap: 12px;
  }

  .faq-resposta p {
    padding: 0 16px 16px;
    font-size: 15.5px;
  }
}
