/* =============================================================
   PAKVR FAQ PRO — Frontend Accordion
   Clean, modern, Astra-inspired design
   ============================================================= */

/* ── Container ── */
.pakvr-faq-block {
  margin: 2.5rem 0;
  font-family: inherit;
}

.pakvr-faq-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.2rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #0ea5e9;
  display: inline-block;
}

/* ── Individual item ── */
.pakvr-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  background: #fff;
}

.pakvr-faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #d1d5db;
}

.pakvr-faq-item.is-open {
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
  border-color: #0ea5e9;
}

/* ── Question button ── */
.pakvr-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.25rem;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
  outline: none;
}

.pakvr-faq-question:focus-visible {
  outline: 3px solid #0ea5e9;
  outline-offset: -3px;
}

.pakvr-faq-question:hover {
  background: #eff6ff;
}

.pakvr-faq-item.is-open .pakvr-faq-question {
  background: #0ea5e9;
  color: #fff;
}

.pakvr-faq-q-text {
  flex: 1;
  min-width: 0;
}

/* ── Plus/cross icon (pure CSS) ── */
.pakvr-faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #6b7280;
  transition: color 0.2s ease;
}

.pakvr-faq-item.is-open .pakvr-faq-icon {
  color: #fff;
}

.pakvr-faq-icon::before,
.pakvr-faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Vertical bar of the + */
.pakvr-faq-icon::before {
  width: 2px;
  height: 14px;
  top: 3px;
  left: 9px;
}

/* Horizontal bar of the + */
.pakvr-faq-icon::after {
  width: 14px;
  height: 2px;
  top: 9px;
  left: 3px;
}

/* Rotate vertical bar → forms X when open */
.pakvr-faq-item.is-open .pakvr-faq-icon::before {
  transform: rotate(90deg);
  opacity: 0;
}

/* ── Answer panel — max-height slide ── */
/* Override any existing display:none from Additional CSS */
.pakvr-faq-block .pakvr-faq-answer {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #fff;
  border-top: 0 solid #e5e7eb;
}

.pakvr-faq-item.is-open .pakvr-faq-answer {
  max-height: 800px;
  border-top-width: 1px;
}

.pakvr-faq-answer-inner {
  padding: 1rem 1.25rem;
  font-size: 0.93rem;
  line-height: 1.75;
  color: #374151;
}

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

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

/* ── Mobile ── */
@media (max-width: 600px) {
  .pakvr-faq-question {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }
  .pakvr-faq-answer-inner {
    padding: 0.85rem 1rem;
  }
}
