/**
 * FAQ Accordion Frontend Styles
 * Version: 1.0.0
 */

/* FAQ Wrapper */
.faq__wrapper {
  margin: 0 auto 30px;
}

/* FAQ Item */
.faq__item {
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq__item:last-child {
  margin-bottom: 0;
}

/* FAQ Header */
.faq__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 0 none;
  width: 100%;
  text-align: left;
  position: relative;
  background: transparent;
  border-top: 1px solid #d9d9d9;
}
.faq__header::-moz-focus-inner {
  border: 0;
  padding: 0;
}
.faq__item.active .faq__header,
.faq__item.active .faq__header:hover {
  background: transparent url("/wp-content/uploads/2025/08/bg2-block.webp") no-repeat scroll center center / cover;
  color: #ffffff;
}

/* FAQ Title */
.faq__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  line-height: 1.4;
  padding-right: 20px;
  flex: 1;
  transition: color 0.3s ease;
  padding-bottom: 0;
}

.faq__item.active .faq__title {
    color: #ffffff;
}

/* FAQ Icon */
.faq__icon {
  font-size: 28px;
  font-weight: 600;
  color: #001f49;
  transition: all 0.3s ease;
  display: block;
  line-height: 1;
  text-align: center;
}
.faq__item.active .faq__icon {
  color: #ffffff;
  transform: rotate(180deg);
}

/* FAQ Content */
.faq__content {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}
.faq__item.active .faq__content {
  max-height: 1000px;
  padding: 24px;
}

/* FAQ Text */
.faq__text {
  color: #666666;
  line-height: 1.4em;
  font-size: 18px;
}
.faq__text p {
  margin: 0 0 16px 0;
}
.faq__text p:last-child {
  margin-bottom: 0;
}
.faq__text ul,
.faq__text ol {
  margin: 0 0 16px 20px;
  padding: 0;
}
.faq__text li {
  margin-bottom: 8px;
}
.faq__text a {
  color: #007cba;
  text-decoration: none;
}
.faq__text a:hover {
  text-decoration: underline;
}
.faq__text strong,
.faq__text b {
  font-weight: 600;
  color: #333333;
}

/* Error Messages */
.faq-error {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 10px 0;
}
.faq-error p {
  margin: 0;
  color: #856404;
  font-size: 14px;
}

/* Loading State */
.faq__wrapper.loading {
  opacity: 0.6;
  pointer-events: none;
}
.faq__wrapper.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007cba;
  border-radius: 50%;
  animation: faq-spin 1s linear infinite;
}

@keyframes faq-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .faq__wrapper {
    margin: 0 10px 20px;
    max-width: none;
  }
  .faq__header {
    padding: 15px 18px;
  }
  .faq__title {
    font-size: 14px;
    padding-right: 15px;
  }
  .faq__icon {
    font-size: 18px;
    min-width: 20px;
    height: 20px;
  }
  .faq__item.active .faq__content {
    padding: 18px;
  }
  .faq__text {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .faq__header {
    padding: 12px 15px;
  }
  .faq__title {
    font-size: 13px;
    padding-right: 10px;
  }
  .faq__item.active .faq__content {
    padding: 15px;
  }
}
