/* =============================================
   FAQ Item — ACE Design System
   Accordion with ARIA accessibility
   ============================================= */

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
}

.faq-item--open {
  background-color: #f0f5ff;
}

/* --- Question button --- */
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #003087;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-item__question:hover {
  background-color: rgba(0, 86, 166, 0.04);
}

.faq-item__question:focus-visible {
  outline: 2px solid #0056A6;
  outline-offset: -2px;
}

.faq-item__question-text {
  flex: 1 1 auto;
}

/* --- Chevron icon --- */
.faq-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: #003087;
  transition: transform 0.3s ease;
}

.faq-item--open .faq-item__icon {
  transform: rotate(180deg);
  color: #E87722;
}

/* --- Panel --- */
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item--open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
}

/* --- Answer --- */
.faq-item__answer {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #333333;
  padding: 0 1.5rem 1.25rem;
}

.faq-item__answer p {
  margin: 0;
}
