// Simple test script - paste this into browser console on DCS page

console.log('=== SIMPLE DCS PAGE TEST ===');

// Check basic page info
console.log('Page URL:', window.location.href);
console.log('Page Title:', document.title);

// Count elements
const inputs = document.querySelectorAll('input, select, textarea');
const divs = document.querySelectorAll('div');
const tables = document.querySelectorAll('table');
const spans = document.querySelectorAll('span');

console.log('Form elements:', inputs.length);
console.log('Divs:', divs.length);
console.log('Tables:', tables.length);
console.log('Spans:', spans.length);

// Show first few form elements
console.log('=== FORM ELEMENTS ===');
Array.from(inputs).slice(0, 5).forEach((input, i) => {
  console.log(`Input ${i}:`, {
    type: input.type,
    name: input.name,
    id: input.id,
    value: input.value
  });
});

// Show page text sample
const bodyText = document.body.textContent;
console.log('=== PAGE TEXT SAMPLE ===');
console.log('Total text length:', bodyText.length);
console.log('First 300 chars:', bodyText.substring(0, 300));

// Look for common keywords
const keywords = ['name', 'address', 'phone', 'ssn', 'email', 'employer'];
console.log('=== KEYWORD SEARCH ===');
keywords.forEach(keyword => {
  const found = bodyText.toLowerCase().includes(keyword);
  console.log(`Contains "${keyword}":`, found);
});

console.log('=== END TEST ===');