.container-captcha {
  text-align: center;
  position: relative;
  overflow: hidden;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.checkbox-wrapper {
  display: flex;
  justify-content: center;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 25px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  max-width: 280px;
  user-select: none;
}

.checkbox-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
}

.checkbox-container:hover:not(.disabled):not(.checking) {
  border-color: #667eea;
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.checkbox-container:hover:not(.disabled):not(.checking)::after {
  left: 100%;
}

.checkbox-container.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f5f5f5;
}

.checkbox-container.checking {
  cursor: default;
  border-color: #667eea;
  background: #f0f4ff;
}

.checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border: 2px solid #bdc3c7;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: white;
  position: relative;
  flex-shrink: 0;
}

.checkbox.checked {
  background: #2ecc71;
  border-color: #2ecc71;
  transform: scale(1.1);
}

.checkbox.checking {
  border-color: #3498db;
  background: #3498db;
}

.checkbox.checking::after {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.checkbox.checked::after {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 16px;
  animation: checkAnim 0.3s ease;
}

.checkbox-text {
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
  user-select: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.captcha-wrapper {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.captcha-wrapper.show {
  display: block;
}

.captcha-container {
  margin: 15px 0;
  position: relative;
  display: inline-block;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  width: 250px;
  height: 300px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.captcha-container:hover {
  transform: scale(1.02);
}

.captcha-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.click-indicator {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #e74c3c;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  border: 3px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: none;
  animation: pulse 0.5s ease;
}

.click-text {
  font-size: 14px;
  color: #7f8c8d;
  display: none;
  animation: fadeIn 0.5s ease;
}

.click-text.show {
  display: block;
}

.message {
  max-width: 280px;
  margin: auto;
  margin-top: 15px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: none;
  animation: slideIn 0.3s ease;
  line-height: 1.5;
}

.message.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #b1dfbb;
}

.message.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f1b0b7;
}

.message.info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border: 1px solid #abdde5;
}

.message.warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border: 1px solid #ffdf7e;
}

.loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(52, 152, 219, 0.2);
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px;
  display: none;
}

.success-state {
  max-width: 280px;
  margin: auto;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 25px;
  background: linear-gradient(135deg, #e8f6ef 0%, #d4efdf 100%);
  border: 2px solid #2ecc71;
  border-radius: 12px;
  margin-top: 25px;
  animation: bounceIn 0.5s ease;
  transform-origin: center;
}

.success-icon {
  width: 40px;
  height: 40px;
  background: #2ecc71;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 20px;
  animation: iconPop 0.5s ease;
}

.success-text {
  font-size: 18px;
  color: #27ae60;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  
  100% {
    transform: rotate(360deg);
  }
}

@keyframes checkAnim {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  
  70% {
    transform: scale(1.2);
  }
  
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.7;
  }
  
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  
  50% {
    transform: scale(1.05);
  }
  
  70% {
    transform: scale(0.95);
  }
  
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes iconPop {
  0% {
    transform: scale(0);
  }
  
  70% {
    transform: scale(1.2);
  }
  
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 350px) {
  .captcha-container {
    width: 100%;
    height: auto;
    min-height: 280px;
  }
  
  .checkbox-text {
    font-size: 15px;
  }
}