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

.slide-wheel-parent {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to right, #19293db9, #19293d);
  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;


}

.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;
}

.wheel-wrapper {
  background: linear-gradient(45deg, #000000, #331f56);
  width: 500px;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 30px;
  padding-bottom: 20px;
  text-align: center;
  position: relative;
  border-radius: 20px;
  overflow: hidden;

}

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

* {
  font-family: verdana, arial, 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: #fff;
  margin-bottom: 0px;
}

.are-you-human-wrapper .are-you-human-button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.1);
  margin-left: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex: none;
}

.are-you-human-wrapper .are-you-human-button.checked {
  border: 1px solid rgb(25, 163, 32);
}

.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: #b5ecb8;
  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: rgb(167, 50, 50);
  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: #fff;
  max-width: 220px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 0px;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.wheel-wrapper .change-captcha-button svg {
  stroke: #fff;
  width: 18px;
  height: 18px;
  margin-left: 8px;
}

.wheel-wrapper .check-captcha-button {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  width: 100%;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  z-index: 4;
  position: relative;
}

.wheel-wrapper .check-captcha-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.captcha-is-wrong-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgb(157 157 157 / 77%);
  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: #2a2626;
  border-radius: 20px;
  color: #fff;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: 100000;
  text-align: center;
}

.captcha-is-wrong-modal-ok {
  padding: 6px 20px;
  max-width: 100px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #e39b1f;
  text-align: center;
  display: block;
  margin-top: 10px;
  cursor: pointer;
}


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

.question-instruction {
  line-height: 30px;
  color: #fff;
  margin-bottom: 20px;
}

.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: #d9751f;
  padding-top: 50px;
  padding-bottom: 50px;
  color: #fff;

}

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

#message-after-email #image-captcha-success-result-message p {
  color: #fff;
}

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

  .question-instruction {
    font-size: 18px !important;
    line-height: 22px;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .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;
  }

  .question-image {
    max-height: 200px;
  }

  .answer-choices {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 10px;
  }

  .choice-item {
    min-height: 60px;
    padding: 12px;
  }

  .choice-text {
    font-size: 14px;
  }

}

/** --- Question Styles */
.question-image-container {
  width: 100%;
  max-width: 400px;
  margin: 30px auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.question-image {
  max-width: 100%;
  max-height: 250px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.answer-choices {
  width: 100%;
  max-width: 450px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0 20px;
}

.choice-item {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.choice-item.selected {
  background: rgba(76, 175, 80, 0.3);
  border-color: #4CAF50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.choice-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

@media only screen and (max-width: 600px) {
  .answer-choices {
    /* grid-template-columns: 1fr; */
    gap: 10px;
    padding: 0 10px;
  }

  .choice-item {
    min-height: 42px;
    padding: 5px;
  }

  .choice-text {
    font-size: 14px;
  }

  .question-image {
    max-height: 200px;
  }
}

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

/* ===== Rotation Captcha Styles ===== */

/* Rotation Captcha Container */
.rotate-captcha-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Outer circle - larger, fixed */
.outer-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-size: cover;
  background-position: 0 0;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Inner circle - same size as outer, with center hole */
.inner-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-size: cover;
  background-position: 0 0;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 2;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  cursor: grab;
  /* Create a donut shape with a hole in the center */
  mask: radial-gradient(circle at center, transparent 90px, black 90px);
  -webkit-mask: radial-gradient(circle at center, transparent 90px, black 90px);
  -webkit-filter: brightness(0.7);
  filter: brightness(0.7);
}

.inner-circle:active {
  cursor: grabbing;
}

/* Slider container */
.slider-container {
  width: 100%;
  max-width: 300px;
  margin: 30px auto;
  padding: 0 20px;
}

.slider-container label {
  display: block;
  text-align: center;
  margin-bottom: 15px;
  font-size: 18px;
  color: #fff;
  font-weight: 500;
}

/* Custom range slider */
.rotation-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #444;
  outline: none;
  margin-bottom: 20px;
}

.rotation-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.rotation-slider::-webkit-slider-thumb:hover {
  background: #0056b3;
  transform: scale(1.1);
}

.rotation-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Verification indicator */
.verification-indicator {
  text-align: center;
  margin-top: 20px;
  min-height: 30px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  color: #fff;
}

.verification-indicator.verified {
  color: #28a745;
  animation: successPulse 0.6s ease;
}

.verification-indicator.incorrect {
  color: #dc3545;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Success overlay */
.success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.success-overlay.show {
  display: flex;
  animation: overlayFadeIn 0.5s ease;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.success-check {
  font-size: 60px;
  color: #28a745;
  animation: checkAppear 0.5s ease 0.2s both;
}

@keyframes checkAppear {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Instructions */
.rotate-instructions {
  text-align: center;
  margin-bottom: 25px;
  font-size: 18px;
  color: #fff;
  line-height: 1.5;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

.rotate-instructions strong {
  color: #69aaf0;
}

/* Responsive design for rotation captcha */
@media (max-width: 768px) {
  .rotate-captcha-container {
    width: 250px;
    height: 250px;
  }

  .outer-circle {
    width: 200px;
    height: 200px;
  }

  .inner-circle {
    width: 200px;
    height: 200px;
    mask: radial-gradient(circle at center, transparent 70px, black 70px);
    -webkit-mask: radial-gradient(circle at center, transparent 70px, black 70px);
  }

  .rotate-instructions {
    font-size: 16px;
    padding: 0 15px;
  }

  .slider-container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .rotate-captcha-container {
    width: 200px;
    height: 200px;
  }

  .outer-circle {
    width: 160px;
    height: 160px;
  }

  .inner-circle {
    width: 160px;
    height: 160px;
    mask: radial-gradient(circle at center, transparent 50px, black 50px);
    -webkit-mask: radial-gradient(circle at center, transparent 50px, black 50px);
  }

  .success-check {
    font-size: 45px;
  }
}

/* Prevent manual input on slider */
.rotation-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.rotation-slider::-moz-range-thumb:active {
  cursor: grabbing;
}