/**
 * Tenbit FAQ Accordion Styles
 * Author: Team Tenbit Solution
 * URL: https://tenbitsol.com
 */

:root {
  --tenbit-brand-red: #c91818;
  --tenbit-font-heading: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tenbit-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tenbit-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenbit-faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--tenbit-font-body);
}

.tenbit-faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--tenbit-transition);
  box-sizing: border-box;
}

.tenbit-faq-item:hover {
  border-color: #d1d5db;
}

.tenbit-faq-item.active {
  border-color: var(--tenbit-brand-red);
}

.tenbit-faq-question-btn {
  width: 100%;
  padding: 1.35rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  box-sizing: border-box;
}

.tenbit-faq-question-text {
  font-family: var(--tenbit-font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.35;
  flex: 1;
  transition: color 0.2s ease;
}

.tenbit-faq-item:hover .tenbit-faq-question-text {
  color: var(--tenbit-brand-red);
}

.tenbit-faq-item.active .tenbit-faq-question-text {
  color: #111827;
}

.tenbit-faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--tenbit-brand-red);
  line-height: 1;
}

.tenbit-faq-icon svg {
  display: block;
}

.tenbit-icon-opened {
  display: none;
}

.tenbit-icon-closed {
  display: inline-flex;
}

.tenbit-faq-item.active .tenbit-icon-opened {
  display: inline-flex;
}

.tenbit-faq-item.active .tenbit-icon-closed {
  display: none;
}

.tenbit-icon-chevron svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenbit-faq-item.active .tenbit-icon-chevron svg {
  transform: rotate(180deg);
}

.tenbit-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
  opacity: 0;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.65;
  box-sizing: border-box;
}

.tenbit-faq-item.active .tenbit-faq-answer {
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.45s ease-in-out, opacity 0.35s ease;
}

.tenbit-faq-answer-inner {
  padding: 0 1.5rem 1.35rem 1.5rem;
}

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

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