/**
 * ForeverVault FAQ Accordion Styles
 * All styles scoped under .fv-faq
 */

.fv-faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.fv-faq-title {
  text-align: center;
  color: #2b0b47 !important;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.fv-faq-note {
  color: #2b0b47 !important;
}

.fv-faq-note a {
  color: #2b0b47 !important;
  text-decoration: underline;
}

/* FAQ Item Container */
.fv-faq .faq-item {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Question Row - Closed State */
.fv-faq .item-question {
  background: #4B0082;
  color: #FFFFFF;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-radius: 6px 6px 0 0;
  transition: background-color 0.2s ease;
}

.fv-faq .item-question:hover {
  background: #5a0a9a;
}

.fv-faq .question-text {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.fv-faq .arrows-container {
  margin-left: 16px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

/* Arrow States */
.fv-faq .expand {
  display: inline-block;
}

.fv-faq .close {
  display: none;
}

.fv-faq .show-answer .expand {
  display: none;
}

.fv-faq .show-answer .close {
  display: inline-block;
}

/* Question Row - Open State */
.fv-faq .show-answer .item-question {
  background: #6B4BC8;
  border-radius: 6px 6px 0 0;
}

/* Answer - Hidden by Default */
.fv-faq .item-answer {
  display: none;
  background: #E6D8F2;
  color: #4B0082;
  padding: 20px;
  border-radius: 0 0 6px 6px;
  font-size: 15px;
  line-height: 1.6;
}

.fv-faq .item-answer p {
  margin: 0;
  color: #4B0082;
}

/* Answer - Visible when parent has show-answer class */
.fv-faq .show-answer .item-answer {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fv-faq {
    padding: 24px 16px;
  }
  
  .fv-faq-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  
  .fv-faq .faq-item {
    margin-bottom: 0.75rem;
  }
  
  .fv-faq .item-question {
    padding: 14px 16px;
  }
  
  .fv-faq .question-text {
    font-size: 15px;
  }
  
  .fv-faq .item-answer {
    padding: 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .fv-faq {
    padding: 20px 12px;
  }
  
  .fv-faq-title {
    font-size: 1.25rem;
  }
  
  .fv-faq .item-question {
    padding: 12px 14px;
  }
  
  .fv-faq .question-text {
    font-size: 14px;
  }
  
  .fv-faq .item-answer {
    padding: 14px;
    font-size: 13px;
  }
}
