body.modal-is-open {
  overflow: hidden;
}

.slide-wheel-parent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(1, 1, 1, 0.85);
  z-index: 1000000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  display: none;
}

.slide-wheel-parent.slide-open {
  display: flex;
}

.captcha-close-button {
  padding: 8px;
  position: absolute !important;
  top: 5px;
  right: 5px;
  cursor: pointer;
  transition: all linear 0.3s;
}

.captcha-info {
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0px;
}

.captcha-info-img {
  width: 100%;
  padding-top: 50%;
  background-size: contain;
  z-index: 2;
  position: relative;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.chaptcha-info-text {
  color: #fff;
  z-index: 3;
  position: relative;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 10px;
}

.captcha-heading {
  font-size: 24px;
  margin-bottom: 0px;
  color: #ffffff;
  z-index: 3;
  position: relative;
}

.captcha-close-button svg {
  width: 20px;
  height: 20px;
  stroke: #332E30;
  transition: all linear 0.3s;
}

.captcha-close-button:hover svg {
  stroke: #5588FF;
}

.wheel-wrapper {
  background: linear-gradient(180deg, #90E7F5 0%, #58FFBE 100%);
  width: 650px;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 30px;
  padding-bottom: 20px;
  text-align: center;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(85, 136, 255, 0.3);

}

.wheel-wrapper * {
  z-index: 2;
}

* {
  font-family: "Ubuntu", sans-serif;
}


.are-you-human-slide-wrapper {
  width: 100%;
  margin: auto;
  margin-top: 0px;
  padding: 0px 0;
}

.are-you-human-slide-wrapper #validated {
  opacity: 0;
  display: block;
  text-align: center;
  transition: all 1s;
  margin-top: 20px;
  font-size: 20px;
  color: rgb(12, 94, 32);
}

.are-you-human-slide-wrapper #validated.true {
  opacity: 1;
}

.are-you-human-slide-wrapper label {
  position: relative;
  width: 100%;
  height: 20px;
  display: block;
  margin: auto;
}

.are-you-human-slide-wrapper #result {
  display: block;
  font-size: 20px;
  text-align: center;
  margin-top: 10px;
  color: white;
  position: absolute;
  right: 0;
  top: -12px;
}




.change-captcha-button {
  max-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 10px;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
}

.change-captcha-button svg {
  margin-left: 10px;
}

/* css */
.are-you-human-wrapper {
  color: #fff;
  display: flex;
  justify-content: flex-end;
}

.are-you-human-wrapper .dcontent {
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: #5645FF; */
  padding: 10px 16px !important;
  border-radius: 10px;
  /* border: 1px solid rgba(255, 255, 255, 0.4); */
  width: 100%;
}

.are-you-human-wrapper label {
  color: #332E30;
  margin-bottom: 0px;
  font-weight: 500;
}

.are-you-human-wrapper .are-you-human-button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #5588FF;
  background: rgba(85, 136, 255, 0.1);
  margin-left: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex: none;
  transition: all linear 0.3s;
}

.are-you-human-wrapper .are-you-human-button:hover {
  border-color: #5588FF;
  background: rgba(85, 136, 255, 0.2);
}

.are-you-human-wrapper .are-you-human-button.checked {
  border: 1px solid #58FFBE;
}

.are-you-human-wrapper .are-you-human-button .are-you-human-result {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #58FFBE;
  display: none;
}

.are-you-human-wrapper .are-you-human-button.checked .are-you-human-result {
  display: flex;
}

.are-you-human-wrapper .are-you-human-button .are-you-human-result img {
  width: 60%;
}

.are-you-human-message {
  text-align: center;
  display: none;
  background: #FF6B6B;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.are-you-human-message.show {
  display: block;
}

.wheel-wrapper .change-captcha-button {
  color: #332E30;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 0px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all linear 0.3s;
}

.wheel-wrapper .change-captcha-button:hover {
  color: #5588FF;
}

.wheel-wrapper .change-captcha-button svg {
  stroke: #332E30;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  transition: all linear 0.3s;
}

.wheel-wrapper .change-captcha-button:hover svg {
  stroke: #5588FF;
}

.wheel-wrapper .check-captcha-button {
  background: #5588FF;
  border-radius: 10px;
  color: #fff;
  width: 100%;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  z-index: 4;
  position: relative;
  transition: all linear 0.3s;
  box-shadow: inset -25px 0 20px -10px #5588FF;
}

.wheel-wrapper .check-captcha-button:hover {
  background: #fff;
  color: #000;
}

.captcha-is-wrong-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(1, 1, 1, 0.85);
  z-index: 1000000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.captcha-is-wrong-modal-wrapper.close {
  display: none;
}

.captcha-is-wrong-modal {
  width: 100%;
  max-width: 400px;
  padding: 30px;
  background: linear-gradient(180deg, #90E7F5 0%, #58FFBE 100%);
  border-radius: 20px;
  color: #332E30;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 100000;
  text-align: center;
  box-shadow: 0 8px 32px rgba(85, 136, 255, 0.3);
}

.captcha-is-wrong-modal-ok {
  padding: 12px 22px;
  max-width: 100px;
  margin-left: auto;
  margin-right: auto;
  background: #5588FF;
  color: #fff;
  border-radius: 10px;
  text-align: center;
  display: block;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all linear 0.3s;
  border: none;
}

.captcha-is-wrong-modal-ok:hover {
  background: #fff;
  color: #000;
}


/************** Nick Code ******************/

.are-you-human-slide-wrapper h5 {
  line-height: 30px;
  color: #332E30;
  font-weight: 600;
}

.are-you-human-slide-wrapper .spacer {
  max-width: 50px;
  margin-left: auto;
  margin-right: auto;
}

#contenedorPuzzle {
  margin: 10px auto;
  width: 100%;
  background: linear-gradient(45deg, #FF9800, #ee5589);
  color: #ccc;
  padding: 10px;
  overflow: hidden;

}


/* Puzzle Pieces - CSS Generated Colored Blocks */
.puzzle-piece {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  position: relative;
  cursor: grab;
  transition: transform 0.2s;
}

.puzzle-piece:active {
  cursor: grabbing;
}

/* Color scheme for pieces - Using background images */
.puzzle-piece[data-color="yellow"] {
  background-image: url('images/yellow.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.puzzle-piece[data-color="red"] {
  background-image: url('images/red.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(235, 51, 73, 0.4);
}

.puzzle-piece[data-color="blue"] {
  background-image: url('images/blue.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.puzzle-piece[data-color="green"] {
  background-image: url('images/green.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.puzzle-piece[data-color="orange"] {
  background-image: url('images/orange.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.5);
}

.puzzle-piece[data-color="violet"] {
  background-image: url('images/violet.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.puzzle-piece[data-color="pink"] {
  background-image: url('images/pink.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

/* Drop zone hints - Show color text */
.pattern-hint {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pattern-hint .hint-text {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  position: absolute;
  text-transform: capitalize;
}

.pattern-hint:has(.puzzle-piece) .hint-text {
  display: none;
}

/* Puzzle */
#contenedorPiezas {
  background: #ffffff;
  width: calc(50% - 5px);
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  float: left;
  grid-gap: 5px;
  padding: 5px;
}

#contenedorPiezas .puzzle-piece {
  /* All pieces are perfect squares in 2x2 grid */
}

/* Placeholder slots for left side to maintain positions */
.piece-slot {
  width: 100%;
  height: 100%;
  position: relative;
}

.piece-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
}


#puzzle {
  background: #fff;
  width: calc(50% - 5px);
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  float: right;
  position: relative;
  grid-gap: 5px;
  padding: 5px;
}

#puzzle .contenedorPieza {
  /* All slots are perfect squares in 2x2 grid */
}

#puzzle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
}

#puzzle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.contenedorPieza {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

#contenedorPuzzle .puzzle-piece {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/******************************************/
#message-after-email {

  width: 100%;
  position: fixed;
  top: 50%;
  z-index: 10000;
  max-width: 600px;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  text-align: center;
  color: #fff;
  background: rgb(201, 7, 7);
  border-radius: 20px;
  overflow: hidden;
}

#message-after-email #image-captcha-success-result-message {
  background: linear-gradient(180deg, #90E7F5 0%, #58FFBE 100%);
  padding-top: 50px;
  padding-bottom: 50px;
  color: #332E30;

}

#message-after-email .tcm-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

#message-after-email #image-captcha-success-result-message p {
  color: #332E30;
  font-weight: 500;
}

@media only screen and (max-width: 900px) {
  .wheel-wrapper {
    width: calc(100% - 40px);
    max-width: 340px;
  }

  .are-you-human-slide-wrapper h5 {
    font-size: 18px !important;
    line-height: 22px;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 30px;
  }

  .are-you-human-slide-wrapper .spacer {
    max-width: 30px;
  }

  .captcha-heading {
    font-size: 20px;
    line-height: 24px;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }

  #contenedorPiezas {
    width: calc(50% - 5px);

  }


  #puzzle {
    width: calc(50% - 5px);
  }

  .pattern-hint .hint-text {
    font-size: 14px;
  }

  /* Carousel: 2-slide layout so center slide aligns correctly */
  .carousel-container {
    max-width: 340px;
  }

  .carousel-wrapper {
    width: 340px;
    justify-content: center;
  }

  .carousel-viewport {
    width: 340px;
    /* 70 + 200 + 70 = 340px for 2 visible slides */
  }

  .carousel-slide {
    width: 70px;
    height: 93px;
  }

  .carousel-slide.active-center {
    width: 200px;
    height: 250px;
  }

}

/* 360px and smaller: narrower carousel so it fits and stays centered */
@media only screen and (max-width: 360px) {
  .carousel-container {
    max-width: 320px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-wrapper {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .carousel-viewport {
    width: 100%;
    max-width: 320px;
    /* 60 + 200 + 60 = 320px for 2 visible slides */
  }

  .carousel-slide {
    width: 60px;
    height: 80px;
  }

  .carousel-slide.active-center {
    width: 150px !important;
    height: 220px !important;
  }

}

/** --- Carousel Styles */
.carousel-container {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
}

.carousel-wrapper {
  width: 500px;
  /* Fixed width to show exactly 3 slides */
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

/* Create a viewport that shows exactly 3 slides */
.carousel-viewport {
  width: 500px;
  /* Exactly 150+200+150 = 500px for 3 slides */
  height: 250px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: absolute;
  top: 0;
  left: 0;
  gap: 20px;
}

.carousel-slide {
  width: 150px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.5;
  transform: scale(0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active-center {
  opacity: 1;
  transform: scale(1);
  width: 200px;
  height: 250px;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(51, 46, 48, 0.85);
  color: #fff;
  padding: 5px;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 500;
}

.carousel-slide:hover .carousel-overlay {
  opacity: 1;
}

/* Disable pointer events during animations to prevent conflicts */
.carousel-track.sliding {
  pointer-events: none;
}

.slider-container {
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  padding: 0 20px;
}

.slider {
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #5588FF;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(85, 136, 255, 0.4);
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #5588FF;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(85, 136, 255, 0.4);
  border: none;
}

/* Improve overall smoothness */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}