#captcha-modal {
  border: none;
  border-radius: 8px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-family: 'Montserrat', sans-serif;
  color: #444;
  background: #f4f4f4;
}

#captcha-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.captcha-header {
  margin-bottom: 16px;
}

.captcha-header h4 {
  margin: 0 0 8px 0;
  color: #222;
  font-size: 1.2rem;
}

#captcha-instruction {
  font-size: 0.95rem;
  color: #444;
}

#captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  min-height: 200px;
}

.captcha-item {
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1;
}

.captcha-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.captcha-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59, 162, 220, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.captcha-item.selected .captcha-item-overlay {
  opacity: 1;
}

.captcha-item-overlay::after {
  content: '✓';
  color: white;
  font-size: 24px;
  font-weight: bold;
  background: #3ba2dc;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-loading {
  grid-column: span 3;
  text-align: center;
  padding: 40px 0;
  color: #666;
}

.captcha-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.captcha-actions button {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

#captcha-cancel-btn {
  background: #e5e5e5;
  color: #444;
}

#captcha-verify-btn {
  background: #3ba2dc;
  color: #fff;
}

#captcha-verify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
