/* Image Carousel Styles */
.image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  touch-action: pan-y; /* Improve mobile touch behavior */
  background-color: #f5f5f5; /* Add background color to prevent empty appearance */
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
  pointer-events: none; /* Prevent interactions with hidden slides */
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto; /* Allow interactions with active slide */
  z-index: 1; /* Ensure active slide is on top */
}

/* Ensure images within slides display properly on all devices */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* Make indicators larger and more tappable on mobile */
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  border: none;
  margin: 0 5px;
}

.carousel-indicators button.active {
  background-color: white;
}

/* Overlay for text readability if needed */
.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  height: 30%;
  pointer-events: none;
}

/* Progress arrow styles */
.progress-arrow {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
  .carousel-indicators button {
    width: 14px;
    height: 14px;
    margin: 0 6px;
  }
  
  /* Ensure the image carousel maintains proper height on small screens */
  .image-carousel, .carousel-container, .carousel-slide {
    min-height: 200px;
  }
  
  /* Make sure process arrows are visible on mobile */
  .progress-arrow {
    width: 30px;
    height: 30px;
    bottom: -40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  .progress-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  /* Add space between steps when stacking vertically */
  .relative.mb-24 {
    margin-bottom: 60px;
  }
  
  /* Make sure the connecting line is hidden properly on mobile */
  .absolute.left-1\/2.top-0.bottom-0.w-0\.5.bg-gray-200.-ml-px.hidden.md\:block {
    display: none !important;
  }
  
  /* Add navigation controls for mobile */
  .carousel-nav-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
  }
  
  .carousel-nav-button {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    cursor: pointer;
    border: none;
    color: #333;
  }
}
