/* Unified FAQ component */

main > .container > .faq-section > .container {
  padding-left: 0;
  padding-right: 0;
}

.faq-section .faq-section-lead {
  margin-top: 8px;
  margin-bottom: 28px;
  text-align: center;
  max-width: min(640px, 90%);
  margin-left: auto;
  margin-right: auto;
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.55;
}

.faq-section {
  padding: 0 0 clamp(36px, 4.5vw, 52px);
  margin: 0;
  background: transparent;
}

.faq-container {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft-card);
  overflow: hidden;
}

.faq-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--surface-border-soft);
  transition: background-color var(--motion-duration-fast) var(--motion-ease-standard);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item.active {
  background: transparent;
}

.faq-question {
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: "Onest", "Segoe UI", "Roboto", sans-serif;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
  transition: background-color var(--motion-duration-fast) var(--motion-ease-standard);
}

.faq-question:hover {
  background: var(--surface-hover-soft);
}

.faq-question[aria-expanded="true"],
.faq-item.active .faq-question:hover {
  background: transparent;
}

.faq-question-text {
  margin: 0;
  padding: 14px 0;
  text-align: left;
  font-size: 1rem;
  line-height: 1.35;
}

.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  justify-self: end;
  align-self: center;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background-color: var(--secondary);
  transform: translate(-50%, -50%);
  transition: transform var(--motion-duration-fast) var(--motion-ease-standard);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.active .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--motion-duration-slow) var(--motion-ease-emphasized);
}

.faq-answer-content {
  padding: 14px 20px 20px;
  color: var(--text-muted-strong);
  line-height: 1.58;
}

.faq-answer-content p + p {
  margin-top: 0.75em;
}

.faq-list {
  margin-top: 12px;
  padding-left: 0;
  list-style: none;
}

.faq-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  line-height: 1.5;
}

.faq-list li:last-child {
  margin-bottom: 0;
}

.faq-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--secondary);
}

@media (max-width: 768px) {
  .faq-section {
    padding-bottom: 34px;
  }

  .faq-container {
    border-radius: 14px;
  }

  .faq-question {
    min-height: 58px;
    padding: 0 18px;
  }

  .faq-question-text {
    padding: 12px 0;
  }

  .faq-answer-content {
    padding: 12px 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-question,
  .faq-icon::before,
  .faq-icon::after,
  .faq-answer {
    transition: none !important;
  }
}
