/* =========================================================
   Instructions Carousel — styles
   ========================================================= */

.instructions-modal-content {
  overflow: hidden;
}

/* Carousel wrapper needs to be a positioning context for the
   absolutely-positioned language switcher */
.instructions-carousel {
  position: relative;
  background-color: #2E4053;
}

}

.instructions-img {
  display: block;
  width: 100%;
  height: auto;
  background-color: #ffffff;
  padding: 2.5rem 1.5rem 1.5rem;
}

/* ---------------------------------------------------------
   Language switcher — top-right corner of the carousel
   --------------------------------------------------------- */
.instructions-lang-switcher {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  display: flex;
  gap: 0.35rem;
}

.lang-btn {
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #495057;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: rgba(0, 0, 0, 0.25);
}

.lang-btn:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 1px;
}

.lang-btn.active {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
}

/* ---------------------------------------------------------
   Carousel controls — nudge them so they don't clash with
   the language switcher / stay visible on light backgrounds
   --------------------------------------------------------- */
.instructions-carousel .carousel-control-prev-icon,
.instructions-carousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  padding: 0.9rem;
  background-repeat: no-repeat;
  background-position: center;
}

.instructions-carousel .carousel-indicators {
  margin-bottom: 0.5rem;
}

.instructions-carousel .carousel-indicators [data-bs-target] {
  background-color: #6c757d;
}

.instructions-carousel .carousel-indicators .active {
  background-color: #0d6efd;
}

/* Small screens: shrink the language buttons a touch */
@media (max-width: 576px) {
  #instructionsModal .modal-dialog {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  #instructionsModal .modal-content {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background-color: #2E4053 !important;
  }

  .instructions-img {
    width: 100%;
    height: auto;
    padding: 2.5rem 0.25rem 1rem;
  }
}

#instructionsModal .modal-dialog {
  max-width: 900px;
  width: calc(100% - 1rem);
}

#instructionsModal .modal-header {
  background-color: #2E4053;
  color: #fff;
}

#instructionsModal .modal-header .modal-title {
  color: #fff;
}
