/* ======================================================
   CAPTCHA DESIGN - RB Tech Solutions (Minimal Version)
   Clean, flat design with no shadows
   ====================================================== */

.captcha-block {
  width: 100%;
  margin-top: 15px;
}

.captcha-label {
  font-weight: 600;
  color: black;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

/* Simple wrapper with light border, NO shadows */
.captcha-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 2px solid #e8f0f7;
  border-radius: 8px;
  padding: 3px;
  position: relative;
  /* NO box-shadow */
}

/* Canvas with transparent/white background, NO shadows */
.captcha-canvas {
  flex: 1;
  width: 100%;
  max-width: 400px;
  height: 60px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  /* NO box-shadow or inset shadows */
}

/* Simple refresh button, NO shadows or hover effects */
.captcha-refresh {
  margin-left: 10px;
  background: transparent;
  color: #2525b7;
  border: none;
  outline: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.3s ease;
  /* NO box-shadow */
}

.captcha-refresh:hover {
  /* Simple hover - just slight opacity change, no color change */
  opacity: 0.9;
  transform: rotate(180deg);
}

/* Clean input field with shield icon, NO shadows */
#captchaInput,
.captcha-input {
  width: 100%;
  margin-top: 10px;
  border-radius: 6px;
  padding: 12px 15px;
  padding-left: 45px;
  border: 1px solid #e8f0f7;
  font-size: 14px;
  background: white;
  position: relative;
  transition: border-color 0.2s ease;
  /* NO box-shadow */
}

/* Shield icon for input */
.captcha-input-wrapper {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.captcha-input-wrapper::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  z-index: 1;
  pointer-events: none;
}

/* Focus state - minimal, NO shadows */
#captchaInput:focus,
.captcha-input:focus {
  outline: none;
  border-color: #022c82;
  /* NO box-shadow on focus */
}

/* Info text - simple and clean */
.captcha-info {
  font-size: 13px;
  color: #6c757d;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.captcha-info i {
  color: #6c757d;
  font-size: 14px;
}

/* Error message - minimal */
#captchaError,
.captcha-error {
  display: none;
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
}

/* Valid/Invalid states - minimal */
.is-valid {
  border-color: #28a745 !important;
}

.is-invalid {
  border-color: #dc3545 !important;
}

/* Rotation animation */
.rotate {
  transform: rotate(360deg);
}

/* Remove ALL shadows from all elements */
.captcha-block,
.captcha-block * {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Override any inherited shadows */
.captcha-wrapper,
.captcha-canvas,
.captcha-refresh,
.captcha-input,
#captchaInput {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* Ensure wrapper has no hover shadow */
.captcha-wrapper:hover {
  box-shadow: none !important;
}

/* Responsive - keep it minimal */
@media (max-width: 576px) {
  .captcha-wrapper {
    padding: 3px;
  }
  
  .captcha-canvas {
    height: 55px;
  }
  
  .captcha-refresh {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}