/**
 * Allin Elementor Addons - Main Stylesheet
 * Version: 1.1.0
 * All custom styling for widgets
 */

/* =====================================================
   GENERAL NOTICES & STATES
   ===================================================== */

.allin-notice {
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
  border-left: 4px solid;
  font-size: 14px;
  line-height: 1.6;
}

.allin-notice p {
  margin: 0;
}

.allin-notice-error {
  background-color: #fee;
  border-color: #c33;
  color: #c33;
}

.allin-notice-warning {
  background-color: #ffeaa7;
  border-color: #fdcb6e;
  color: #6c5ce7;
}

.allin-notice-info {
  background-color: #e7f3ff;
  border-color: #0066cc;
  color: #0066cc;
}

/* =====================================================
   FAQ ACCORDION WIDGET
   ===================================================== */

.allin-elementor-addons-accordion {
  width: 100%;
}

/* Search Box */
.faq-search-box {
  margin-bottom: 20px;
}

.faq-search-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--e-global-color-primary, #0073aa);
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* FAQ Items */
.faq-item {
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.fadeIn {
  animation: fadeIn 0.6s ease-in-out;
}

.faq-item.slideInUp {
  animation: slideInUp 0.6s ease-in-out;
}

.faq-item.slideInDown {
  animation: slideInDown 0.6s ease-in-out;
}

.faq-item.zoomIn {
  animation: zoomIn 0.6s ease-in-out;
}

/* Question Button */
.faq-question {
  width: 100%;
  padding: 15px 20px;
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background-color: #e8e8e8;
  border-color: var(--e-global-color-primary, #0073aa);
}

.faq-question:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

.faq-question.active {
  background-color: var(--e-global-color-primary, #0073aa);
  color: white;
  border-color: var(--e-global-color-primary, #0073aa);
}

.faq-question-text {
  flex: 1;
  word-break: break-word;
}

/* Answer Content */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fafafa;
  border-left: 4px solid var(--e-global-color-primary, #0073aa);
}

.faq-answer.active {
  max-height: 2000px;
  overflow: visible;
  padding: 20px;
}

.faq-answer p {
  margin: 10px 0;
  line-height: 1.6;
}

.faq-answer p:first-child {
  margin-top: 0;
}

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

/* FAQ Icons */
.faq-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
  display: inline-block;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

/* Filtered Items */
.faq-item.hidden {
  display: none;
}

.allin-elementor-addons-accordion.multiple-open .faq-question {
  margin-bottom: 5px;
}

/* =====================================================
   ACF REPEATER WIDGET
   ===================================================== */

.acf-repeater-widget {
  width: 100%;
}

.repeater-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  transition: all 0.3s ease;
}

.repeater-item.fadeIn {
  animation: fadeIn 0.6s ease-in-out;
}

.repeater-item.slideInUp {
  animation: slideInUp 0.6s ease-in-out;
}

.repeater-item.slideInLeft {
  animation: slideInLeft 0.6s ease-in-out;
}

.repeater-item.slideInRight {
  animation: slideInRight 0.6s ease-in-out;
}

.repeater-item.zoomIn {
  animation: zoomIn 0.6s ease-in-out;
}

.repeater-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.repeater-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.repeater-image img:hover {
  transform: scale(1.05);
}

.repeater-item span {
  flex: 1;
  display: block;
  line-height: 1.6;
  word-break: break-word;
}

/* =====================================================
   ACF IMAGE BOX REPEATER WIDGET
   ===================================================== */

.acf-image-box-repeater-widget {
  display: grid;
  width: 100%;
}

.image-box-item {
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* Image Position Variants */
.image-position-left .image-box-item {
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
}

.image-position-right .image-box-item {
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 15px;
}

.image-position-top .image-box-item {
  flex-direction: column;
}

/* Image Container */
.image-box-image {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  width: 100%;
}

.image-box-image img {
  width: 100%;
  height: 100%;
  display: block;
  transition: all 0.4s ease;
  object-fit: cover;
}

/* Hover Effects */
.hover-effect-zoom .image-box-image img {
  transform-origin: center;
}

.hover-effect-zoom .image-box-item:hover .image-box-image img {
  transform: scale(1.08);
}

.hover-effect-fade .image-box-image img {
  opacity: 1;
}

.hover-effect-fade .image-box-item:hover .image-box-image img {
  opacity: 0.85;
}

.hover-effect-slide .image-box-image img {
  transform: translateY(0);
}

.hover-effect-slide .image-box-item:hover .image-box-image img {
  transform: translateY(-5px);
}

.hover-effect-grayscale-color .image-box-image img {
  filter: grayscale(100%);
}

.hover-effect-grayscale-color .image-box-item:hover .image-box-image img {
  filter: grayscale(0%);
}

/* Content */
.image-box-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.image-box-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
  transition: color 0.3s ease;
}

.image-box-item:hover .image-box-title {
  color: var(--e-global-color-primary, #0073aa);
}

.image-box-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  word-break: break-word;
}

/* Animation Classes */
.image-box-item.fadeIn {
  animation: fadeIn 0.6s ease-in-out;
}

.image-box-item.slideInUp {
  animation: slideInUp 0.6s ease-in-out;
}

.image-box-item.slideInDown {
  animation: slideInDown 0.6s ease-in-out;
}

.image-box-item.slideInLeft {
  animation: slideInLeft 0.6s ease-in-out;
}

.image-box-item.slideInRight {
  animation: slideInRight 0.6s ease-in-out;
}

.image-box-item.zoomIn {
  animation: zoomIn 0.6s ease-in-out;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {

  .faq-question {
    padding: 12px 15px;
    font-size: 15px;
  }

  .faq-answer.active {
    padding: 15px;
  }

  .image-position-left .image-box-item,
  .image-position-right .image-box-item {
    flex-direction: column;
    gap: 10px;
  }

  .repeater-item {
    flex-direction: column;
  }

  .repeater-image {
    width: 100%;
  }

}

@media (max-width: 480px) {

  .faq-search-input {
    padding: 10px 12px;
    font-size: 16px;
  }

  .faq-question {
    padding: 10px 12px;
    font-size: 14px;
  }

  .faq-icon {
    font-size: 14px;
  }

  .image-box-title {
    font-size: 16px;
  }

  .image-box-description {
    font-size: 13px;
  }

}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

/* Focus visible for keyboard navigation */
.faq-question:focus-visible,
.faq-search-input:focus-visible {
  outline: 2px solid var(--e-global-color-primary, #0073aa);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  .faq-answer,
  .faq-question,
  .faq-icon,
  .image-box-image img,
  .repeater-image img,
  .image-box-item {
    transition: none;
    animation: none;
  }

}

/* High contrast mode support */
@media (prefers-contrast: more) {

  .faq-question {
    border-width: 2px;
  }

  .faq-answer {
    border-left-width: 6px;
  }

}

/* Dark mode support */
@media (prefers-color-scheme: dark) {

  .faq-search-input {
    background-color: #2a2a2a;
    color: #fff;
    border-color: #444;
  }

  .faq-search-input:focus {
    border-color: var(--e-global-color-primary, #0073aa);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
  }

  .faq-question {
    background-color: #333;
    border-color: #444;
    color: #fff;
  }

  .faq-question:hover {
    background-color: #444;
  }

  .faq-answer {
    background-color: #2a2a2a;
    color: #e0e0e0;
  }

  .image-box-description {
    color: #b0b0b0;
  }

}

font-weight: 600;
color: #fff;
display: inline-block;
margin: 0 -10px 0;
}

.acf-gallery-tabs ul li.acf-gallery-tab {
  background-color: transparent !important;
  color: var(--e-global-color-primary) !important;
  border: 1px solid var(--e-global-color-primary) !important;
}

.acf-gallery-tabs ul li.acf-gallery-tab.active {
  text-decoration: none;
  background-color: var(--e-global-color-primary) !important;
  color: #fff !important;
}


.allin-elementor-addons-accordion .faq-item {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.allin-elementor-addons-accordion .faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.allin-elementor-addons-accordion .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  padding: 0 10px;
}

.allin-elementor-addons-accordion .faq-answer.active {
  max-height: 300px;
  /* Adjust if needed */
  padding: 10px;
}

.faq-icon {
  transition: transform 0.3s ease-in-out;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}