/* FAQ Component Styles */

.lc-faq {
  max-width: 100%;
  margin: 0 auto;
}

.lc-faq-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 24px;
}

.lc-faq-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lc-faq-item {
  background: #ffffff;
  border: 1px solid #e9eef5;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  overflow: visible;
  transition: box-shadow 0.2s ease;
}

.lc-faq-item:hover {
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.08);
}

/* Question wrapper - clickable area */
.lc-faq-question-wrapper {
  width: 100%;
  min-height: 56px;
  padding: 24px;
  background: #ffffff !important;
  border: none !important;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
  border-radius: 12px;
  margin: 0;
  box-shadow: none !important;
}

.lc-faq-question-wrapper:hover {
  background: #f9fafb !important;
}

.lc-faq-question-wrapper:focus {
  outline: none;
  background: #ffffff !important;
}

.lc-faq-question-wrapper:focus-visible {
  outline: 2px solid #ef3a7b;
  outline-offset: 2px;
  background: #ffffff !important;
}

/* Ensure expanded state doesn't change background */
.lc-faq-item.expanded .lc-faq-question-wrapper {
  background: #ffffff !important;
  border-radius: 12px 12px 0 0;
}

.lc-faq-item.expanded .lc-faq-question-wrapper:hover {
  background: #f9fafb !important;
}

/* Heading styles - reset default margins and styling but inherit font */
.lc-faq-question-heading {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  line-height: 1.5 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: none !important;
  border: none !important;
  /* font-family removed - will inherit from parent */
}

.lc-faq-question-text {
  flex: 1;
  margin-right: 16px;
  line-height: 1.5;
  font-weight: 600;
  text-align: left;
  color: #111827 !important;
  /* font-family removed - will inherit from parent */
}

.lc-faq-icon {
  flex-shrink: 0;
  color: #ef3a7b;
  transition: transform 0.2s ease;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lc-faq-item.expanded .lc-faq-icon {
  transform: rotate(180deg);
}

.lc-faq-icon svg {
  width: 18px;
  height: 18px;
}

.lc-faq-icon-horizontal {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.lc-faq-icon-vertical {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: opacity 0.2s ease;
}

.lc-faq-item.expanded .lc-faq-icon-vertical {
  opacity: 0;
}

.lc-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
}

.lc-faq-item.expanded .lc-faq-answer {
  max-height: 500px;
  padding: 0 24px 24px 24px;
}

.lc-faq-answer-content {
  color: #6b7280;
  line-height: 1.6;
  font-size: 14px;
  margin-top: 8px;
  /* font-family removed - will inherit from parent */
}

.lc-faq-answer-content p {
  margin: 0 0 12px 0;
}

.lc-faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .lc-faq-question-wrapper {
    padding: 20px !important;
    min-height: 52px;
    background: #ffffff !important;
  }

  .lc-faq-question-wrapper:hover {
    background: #f9fafb !important;
  }

  .lc-faq-item.expanded .lc-faq-question-wrapper {
    background: #ffffff !important;
  }

  .lc-faq-item.expanded .lc-faq-question-wrapper:hover {
    background: #f9fafb !important;
  }

  .lc-faq-question-heading {
    font-size: 15px !important;
  }

  .lc-faq-question-text {
    margin-right: 12px;
  }

  .lc-faq-item.expanded .lc-faq-answer {
    padding: 0 20px 20px 20px;
  }

  .lc-faq-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .lc-faq-icon {
    width: 16px;
    height: 16px;
  }

  .lc-faq-icon svg {
    width: 16px;
    height: 16px;
  }

  .lc-faq-answer-content {
    font-size: 13px;
  }
}

/* Force override any inherited heading styles but preserve font-family */
.lc-faq .lc-faq-question-heading,
.lc-faq h1.lc-faq-question-heading,
.lc-faq h2.lc-faq-question-heading,
.lc-faq h3.lc-faq-question-heading,
.lc-faq h4.lc-faq-question-heading,
.lc-faq h5.lc-faq-question-heading,
.lc-faq h6.lc-faq-question-heading {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.5 !important;
  background: none !important;
  border: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  /* font-family removed - will inherit from Elementor */
}

/* Animation for smooth transitions */
@media (prefers-reduced-motion: no-preference) {
  .lc-faq-item {
    transition: box-shadow 0.2s ease;
  }

  .lc-faq-question-wrapper {
    transition: background-color 0.2s ease !important;
  }

  .lc-faq-answer {
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .lc-faq-icon {
    transition: transform 0.2s ease;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .lc-faq-item {
    border: 2px solid #111827;
  }

  .lc-faq-question-heading {
    color: #000000 !important;
  }

  .lc-faq-question-wrapper {
    background: #ffffff !important;
  }

  .lc-faq-answer-content {
    color: #111827;
  }

  .lc-faq-icon {
    color: #000000;
  }
}

/* CSS Custom Properties for theming */
.lc-faq {
  --accent: #ef3a7b;
}

.lc-faq-icon {
  color: var(--accent, #ef3a7b);
}

.lc-faq-question-wrapper:focus-visible {
  outline-color: var(--accent, #ef3a7b);
}
