﻿.captcha-block {
  width: 100%;
  margin-top: 15px;
}

.captcha-label {
  font-weight: 600;
  color: black;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}


.captcha-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 2px solid #e8f0f7;
  border-radius: 8px;
  padding: 3px;
  position: relative;
  
}


.captcha-canvas {
  flex: 1;
  width: 100%;
  max-width: 400px;
  height: 60px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  
}


.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;
  
}

.captcha-refresh:hover {
  
  opacity: 0.9;
  transform: rotate(180deg);
}


#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;
  
}


.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;
}


#captchaInput:focus,
.captcha-input:focus {
  outline: none;
  border-color: #022c82;
  
}


.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;
}


#captchaError,
.captcha-error {
  display: none;
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
}


.is-valid {
  border-color: #28a745 !important;
}

.is-invalid {
  border-color: #dc3545 !important;
}


.rotate {
  transform: rotate(360deg);
}


.captcha-block,
.captcha-block * {
  box-shadow: none !important;
  text-shadow: none !important;
}


.captcha-wrapper,
.captcha-canvas,
.captcha-refresh,
.captcha-input,
#captchaInput {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}


.captcha-wrapper:hover {
  box-shadow: none !important;
}


@media (max-width: 576px) {
  .captcha-wrapper {
    padding: 3px;
  }
  
  .captcha-canvas {
    height: 55px;
  }
  
  .captcha-refresh {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}