/* Custom reCAPTCHA Styles */
.recaptcha-container {
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 16px;
  margin: 0 auto;
  background: #fafafa;
  max-width: 400px;
  transition: all 0.3s ease;
}

.recaptcha-container.verified {
  border-color: #6400a0;
  background: #f8fff9;
}

.recaptcha-container.failed {
  border-color: #dc3545;
  background: #fff8f8;
}

.recaptcha-header {
  display: flex;
  align-items: center;
}

.checkbox-container {
  position: relative;
  margin-right: 12px;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: white;
}

.custom-checkbox:hover {
  border-color: #6d2099;
}

.custom-checkbox.checked {
  background: #6400a0;
  border-color: #6400a0;
}

.checkmark {
  color: white;
  font-size: 16px;
  display: none;
}

.custom-checkbox.checked .checkmark {
  display: block;
}

.recaptcha-text {
  font-size: 14px;
  color: #555;
  flex: 1;
}

.recaptcha-logo {
  font-size: 12px;
  color: #999;
  text-align: right;
}

.challenge-container {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: white;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.challenge-container.active {
  display: block;
}

.challenge-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 15px;
}

.challenge-image {
  width: 100%;
  height: 100px;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.challenge-image:hover {
  border-color: #6400a0;
  transform: scale(1.02);
}

.challenge-image.selected {
  border-color: #6d2099;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.challenge-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.challenge-image.selected::after {
  opacity: 1;
}

.challenge-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.refresh-btn {
  background: none;
  border: none;
  color: #6400a0;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.refresh-btn:hover {
  background: rgba(102, 126, 234, 0.1);
}

.verify-btn {
  background: #6d2099;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.verify-btn:hover:not(:disabled) {
  background: #6400a0;
  transform: translateY(-1px);
}

.verify-btn:disabled {
  background: #af53e4;
  cursor: not-allowed;
  transform: none;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6400a0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.status-message {
  margin: 0px auto 20px auto;
  max-width: 500px;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.status-message.info {
  background: #cce7ff;
  color: #004085;
  border: 1px solid #b3d7ff;
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
    margin: 10px;
  }

  .form-title {
    font-size: 24px;
  }

  /* .image-grid {
    grid-template-columns: repeat(2, 1fr);
  } */
}
