/* ============================================================
   FAS FAQ Accordion Block — Shared Styles
   Matches homepage "Common Questions" section.
   ============================================================ */

.fas-faq-section {
  padding: 4rem 1.25rem;
  background: #f9fafb;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0px !important;
}

.fas-faq-container {
  max-width: 800px;
  margin: 0 auto;
}

/* ── Header ── */
.fas-faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
  background: transparent;
  box-shadow: none;
}

.fas-faq-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e31c1c;
  margin-bottom: 0.75rem;
}

.fas-faq-heading {
  margin: 0;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #1b2232;
}

/* ── Accordion list ── */
.fas-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fas-faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px -4px rgba(22, 45, 90, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.fas-faq-item.is-open {
  box-shadow: 0 6px 24px -4px rgba(22, 45, 90, 0.12);
}

/* ── Question button ── */
.fas-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.fas-faq-question:hover,
.fas-faq-question:focus,
.fas-faq-question:active,
.fas-faq-question:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.fas-faq-question-text {
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.45;
  color: #1b2232;
}

.fas-faq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e31c1c;
  transition: transform 0.3s ease;
}

.fas-faq-item.is-open .fas-faq-icon {
  transform: rotate(90deg);
}

/* ── Answer panel (smooth open/close) ── */
.fas-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.fas-faq-item.is-open .fas-faq-answer {
  grid-template-rows: 1fr;
}

.fas-faq-answer-inner {
  overflow: hidden;
  padding: 0 1.5rem;
  font-size: 14px !important;
  line-height: 1.65;
  color: #676f7e;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease, padding 0.35s ease;
}

.fas-faq-item.is-open .fas-faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  opacity: 1;
  transform: translateY(0);
}

.fas-faq-answer-inner p,
.fas-faq-answer-inner li,
.fas-faq-answer-inner a {
  font-size: 14px !important;
  line-height: 1.65;
  color: #676f7e;
}

.fas-faq-answer-inner p {
  margin: 0 0 0.75rem;
}

.fas-faq-answer-inner p:last-child {
  margin-bottom: 0;
}

/* ── Editor controls ── */
.fas-faq-editor-wrap {
  border: 1px dashed #c3c4c7;
  border-radius: 8px;
  padding: 4px;
}

.fas-faq-editor-item {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 20px -4px rgba(22, 45, 90, 0.08);
}

.fas-faq-editor-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fas-faq-editor-item.is-open .fas-faq-editor-item-header {
  margin-bottom: 0.75rem;
}

.fas-faq-editor-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.fas-faq-editor-toggle:hover,
.fas-faq-editor-toggle:focus,
.fas-faq-editor-toggle:active,
.fas-faq-editor-toggle:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.fas-faq-editor-item.is-open .fas-faq-editor-toggle .fas-faq-icon {
  transform: rotate(90deg);
}

.fas-faq-editor-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.fas-faq-editor-item-actions .components-button:focus,
.fas-faq-editor-item-actions .components-button:active,
.fas-faq-editor-item-actions .components-button.is-primary:focus,
.fas-faq-editor-item-actions .components-button.is-secondary:focus,
.fas-faq-editor-item-actions .components-button.is-tertiary:focus {
  outline: none;
  box-shadow: none;
}

.fas-faq-editor-fields {
  border-top: 1px solid #f0f0f1;
  padding-top: 0.75rem;
}

.fas-faq-editor-add {
  margin-top: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .fas-faq-section {
    padding: 2.5rem 1rem;
  }

  .fas-faq-question {
    padding: 1rem 1.125rem;
  }

  .fas-faq-answer-inner,
  .fas-faq-item.is-open .fas-faq-answer-inner {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }

  .fas-faq-item.is-open .fas-faq-answer-inner {
    padding-bottom: 1rem;
  }

  .fas-faq-question-text {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fas-faq-icon,
  .fas-faq-item,
  .fas-faq-answer,
  .fas-faq-answer-inner {
    transition: none;
  }
}
