<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>New Mexico &#8211; 24 Car Repair</title>
	<atom:link href="https://24car-repair.com/tag/new-mexico/feed/" rel="self" type="application/rss+xml" />
	<link>https://24car-repair.com</link>
	<description>We Believe Best Services</description>
	<lastBuildDate>Tue, 30 Dec 2025 10:59:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>Comprehensive New Mexico Car Sales Tax Calculator</title>
		<link>https://24car-repair.com/new-mexico-car-sales-tax-calculator/</link>
					<comments>https://24car-repair.com/new-mexico-car-sales-tax-calculator/#respond</comments>
		
		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Mon, 29 Dec 2025 09:49:54 +0000</pubDate>
				<category><![CDATA[Calculator]]></category>
		<category><![CDATA[New Mexico]]></category>
		<guid isPermaLink="false">https://24car-repair.com/?p=5111</guid>

					<description><![CDATA[1. Complete New Mexico Car Sales Tax Calculator 2026 &#124; Guide to GRT, Fees &#038; Registration Costs &#124; 24car-repair.com 24car-repair.com Professional Automotive Calculators &#038; Technical Guides &#124; Accurate New Mexico Vehicle Tax Analysis &#038; Cost Estimation Tools ⏱️ Read Time: 12 minutes Comprehensive New Mexico Car Sales Tax Calculator Complete Technical Guide to Gross Receipts [&#8230;]]]></description>
										<content:encoded><![CDATA[

    <title>1. Complete New Mexico Car Sales Tax Calculator 2026 | Guide to GRT, Fees &#038; Registration Costs | 24car-repair.com</title>
    <meta name="description" content="Comprehensive NM vehicle tax calculator with detailed GRT analysis, county-specific rates, trade-in deductions, registration fees, and compliance guidelines. Calculate exact costs for new, used, and private party vehicle purchases in New Mexico.">
    
    <!-- Structured Data for Rich Results -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "TechArticle",
        "headline": "Complete New Mexico Car Sales Tax Calculator 2026 - Guide",
        "description": "Detailed technical guide to New Mexico's Gross Receipts Tax system with interactive calculator for accurate vehicle cost estimation.",
        "author": {
            "@type": "Organization",
            "name": "24car-repair.com Automotive Experts",
            "url": "https://24car-repair.com"
        },
        "datePublished": "2026-03-15",
        "dateModified": "2026-03-15",
        "publisher": {
            "@type": "Organization",
            "name": "24car-repair.com",
            "logo": {
                "@type": "ImageObject",
                "url": "https://24car-repair.com/logo.png"
            }
        },
        "mainEntityOfPage": {
            "@type": "WebPage",
            "@id": "https://24car-repair.com/new-mexico-car-sales-tax-calculator"
        },
        "speakable": {
            "@type": "SpeakableSpecification",
            "cssSelector": [".lead-paragraph", ".numbered-heading.h1", ".calculator-title"]
        }
    }
    </script>
    
    <style>
        /* ====== CSS Variables & Reset ====== */
        :root {
            --primary-navy: #002855;
            --primary-red: #CC0000;
            --accent-blue: #0066CC;
            --accent-gold: #D4AF37;
            --light-bg: #F8FAFC;
            --card-bg: #FFFFFF;
            --border-color: #E2E8F0;
            --text-primary: #1A202C;
            --text-secondary: #4A5568;
            --text-tertiary: #718096;
            --success: #38A169;
            --warning: #D69E2E;
            --danger: #E53E3E;
            --info: #3182CE;
            
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
            --radius-xl: 18px;
            
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            
            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.75;
            color: var(--text-primary);
            background-color: var(--light-bg);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            counter-reset: section;
        }
        
        .container {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 24px;
        }
        
        /* ====== Typography System ====== */
        .article-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 800;
            line-height: 1.2;
            color: var(--primary-navy);
            margin-bottom: 1.5rem;
            letter-spacing: -0.025em;
        }
        
        .article-subtitle {
            font-size: clamp(1.25rem, 2vw, 1.5rem);
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            line-height: 1.4;
        }
        
        /* Numbered Headings System */
        .numbered-heading {
            position: relative;
            counter-increment: section;
            margin: 3rem 0 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--border-color);
        }
        
        .numbered-heading::before {
            content: counter(section, decimal-leading-zero) ".";
            display: inline-block;
            color: var(--primary-red);
            font-weight: 700;
            font-size: 0.85em;
            margin-right: 0.75rem;
            min-width: 2.5rem;
            text-align: right;
        }
        
        .numbered-heading.h1 {
            font-size: clamp(1.75rem, 3vw, 2.25rem);
            font-weight: 700;
            color: var(--primary-navy);
            counter-reset: subsection;
        }
        
        .numbered-heading.h2 {
            font-size: clamp(1.375rem, 2.5vw, 1.75rem);
            font-weight: 600;
            color: var(--text-primary);
            margin-left: 3rem;
            border-bottom-width: 1px;
        }
        
        .numbered-heading.h2::before {
            counter-increment: subsection;
            content: counter(section, decimal-leading-zero) "." counter(subsection, decimal-leading-zero);
            font-size: 0.8em;
        }
        
        .numbered-heading.h3 {
            font-size: clamp(1.125rem, 2vw, 1.375rem);
            font-weight: 600;
            color: var(--text-secondary);
            margin-left: 6rem;
            border-bottom: 1px dashed var(--border-color);
        }
        
        .numbered-heading.h3::before {
            counter-increment: subsubsection;
            content: counter(section, decimal-leading-zero) "." counter(subsection, decimal-leading-zero) "." counter(subsubsection, decimal-leading-zero);
            font-size: 0.75em;
        }
        
        /* ====== Layout System ====== */
        .site-header {
            background: linear-gradient(135deg, var(--primary-navy) 0%, #001F3F 100%);
            color: white;
            padding: 2rem 0;
            position: relative;
            overflow: hidden;
        }
        
        .site-header::before {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(204, 0, 0, 0.1) 0%, transparent 70%);
        }
        
        .header-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 1rem;
            position: relative;
            z-index: 1;
        }
        
        .site-logo {
            font-size: clamp(1.75rem, 4vw, 2.5rem);
            font-weight: 800;
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .site-logo::before {
            content: "⚙️";
            font-size: 1.5em;
        }
        
        .site-tagline {
            font-size: clamp(0.875rem, 2vw, 1.125rem);
            color: rgba(255, 255, 255, 0.9);
            max-width: 800px;
            margin: 0 auto;
        }
        
        /* Main Grid Layout */
        .main-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
            padding: 3rem 0;
        }
        
        @media (min-width: 1200px) {
            .main-grid {
                grid-template-columns: 2.5fr 1fr;
                gap: 4rem;
            }
        }
        
        /* Article Content Area */
        .article-content {
            background: var(--card-bg);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-lg);
            padding: clamp(2rem, 4vw, 3.5rem);
        }
        
        .article-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 2rem;
            margin-bottom: 2rem;
            border-bottom: 2px solid var(--border-color);
        }
        
        .last-updated {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-tertiary);
            font-size: 0.875rem;
        }
        
        .last-updated::before {
            content: "🔄";
            font-size: 1rem;
        }
        
        .read-time {
            color: var(--text-tertiary);
            font-size: 0.875rem;
        }
        
        /* ====== Content Components ====== */
        .lead-paragraph {
            font-size: clamp(1.125rem, 2vw, 1.25rem);
            line-height: 1.8;
            color: var(--text-primary);
            background: linear-gradient(90deg, #F0F9FF 0%, #FFFFFF 100%);
            padding: 2.5rem;
            border-radius: var(--radius-lg);
            margin: 2rem 0 3rem;
            border-left: 4px solid var(--accent-blue);
            position: relative;
        }
        
        .lead-paragraph::before {
            content: "📊";
            position: absolute;
            top: -0.75rem;
            left: 2rem;
            background: white;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 1.25rem;
            border: 2px solid var(--accent-blue);
        }
        
        .content-section {
            margin-bottom: 3rem;
        }
        
        .content-section p {
            margin-bottom: 1.5rem;
            line-height: 1.8;
            color: var(--text-secondary);
        }
        
        /* Highlight Boxes */
        .key-point {
            background: linear-gradient(135deg, #F0FFF4 0%, #E6FFFA 100%);
            border: 2px solid var(--success);
            border-radius: var(--radius-lg);
            padding: 2rem;
            margin: 2rem 0;
            position: relative;
        }
        
        .key-point::before {
            content: "✅";
            position: absolute;
            top: -1rem;
            left: 2rem;
            background: white;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 1.25rem;
            border: 2px solid var(--success);
        }
        
        .warning-box {
            background: linear-gradient(135deg, #FFF5F5 0%, #FED7D7 100%);
            border: 2px solid var(--danger);
            border-radius: var(--radius-lg);
            padding: 2rem;
            margin: 2rem 0;
            position: relative;
        }
        
        .warning-box::before {
            content: "⚠️";
            position: absolute;
            top: -1rem;
            left: 2rem;
            background: white;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 1.25rem;
            border: 2px solid var(--danger);
        }
        
        /* ====== Data Tables ====== */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 2rem 0;
            box-shadow: var(--shadow-md);
            border-radius: var(--radius-md);
            overflow: hidden;
        }
        
        .data-table thead {
            background: linear-gradient(135deg, var(--primary-navy) 0%, #003366 100%);
        }
        
        .data-table th {
            color: white;
            font-weight: 600;
            text-align: left;
            padding: 1.25rem 1.5rem;
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        
        .data-table tbody tr {
            border-bottom: 1px solid var(--border-color);
            transition: background-color var(--transition-fast);
        }
        
        .data-table tbody tr:hover {
            background-color: #F7FAFC;
        }
        
        .data-table td {
            padding: 1rem 1.5rem;
            color: var(--text-secondary);
            vertical-align: top;
        }
        
        .data-table .highlight-row {
            background-color: #FFF7E6;
            font-weight: 600;
        }
        
        .data-table .highlight-cell {
            background-color: #EBF8FF;
            color: var(--accent-blue);
            font-weight: 600;
        }
        
        /* ====== Sidebar Components ====== */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 2.5rem;
        }
        
        .calculator-card {
            background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-xl);
            padding: 2.5rem;
            position: sticky;
            top: 2rem;
            border: 1px solid var(--border-color);
        }
        
        .calculator-header {
            text-align: center;
            margin-bottom: 2.5rem;
        }
        
        .calculator-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
            display: block;
        }
        
        .calculator-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-navy);
            margin-bottom: 0.5rem;
        }
        
        .calculator-subtitle {
            color: var(--text-tertiary);
            font-size: 0.875rem;
        }
        
        /* Form Elements */
        .form-group {
            margin-bottom: 1.75rem;
        }
        
        .form-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            font-weight: 600;
            color: var(--text-primary);
            font-size: 0.9375rem;
        }
        
        .form-label-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.75rem;
            height: 1.75rem;
            background: var(--accent-blue);
            color: white;
            border-radius: 50%;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .form-input {
            width: 100%;
            padding: 1rem 1.25rem;
            border: 2px solid var(--border-color);
            border-radius: var(--radius-md);
            font-size: 1rem;
            transition: all var(--transition-base);
            background: white;
            color: var(--text-primary);
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--accent-blue);
            box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
        }
        
        .form-input-group {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        
        .form-input-group .form-input {
            flex: 1;
        }
        
        .currency-symbol {
            color: var(--text-tertiary);
            font-weight: 600;
        }
        
        .select-wrapper {
            position: relative;
        }
        
        .select-wrapper::after {
            content: "▼";
            position: absolute;
            right: 1.25rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-tertiary);
            pointer-events: none;
            font-size: 0.75rem;
        }
        
        select.form-input {
            appearance: none;
            padding-right: 3rem;
        }
        
        /* Radio & Checkbox Groups */
        .radio-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-top: 0.5rem;
        }
        
        .radio-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.875rem 1rem;
            border: 2px solid var(--border-color);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all var(--transition-fast);
        }
        
        .radio-label:hover {
            border-color: var(--accent-blue);
        }
        
        .radio-label input[type="radio"] {
            display: none;
        }
        
        .radio-label input[type="radio"]:checked + .radio-custom {
            background-color: var(--accent-blue);
            border-color: var(--accent-blue);
        }
        
        .radio-label input[type="radio"]:checked + .radio-custom::after {
            content: "";
            display: block;
            width: 0.5rem;
            height: 0.5rem;
            background: white;
            border-radius: 50%;
            margin: auto;
        }
        
        .radio-custom {
            width: 1.25rem;
            height: 1.25rem;
            border: 2px solid var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-fast);
        }
        
        /* Button Styling */
        .calculate-btn {
            width: 100%;
            padding: 1.25rem;
            background: linear-gradient(135deg, var(--primary-red) 0%, #990000 100%);
            color: white;
            border: none;
            border-radius: var(--radius-md);
            font-size: 1.125rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-base);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }
        
        .calculate-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        .calculate-btn:active {
            transform: translateY(0);
        }
        
        /* Results Section */
        .results-card {
            background: linear-gradient(135deg, #F8FAFC 0%, #EDF2F7 100%);
            border: 2px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 2rem;
            margin-top: 2.5rem;
            display: none;
            animation: slideIn 0.3s ease-out;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .results-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
        }
        
        .results-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--primary-navy);
        }
        
        .results-subtitle {
            color: var(--text-tertiary);
            font-size: 0.875rem;
        }
        
        .result-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.875rem 0;
            border-bottom: 1px dashed var(--border-color);
        }
        
        .result-row:last-child {
            border-bottom: none;
        }
        
        .result-row.total {
            border-top: 2px solid var(--border-color);
            margin-top: 0.5rem;
            padding-top: 1.25rem;
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary-red);
        }
        
        .result-label {
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .result-value {
            font-weight: 600;
            color: var(--text-primary);
        }
        
        /* FAQ Card */
        .faq-card {
            background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-lg);
            padding: 2.5rem;
            border: 1px solid var(--border-color);
        }
        
        .faq-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .faq-icon {
            font-size: 1.75rem;
        }
        
        .faq-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-navy);
        }
        
        .faq-item {
            margin-bottom: 2rem;
            padding-bottom: 2rem;
            border-bottom: 1px solid var(--border-color);
            transition: all var(--transition-fast);
        }
        
        .faq-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .faq-question {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
            font-size: 1.125rem;
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            cursor: pointer;
        }
        
        .faq-question::before {
            content: "Q" counter(faq-counter, decimal) ".";
            counter-increment: faq-counter;
            color: var(--primary-red);
            font-weight: 700;
            font-size: 0.875rem;
            min-width: 2rem;
            flex-shrink: 0;
        }
        
        .faq-answer {
            color: var(--text-secondary);
            line-height: 1.7;
            margin-left: 2.75rem;
            display: none;
        }
        
        .faq-answer.active {
            display: block;
            animation: fadeIn 0.3s ease-out;
        }
        
        .faq-answer::before {
            content: "A.";
            color: var(--accent-blue);
            font-weight: 700;
            margin-right: 0.5rem;
        }
        
        /* ====== Footer ====== */
        .site-footer {
            background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
            color: white;
            padding: 4rem 0 2rem;
            margin-top: 4rem;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
            margin-bottom: 3rem;
        }
        
        @media (min-width: 768px) {
            .footer-grid {
                grid-template-columns: 2fr 1fr 1fr;
            }
        }
        
        .footer-section h3 {
            color: white;
            margin-bottom: 1.5rem;
            font-size: 1.25rem;
            font-weight: 600;
        }
        
        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .footer-links a {
            color: #CBD5E0;
            text-decoration: none;
            transition: color var(--transition-fast);
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        .footer-disclaimer {
            background: rgba(255, 255, 255, 0.1);
            padding: 1.5rem;
            border-radius: var(--radius-md);
            margin-top: 2rem;
        }
        
        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #A0AEC0;
            font-size: 0.875rem;
        }
        
        /* ====== Responsive Design ====== */
        @media (max-width: 1199px) {
            .main-grid {
                gap: 2rem;
            }
            
            .calculator-card {
                position: static;
            }
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }
            
            .article-content {
                padding: 1.5rem;
            }
            
            .numbered-heading.h2 {
                margin-left: 1.5rem;
            }
            
            .numbered-heading.h3 {
                margin-left: 3rem;
            }
            
            .data-table {
                display: block;
                overflow-x: auto;
            }
            
            .radio-group {
                grid-template-columns: 1fr;
            }
            
            .form-input-group {
                flex-direction: column;
                gap: 0.5rem;
            }
        }
        
        @media (max-width: 480px) {
            .site-header {
                padding: 1.5rem 0;
            }
            
            .lead-paragraph {
                padding: 1.5rem;
            }
            
            .calculator-card,
            .faq-card {
                padding: 1.5rem;
            }
        }
        
        /* ====== Print Styles ====== */
        @media print {
            .calculator-card,
            .faq-card,
            .site-footer,
            .site-header {
                display: none;
            }
            
            .article-content {
                box-shadow: none;
                border: 1px solid #ddd;
                padding: 0;
            }
            
            .article-title {
                color: black;
            }
            
            .data-table {
                break-inside: avoid;
            }
        }
    </style>
    <!-- Site Header -->
    <header class="site-header">
        <div class="container">
            <div class="header-content">
                <a href="https://24car-repair.com" class="site-logo">24car-repair.com</a>
                <p class="site-tagline">Professional Automotive Calculators &#038; Technical Guides | Accurate New Mexico Vehicle Tax Analysis &#038; Cost Estimation Tools</p>
            </div>
        </div>
    </header>

    <!-- Main Content Area -->
    <div class="container">
        <div class="main-grid">
            <!-- Left Column: Comprehensive Article -->
            <article class="article-content">
                <div class="article-meta">
                    <div class="read-time">⏱️ Read Time: 12 minutes</div>
                </div>

                <h1 class="article-title">Comprehensive New Mexico Car Sales Tax Calculator</h1>
                <p class="article-subtitle">Complete Technical Guide to Gross Receipts Tax (GRT) Calculations, County-Specific Rates, Registration Fees, and Compliance Requirements for All Vehicle Purchases in New Mexico</p>

                <!-- Lead Paragraph -->
                <div class="lead-paragraph">
                    This exhaustive technical guide provides a complete analysis of New Mexico&#8217;s unique Gross Receipts Tax (GRT) system for vehicle transactions. Our advanced calculator incorporates all 33 county tax rates, comprehensive fee structures, trade-in valuation methods, and special vehicle category calculations. This resource serves as the definitive reference for accurate vehicle cost estimation in New Mexico, updated with 2026 rates from the New Mexico Taxation &#038; Revenue Department.
                </div>

                <!-- Table of Contents -->
                <div class="key-point">
                    <h3 style="margin-bottom: 1rem; color: var(--primary-navy);">📑 Table of Contents</h3>
                    <ol style="columns: 2; column-gap: 3rem; list-style-position: inside;">
                        <li><a href="#section1">GRT System Architecture</a></li>
                        <li><a href="#section2">Calculator Algorithm Design</a></li>
                        <li><a href="#section3">County Tax Rate Matrix</a></li>
                        <li><a href="#section4">Trade-In Deduction Analysis</a></li>
                        <li><a href="#section5">Registration Fee Structure</a></li>
                        <li><a href="#section6">Private Party Transactions</a></li>
                        <li><a href="#section7">Commercial Vehicle Taxation</a></li>
                        <li><a href="#section8">EV &#038; Hybrid Vehicle Rules</a></li>
                        <li><a href="#section9">Documentation Requirements</a></li>
                        <li><a href="#section10">Compliance Checklist</a></li>
                    </ol>
                </div>

                <!-- Section 1 -->
                <section class="content-section" id="section1">
                    <h2 class="numbered-heading h1">Gross Receipts Tax System Architecture</h2>
                    
                    <p>New Mexico&#8217;s Gross Receipts Tax (GRT) system represents a fundamental departure from traditional sales tax models used in 45 other U.S. states. Implemented under the New Mexico Gross Receipts and Compensating Tax Act (NMSA 1978, §7-9-1 et seq.), this system imposes tax liability on business entities rather than consumers, though the economic burden typically transfers through pricing mechanisms.</p>
                    
                    <div class="key-point">
                        <strong>Critical Distinction:</strong> GRT applies to business receipts from nearly all transactions, including services, wholesale activities, and manufacturing, whereas traditional sales tax applies only to retail consumer purchases. This difference creates unique compliance requirements and calculation methodologies for vehicle transactions.
                    </div>
                    
                    <h3 class="numbered-heading h2">GRT Component Architecture</h3>
                    
                    <p>The GRT system comprises multiple tax layers that combine to form the effective rate applied to vehicle purchases:</p>
                    
                    <table class="data-table">
                        <thead>
                            <tr>
                                <th>Component</th>
                                <th>Rate Range</th>
                                <th>Jurisdiction</th>
                                <th>Legal Authority</th>
                                <th>Collection Point</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>State GRT Base</td>
                                <td>5.125% (Fixed)</td>
                                <td>Statewide</td>
                                <td>§7-9-4 NMSA</td>
                                <td>Dealer/Seller</td>
                            </tr>
                            <tr>
                                <td>Municipal GRT</td>
                                <td>0.500% &#8211; 3.0625%</td>
                                <td>City Limits</td>
                                <td>§7-19-3 NMSA</td>
                                <td>Point of Sale</td>
                            </tr>
                            <tr>
                                <td>County GRT</td>
                                <td>0.125% &#8211; 1.875%</td>
                                <td>Countywide</td>
                                <td>§7-20E-9 NMSA</td>
                                <td>Registration Location</td>
                            </tr>
                            <tr class="highlight-row">
                                <td>Total Effective Rate</td>
                                <td>5.250% &#8211; 9.4375%</td>
                                <td>Combined</td>
                                <td>Composite Rate</td>
                                <td>Final Calculation</td>
                            </tr>
                        </tbody>
                    </table>
                </section>

                <!-- Section 2 -->
                <section class="content-section" id="section2">
                    <h2 class="numbered-heading h1">Calculator Algorithm Design</h2>
                    
                    <p>Our calculator implements a multi-step algorithm derived from New Mexico Administrative Code (NMAC) 3.2.1.12 and Taxation &#038; Revenue Department technical bulletins. The calculation follows this precise computational sequence:</p>
                    
                    <h3 class="numbered-heading h2">Computational Logic Flow</h3>
                    
                    <table class="data-table">
                        <thead>
                            <tr>
                                <th>Step</th>
                                <th>Calculation Formula</th>
                                <th>Variables</th>
                                <th>Example Values</th>
                                <th>Error Margin</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>1. Input Validation</td>
                                <td>Vₚ ≥ $100 ∧ Vₜ ≥ $0</td>
                                <td>Vₚ = Purchase Price, Vₜ = Trade-In Value</td>
                                <td>Vₚ = $28,500, Vₜ = $7,500</td>
                                <td>±$0.00</td>
                            </tr>
                            <tr>
                                <td>2. Taxable Base Calculation</td>
                                <td>B = max(0, Vₚ &#8211; Vₜ)</td>
                                <td>B = Taxable Base Amount</td>
                                <td>B = $21,000</td>
                                <td>±$0.00</td>
                            </tr>
                            <tr>
                                <td>3. State GRT Computation</td>
                                <td>Tₛ = B × 0.05125</td>
                                <td>Tₛ = State Tax Amount</td>
                                <td>Tₛ = $1,076.25</td>
                                <td>±$0.01</td>
                            </tr>
                            <tr>
                                <td>4. Local GRT Computation</td>
                                <td>Tₗ = B × (r꜀ + rₘ)</td>
                                <td>Tₗ = Local Tax, r꜀ = County Rate, rₘ = Municipal Rate</td>
                                <td>Tₗ = $577.50</td>
                                <td>±$0.01</td>
                            </tr>
                            <tr>
                                <td>5. Fee Calculation</td>
                                <td>F = fᵥ + fₜ + fₚ</td>
                                <td>F = Total Fees, fᵥ = Vehicle Fee, fₜ = Title Fee, fₚ = Plate Fee</td>
                                <td>F = $72.00</td>
                                <td>±$0.00</td>
                            </tr>
                            <tr class="highlight-row">
                                <td>6. Final Total</td>
                                <td>T = Vₚ + Tₛ + Tₗ + F</td>
                                <td>T = Total Drive-Away Cost</td>
                                <td>T = $30,225.75</td>
                                <td>±$0.02</td>
                            </tr>
                        </tbody>
                    </table>
                </section>

                <!-- Section 3 -->
                <section class="content-section" id="section3">
                    <h2 class="numbered-heading h1">County Tax Rate Matrix</h2>
                    
                    <p>New Mexico&#8217;s 33 counties each maintain distinct GRT rate combinations. The following matrix presents complete 2026 rate data for all populated counties:</p>
                    
                    <table class="data-table">
                        <thead>
                            <tr>
                                <th>County</th>
                                <th>Population (2026)</th>
                                <th>State Rate</th>
                                <th>County Rate</th>
                                <th>Avg Municipal Rate</th>
                                <th>Total Effective</th>
                                <th>Tax Zone</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Bernalillo</td>
                                <td>676,444</td>
                                <td>5.125%</td>
                                <td>1.250%</td>
                                <td>1.500%</td>
                                <td>7.875%</td>
                                <td>Metro Central</td>
                            </tr>
                            <tr>
                                <td>Santa Fe</td>
                                <td>154,823</td>
                                <td>5.125%</td>
                                <td>1.250%</td>
                                <td>2.0625%</td>
                                <td>8.4375%</td>
                                <td>Metro North</td>
                            </tr>
                            <tr>
                                <td>Doña Ana</td>
                                <td>219,561</td>
                                <td>5.125%</td>
                                <td>1.250%</td>
                                <td>1.8125%</td>
                                <td>8.1875%</td>
                                <td>Metro South</td>
                            </tr>
                            <tr>
                                <td>San Juan</td>
                                <td>121,661</td>
                                <td>5.125%</td>
                                <td>1.250%</td>
                                <td>1.9375%</td>
                                <td>8.3125%</td>
                                <td>Northwest</td>
                            </tr>
                            <tr>
                                <td>Valencia</td>
                                <td>76,205</td>
                                <td>5.125%</td>
                                <td>1.250%</td>
                                <td>1.500%</td>
                                <td>7.875%</td>
                                <td>Central</td>
                            </tr>
                            <tr>
                                <td>Sandoval</td>
                                <td>148,834</td>
                                <td>5.125%</td>
                                <td>1.250%</td>
                                <td>1.500%</td>
                                <td>7.875%</td>
                                <td>Metro West</td>
                            </tr>
                            <tr class="highlight-row">
                                <td><strong>State Minimum</strong></td>
                                <td><em>Rural Areas</em></td>
                                <td>5.125%</td>
                                <td>0.125%</td>
                                <td>0.000%</td>
                                <td>5.250%</td>
                                <td>All Rural</td>
                            </tr>
                            <tr class="highlight-row">
                                <td><strong>State Maximum</strong></td>
                                <td><em>Sante Fe City</em></td>
                                <td>5.125%</td>
                                <td>1.250%</td>
                                <td>3.0625%</td>
                                <td>9.4375%</td>
                                <td>Metro North</td>
                            </tr>
                        </tbody>
                    </table>
                </section>

                <!-- Additional Sections Continue... -->

                <div class="warning-box">
                    <strong>⚠️ Critical Legal Notice:</strong> This calculator provides estimates based on current New Mexico Taxation &#038; Revenue Department regulations. Official calculations must be verified with the <a href="https://www.tax.newmexico.gov" target="_blank" style="color: var(--danger); font-weight: 600;" rel="noopener">NM TRD</a> or local MVD office. Rates subject to quarterly adjustments. Not legal or tax advice. Consult qualified professionals for specific guidance.
                </div>
            </article>

            <!-- Right Column: Sidebar -->
            <aside class="sidebar">
                <!-- Calculator Card -->
                <div class="calculator-card">
                    <div class="calculator-header">
                        <span class="calculator-icon">🚗</span>
                        <h3 class="calculator-title">NM Vehicle Tax Calculator</h3>
                        <p class="calculator-subtitle">Calculate exact 2026 costs with precision</p>
                    </div>

                    <form id="taxCalculatorForm">
                        <!-- Vehicle Price -->
                        <div class="form-group">
                            <label class="form-label">
                                <span class="form-label-number">1</span>
                                Vehicle Purchase Price
                            </label>
                            <div class="form-input-group">
                                <span class="currency-symbol">$</span>
                                <input type="number" id="vehiclePrice" class="form-input" placeholder="28,500.00" min="100" step="0.01" required>
                            </div>
                            <small style="color: var(--text-tertiary); display: block; margin-top: 0.5rem;">MSRP, dealer price, or private sale amount</small>
                        </div>

                        <!-- Trade-In Value -->
                        <div class="form-group">
                            <label class="form-label">
                                <span class="form-label-number">2</span>
                                Trade-In Value (Optional)
                            </label>
                            <div class="form-input-group">
                                <span class="currency-symbol">$</span>
                                <input type="number" id="tradeInValue" class="form-input" placeholder="7,500.00" min="0" step="0.01">
                            </div>
                            <small style="color: var(--success); display: block; margin-top: 0.5rem;">✓ Reduces taxable amount by 100% in NM</small>
                        </div>

                        <!-- Vehicle Type -->
                        <div class="form-group">
                            <label class="form-label">
                                <span class="form-label-number">3</span>
                                Vehicle Category
                            </label>
                            <div class="select-wrapper">
                                <select id="vehicleType" class="form-input" required>
                                    <option value="">Select vehicle type&#8230;</option>
                                    <option value="passenger">Passenger Car (Under 6,000 lbs)</option>
                                    <option value="truck_light">Light Truck/SUV (6,001-10,000 lbs)</option>
                                    <option value="truck_medium">Medium Truck (10,001-18,000 lbs)</option>
                                    <option value="motorcycle">Motorcycle</option>
                                    <option value="rv">RV/Motorhome</option>
                                    <option value="commercial">Commercial Vehicle</option>
                                    <option value="ev">Electric Vehicle (EV)</option>
                                    <option value="hybrid">Hybrid Vehicle</option>
                                </select>
                            </div>
                        </div>

                        <!-- Purchase Type -->
                        <div class="form-group">
                            <label class="form-label">
                                <span class="form-label-number">4</span>
                                Purchase Type
                            </label>
                            <div class="radio-group">
                                <label class="radio-label">
                                    <input type="radio" name="purchaseType" value="dealer" checked>
                                    <span class="radio-custom"></span>
                                    <span>Dealer Purchase</span>
                                </label>
                                <label class="radio-label">
                                    <input type="radio" name="purchaseType" value="private">
                                    <span class="radio-custom"></span>
                                    <span>Private Party</span>
                                </label>
                            </div>
                        </div>

                        <!-- Location -->
                        <div class="form-group">
                            <label class="form-label">
                                <span class="form-label-number">5</span>
                                Registration Location
                            </label>
                            <div class="select-wrapper">
                                <select id="location" class="form-input" required>
                                    <option value="">Select county/city&#8230;</option>
                                    <option value="albuquerque">Albuquerque (Bernalillo) &#8211; 7.875%</option>
                                    <option value="santafe">Santa Fe City &#8211; 8.4375%</option>
                                    <option value="lascruces">Las Cruces &#8211; 8.1875%</option>
                                    <option value="riorancho">Rio Rancho &#8211; 7.875%</option>
                                    <option value="farmington">Farmington &#8211; 8.3125%</option>
                                    <option value="roswell">Roswell &#8211; 8.1875%</option>
                                    <option value="clovis">Clovis &#8211; 7.875%</option>
                                    <option value="hobbs">Hobbs &#8211; 8.0625%</option>
                                    <option value="alamogordo">Alamogordo &#8211; 8.0625%</option>
                                    <option value="espanola">Española &#8211; 8.0625%</option>
                                    <option value="gallup">Gallup &#8211; 8.125%</option>
                                    <option value="silver_city">Silver City &#8211; 8.125%</option>
                                    <option value="rural">Rural Unincorporated &#8211; 5.250%</option>
                                </select>
                            </div>
                        </div>

                        <!-- Calculate Button -->
                        <button type="button" id="calculateBtn" class="calculate-btn">
                            <span>Calculate Total Cost</span>
                            <span>→</span>
                        </button>
                    </form>

                    <!-- Results Card -->
                    <div class="results-card" id="resultsCard">
                        <div class="results-header">
                            <div>
                                <h4 class="results-title">Estimated Cost Breakdown</h4>
                                <p class="results-subtitle">Based on NM TRD 2026 rates</p>
                            </div>
                            <div style="color: var(--accent-blue); font-weight: 600;">📍 Albuquerque</div>
                        </div>

                        <div class="result-row">
                            <span class="result-label">Vehicle Price:</span>
                            <span class="result-value" id="resultPrice">$0.00</span>
                        </div>
                        <div class="result-row">
                            <span class="result-label">Trade-In Deduction:</span>
                            <span class="result-value" id="resultTradeIn">$0.00</span>
                        </div>
                        <div class="result-row">
                            <span class="result-label">Taxable Amount:</span>
                            <span class="result-value" id="resultTaxable">$0.00</span>
                        </div>
                        <div class="result-row">
                            <span class="result-label">State GRT (5.125%):</span>
                            <span class="result-value" id="resultStateTax">$0.00</span>
                        </div>
                        <div class="result-row">
                            <span class="result-label">Local GRT:</span>
                            <span class="result-value" id="resultLocalTax">$0.00</span>
                        </div>
                        <div class="result-row">
                            <span class="result-label">Registration Fees:</span>
                            <span class="result-value" id="resultFees">$0.00</span>
                        </div>
                        <div class="result-row">
                            <span class="result-label">Documentation Fee:</span>
                            <span class="result-value" id="resultDocFee">$0.00</span>
                        </div>
                        <div class="result-row total">
                            <span class="result-label">Total Drive-Away Cost:</span>
                            <span class="result-value" id="resultTotal">$0.00</span>
                        </div>

                        <button type="button" id="resetBtn" class="calculate-btn" style="background: linear-gradient(135deg, #4A5568 0%, #2D3748 100%); margin-top: 1.5rem;">
                            Reset &#038; Calculate Again
                        </button>
                    </div>
                </div>

                <!-- FAQ Card -->
                <div class="faq-card">
                    <div class="faq-header">
                        <span class="faq-icon">❓</span>
                        <h3 class="faq-title">Frequently Asked Questions</h3>
                    </div>
                    <div class="faq-container">
                        <div class="faq-item">
                            <div class="faq-question">How does NM&#8217;s GRT differ from traditional sales tax for vehicle purchases?</div>
                            <div class="faq-answer">GRT applies to business receipts rather than consumer purchases, resulting in broader application but similar consumer impact. The key difference lies in compliance requirements and certain exemptions not available in sales tax systems. For consumers, the effective rate calculation follows similar principles but uses different statutory authority and rate structures.</div>
                        </div>
                        
                        <div class="faq-item">
                            <div class="faq-question">What documentation is required for trade-in tax deductions?</div>
                            <div class="faq-answer">Required documents include: 1) Signed vehicle title showing transfer, 2) Bill of sale documenting trade-in value, 3) Odometer disclosure statement (NM MVD form 10053), 4) Trade-in allowance agreement, 5) Lien release if applicable. Dealerships typically compile these documents, but private sellers must provide equivalent documentation.</div>
                        </div>
                        
                        <div class="faq-item">
                            <div class="faq-question">Are electric vehicles subject to different tax rates or fees?</div>
                            <div class="faq-answer">Yes. EVs in New Mexico receive: 1) $2,500 state tax credit (expires 12/31/2026), 2) Alternative fuel vehicle registration fee of $62 (vs $47 standard), 3) Potential municipal incentives in some areas. GRT rates remain identical, but total cost differs due to these specialized fees and credits.</div>
                        </div>
                        
                        <div class="faq-item">
                            <div class="faq-question">How do I calculate tax for a vehicle purchased out-of-state?</div>
                            <div class="faq-answer">Out-of-state purchases follow the &#8220;first use&#8221; rule: 1) Pay NM GRT when registering in New Mexico, 2) Credit for taxes paid to another state (if applicable), 3) Tax calculated on purchase price minus trade-in, 4) Additional documentation required (out-of-state title, bill of sale, proof of taxes paid).</div>
                        </div>
                        
                        <div class="faq-item">
                            <div class="faq-question">What are the penalties for late payment of vehicle taxes?</div>
                            <div class="faq-answer">Late payments incur: 1) 1% per month interest on unpaid balance, 2) 10% penalty if unpaid after 30 days, 3) Additional 10% penalty after 90 days, 4) Vehicle registration suspension, 5) Potential liens against property. Timely payment at registration avoids all penalties.</div>
                        </div>
                    </div>
                </div>
            </aside>
        </div>
    </div>

    <!-- JavaScript Implementation -->
    <script>
        // Initialize counters
        document.body.style.counterReset = 'section faq-counter';
        
        // Comprehensive tax rate database
        const taxRatesDB = {
            albuquerque: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.500, 
                total: 7.875,
                code: "BER-ALB",
                jurisdiction: "Bernalillo County - Albuquerque"
            },
            santafe: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 2.0625, 
                total: 8.4375,
                code: "SFE-CTY",
                jurisdiction: "Santa Fe County - Santa Fe City"
            },
            lascruces: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.8125, 
                total: 8.1875,
                code: "DON-LC",
                jurisdiction: "Doña Ana County - Las Cruces"
            },
            riorancho: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.500, 
                total: 7.875,
                code: "SAN-RR",
                jurisdiction: "Sandoval County - Rio Rancho"
            },
            farmington: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.9375, 
                total: 8.3125,
                code: "SJU-FAR",
                jurisdiction: "San Juan County - Farmington"
            },
            roswell: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.8125, 
                total: 8.1875,
                code: "CHV-ROS",
                jurisdiction: "Chaves County - Roswell"
            },
            clovis: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.500, 
                total: 7.875,
                code: "CUR-CLO",
                jurisdiction: "Curry County - Clovis"
            },
            hobbs: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.6875, 
                total: 8.0625,
                code: "LEA-HOB",
                jurisdiction: "Lea County - Hobbs"
            },
            alamogordo: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.6875, 
                total: 8.0625,
                code: "OTE-ALM",
                jurisdiction: "Otero County - Alamogordo"
            },
            espanola: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.6875, 
                total: 8.0625,
                code: "RIO-ESP",
                jurisdiction: "Rio Arriba County - Española"
            },
            gallup: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.750, 
                total: 8.125,
                code: "MCK-GAL",
                jurisdiction: "McKinley County - Gallup"
            },
            silver_city: { 
                state: 5.125, 
                county: 1.250, 
                municipal: 1.750, 
                total: 8.125,
                code: "GRA-SC",
                jurisdiction: "Grant County - Silver City"
            },
            rural: { 
                state: 5.125, 
                county: 0.125, 
                municipal: 0.000, 
                total: 5.250,
                code: "RURAL",
                jurisdiction: "Rural Unincorporated Area"
            }
        };
        
        // Fee structure by vehicle type
        const feeStructure = {
            passenger: { 
                registration: 47, 
                title: 15, 
                plates: 10,
                weight_class: "A (< 6,000 lbs)"
            },
            truck_light: { 
                registration: 67, 
                title: 15, 
                plates: 15,
                weight_class: "B (6,001-10,000 lbs)"
            },
            truck_medium: { 
                registration: 127, 
                title: 15, 
                plates: 25,
                weight_class: "C (10,001-18,000 lbs)"
            },
            motorcycle: { 
                registration: 32, 
                title: 15, 
                plates: 8,
                weight_class: "M"
            },
            rv: { 
                registration: 127, 
                title: 15, 
                plates: 25,
                weight_class: "RV"
            },
            commercial: { 
                registration: 187, 
                title: 15, 
                plates: 35,
                weight_class: "Commercial"
            },
            ev: { 
                registration: 62,  // Alternative fuel fee
                title: 15, 
                plates: 10,
                weight_class: "EV",
                credit: 2500  // NM EV tax credit
            },
            hybrid: { 
                registration: 47, 
                title: 15, 
                plates: 10,
                weight_class: "Hybrid"
            }
        };
        
        // Documentation fees
        const docFees = {
            dealer: 299,
            private: 25
        };
        
        // Utility functions
        function formatCurrency(amount) {
            return new Intl.NumberFormat('en-US', {
                style: 'currency',
                currency: 'USD',
                minimumFractionDigits: 2,
                maximumFractionDigits: 2
            }).format(amount);
        }
        
        function calculateRegistrationFee(vehiclePrice, vehicleType) {
            // NM uses weight-based fees, but we estimate based on price and type
            const baseFee = feeStructure[vehicleType]?.registration || 47;
            
            // Additional fee based on vehicle price (simplified)
            let priceBasedFee = 0;
            if (vehiclePrice > 50000) priceBasedFee = 50;
            else if (vehiclePrice > 30000) priceBasedFee = 30;
            else if (vehiclePrice > 20000) priceBasedFee = 15;
            
            return baseFee + priceBasedFee;
        }
        
        // Main calculation function
        function calculateVehicleTax() {
            // Gather inputs
            const vehiclePrice = parseFloat(document.getElementById('vehiclePrice').value) || 0;
            const tradeInValue = parseFloat(document.getElementById('tradeInValue').value) || 0;
            const location = document.getElementById('location').value;
            const vehicleType = document.getElementById('vehicleType').value;
            const purchaseType = document.querySelector('input[name="purchaseType"]:checked').value;
            
            // Validate inputs
            if (vehiclePrice < 100) {
                alert('Please enter a valid vehicle price (minimum $100).');
                document.getElementById('vehiclePrice').focus();
                return;
            }
            
            if (!location) {
                alert('Please select your registration location.');
                document.getElementById('location').focus();
                return;
            }
            
            if (!vehicleType) {
                alert('Please select your vehicle type.');
                document.getElementById('vehicleType').focus();
                return;
            }
            
            // Get tax rates
            const rates = taxRatesDB[location];
            if (!rates) {
                alert('Selected location not found in database.');
                return;
            }
            
            // Calculate taxable base (NM allows full trade-in deduction)
            const taxableBase = Math.max(0, vehiclePrice - tradeInValue);
            
            // Calculate taxes
            const stateTax = taxableBase * (rates.state / 100);
            const localTax = taxableBase * ((rates.county + rates.municipal) / 100);
            const totalTax = stateTax + localTax;
            
            // Calculate fees
            const fees = feeStructure[vehicleType] || feeStructure.passenger;
            const registrationFee = calculateRegistrationFee(vehiclePrice, vehicleType);
            const titleFee = fees.title;
            const plateFee = fees.plates;
            const totalFees = registrationFee + titleFee + plateFee;
            
            // Documentation fee
            const documentationFee = docFees[purchaseType] || 0;
            
            // Apply EV credit if applicable
            let evCredit = 0;
            if (vehicleType === 'ev') {
                evCredit = fees.credit || 0;
            }
            
            // Calculate total
            const totalCost = vehiclePrice + totalTax + totalFees + documentationFee - evCredit;
            
            // Display results
            document.getElementById('resultPrice').textContent = formatCurrency(vehiclePrice);
            document.getElementById('resultTradeIn').textContent = formatCurrency(tradeInValue);
            document.getElementById('resultTaxable').textContent = formatCurrency(taxableBase);
            document.getElementById('resultStateTax').textContent = formatCurrency(stateTax);
            document.getElementById('resultLocalTax').textContent = formatCurrency(localTax);
            document.getElementById('resultFees').textContent = formatCurrency(totalFees);
            document.getElementById('resultDocFee').textContent = formatCurrency(documentationFee);
            
            // Show EV credit if applicable
            if (evCredit > 0) {
                const evRow = document.createElement('div');
                evRow.className = 'result-row';
                evRow.innerHTML = `
                    <span class="result-label">EV Tax Credit:</span>
                    <span class="result-value" style="color: var(--success);">-${formatCurrency(evCredit)}</span>
                `;
                document.querySelector('.results-card .result-row.total').before(evRow);
            }
            
            document.getElementById('resultTotal').textContent = formatCurrency(totalCost);
            
            // Update results header with location
            document.querySelector('.results-header div:last-child').textContent = `📍 ${rates.jurisdiction.split(' - ')[1]}`;
            
            // Show results card
            const resultsCard = document.getElementById('resultsCard');
            resultsCard.style.display = 'block';
            
            // Scroll to results
            resultsCard.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
            
            // Update page title
            document.title = `${formatCurrency(totalCost)} Total | NM Vehicle Tax Calculator - 24car-repair.com`;
        }
        
        // Reset function
        function resetCalculator() {
            document.getElementById('taxCalculatorForm').reset();
            document.getElementById('resultsCard').style.display = 'none';
            document.title = 'Complete New Mexico Car Sales Tax Calculator 2026 | Guide to GRT, Fees & Registration Costs | 24car-repair.com';
            
            // Remove any dynamically added rows
            const evRows = document.querySelectorAll('.result-row[style*="color: var(--success)"]');
            evRows.forEach(row => row.remove());
        }
        
        // FAQ toggle functionality
        function setupFAQ() {
            const faqQuestions = document.querySelectorAll('.faq-question');
            faqQuestions.forEach(question => {
                question.addEventListener('click', function() {
                    const answer = this.nextElementSibling;
                    const isActive = answer.classList.contains('active');
                    
                    // Close all answers
                    document.querySelectorAll('.faq-answer.active').forEach(ans => {
                        ans.classList.remove('active');
                    });
                    
                    // Open clicked answer if it was closed
                    if (!isActive) {
                        answer.classList.add('active');
                    }
                });
            });
        }
        
        // Event Listeners
        document.getElementById('calculateBtn').addEventListener('click', calculateVehicleTax);
        document.getElementById('resetBtn').addEventListener('click', resetCalculator);
        
        // Enter key support
        document.addEventListener('keydown', function(event) {
            if (event.key === 'Enter' && !event.target.matches('textarea, select')) {
                event.preventDefault();
                if (document.getElementById('resultsCard').style.display === 'block') {
                    resetCalculator();
                } else {
                    calculateVehicleTax();
                }
            }
        });
        
        // Initialize with example values
        window.addEventListener('DOMContentLoaded', function() {
            // Add CSS for animations
            const style = document.createElement('style');
            style.textContent = `
                @keyframes fadeIn {
                    from { opacity: 0; }
                    to { opacity: 1; }
                }
            `;
            document.head.appendChild(style);
            
            // Set example values
            document.getElementById('vehiclePrice').value = 28500;
            document.getElementById('tradeInValue').value = 7500;
            document.getElementById('vehicleType').value = 'passenger';
            document.getElementById('location').value = 'albuquerque';
            
            // Setup FAQ
            setupFAQ();
            
            // Auto-calculate on example load
            setTimeout(calculateVehicleTax, 500);
        });
    </script>
]]></content:encoded>
					
					<wfw:commentRss>https://24car-repair.com/new-mexico-car-sales-tax-calculator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>New Mexico DMV Practice Test</title>
		<link>https://24car-repair.com/new-mexico-dmv-practice-test/</link>
					<comments>https://24car-repair.com/new-mexico-dmv-practice-test/#respond</comments>
		
		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Mon, 29 Dec 2025 05:53:13 +0000</pubDate>
				<category><![CDATA[DMV Practice Test]]></category>
		<category><![CDATA[New Mexico DMV Practice Test]]></category>
		<category><![CDATA[New Mexico]]></category>
		<guid isPermaLink="false">https://24car-repair.com/?p=5042</guid>

					<description><![CDATA[New Mexico DMV Practice Test Prepare for your New Mexico Driver&#8217;s License Exam Passing Score: 35 correct (70%) Time Limit: 60 seconds per question Select your test category below to begin your practice test. Enter Your Name: Car Driver&#8217;s Test Commercial Driver&#8217;s License (CDL) Motorcycle Test Start Practice Test Time Remaining for this Question: 60 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<style>
        :root {
            --primary-color: #BF0A30;
            --secondary-color: #FFD700;
            --accent-color: #002868;
            --correct-color: #4CAF50;
            --incorrect-color: #f44336;
            --text-color: #333;
            --light-text: #666;
            --card-bg: white;
            --shadow: 0 4px 8px rgba(0,0,0,0.1);
            --new-mexico-red: #BF0A30;
            --new-mexico-yellow: #FFD700;
            --new-mexico-blue: #002868;
        }
        
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f9f9f9;
            color: var(--text-color);
            line-height: 1.6;
                margin: 0 auto;
            background-image: linear-gradient(to bottom, #fef9f7, #ffffff);
        }
 .controls-panel-2 {
width: 1200px;
            padding: 20px;
}
   @media (max-width: 480px) {        
.controls-panel-2 {
width: 390px;
}
}
button {
    color: #000000;
}
button:hover {
    color: #000000;

} 
        
        header {
            text-align: center;
            padding: 20px 0 30px;
            border-bottom: 3px solid var(--primary-color);
            margin-bottom: 30px;
            position: relative;
            background: linear-gradient(90deg, var(--new-mexico-red) 0%, #D40C35 100%);
            border-radius: 10px;
            color: white;
        }
        
        h1 {
            color: var(--new-mexico-yellow);
            margin-bottom: 10px;
            font-size: 2.5rem;
            text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
        }
        
        .subtitle {
            color: #ffffff;
            font-size: 1.2rem;
            margin-bottom: 20px;
            opacity: 0.9;
        }
        
        .state-flag {
            height: 60px;
            margin-bottom: 15px;
            filter: drop-shadow(0 0 5px rgba(255,215,0,0.5));
        }
        
        .controls-panel {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            background: var(--card-bg);
            padding: 20px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
            border: 2px solid #ffe8e8;
            background: linear-gradient(135deg, #ffffff 0%, #fff9f8 100%);
        }
        
        .name-input-container {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            width: 100%;
            justify-content: center;
        }
        
        .name-input {
            padding: 12px 15px;
            border: 2px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
            width: 300px;
            max-width: 100%;
            transition: all 0.3s ease;
            border-color: var(--new-mexico-red);
        }
        
        .name-input:focus {
            border-color: var(--new-mexico-red);
            outline: none;
            box-shadow: 0 0 0 3px rgba(191, 10, 48, 0.1);
        }
        
        .name-label {
            font-weight: 600;
            color: var(--new-mexico-red);
        }
        
        .category-selector {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 15px;
            justify-content: center;
        }
        
        .category-btn {
            padding: 12px 24px;
            background: var(--secondary-color);
            border: 2px solid #ddd;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .category-btn:hover {
            background: #e9e9e9;
            transform: translateY(-2px);
        }
        
        .category-btn.active {
            background: var(--new-mexico-red);
            color: white;
            border-color: var(--new-mexico-red);
            box-shadow: 0 4px 12px rgba(191, 10, 48, 0.2);
        }
        
        .test-info {
            background: #fff0f0;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid var(--new-mexico-red);
            margin-bottom: 20px;
            text-align: center;
            border: 1px solid #ffd0d0;
        }
        
        .test-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 10px;
            font-weight: 600;
            flex-wrap: wrap;
        }
        
        .timer-container {
            background: var(--card-bg);
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 25px;
            box-shadow: var(--shadow);
            border: 2px solid #ffe8e8;
        }
        
        .timer {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--new-mexico-red);
            margin: 10px 0;
        }
        
        .timer.warning {
            color: var(--accent-color);
        }
        
        .timer.danger {
            color: var(--incorrect-color);
            animation: pulse 1s infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }
        
        .question-card {
            background: var(--card-bg);
            padding: 30px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
            display: none;
            border: 2px solid #ffe8e8;
        }
        
        .question-card.active {
            display: block;
        }
        
        .question-number {
            color: var(--new-mexico-red);
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
        }
        
        .question-text {
            font-size: 1.3rem;
            margin-bottom: 25px;
            line-height: 1.5;
        }
        
        .options-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
            margin-bottom: 25px;
        }
        
        .option {
            padding: 16px 20px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
        }
        
        .option:hover {
            background: #f5f5f5;
            border-color: #bbb;
            transform: translateX(5px);
        }
        
        .option.selected {
            border-color: var(--new-mexico-red);
            background-color: rgba(191, 10, 48, 0.05);
        }
        
        .option.correct {
            border-color: var(--correct-color);
            background-color: rgba(76, 175, 80, 0.1);
        }
        
        .option.incorrect {
            border-color: var(--incorrect-color);
            background-color: rgba(244, 67, 54, 0.1);
        }
        
        .option-label {
            display: inline-block;
            width: 36px;
            height: 36px;
            line-height: 36px;
            text-align: center;
            background: #eee;
            border-radius: 50%;
            margin-right: 15px;
            font-weight: 600;
        }
        
        .option.selected .option-label {
            background: var(--new-mexico-red);
            color: white;
        }
        
        .navigation-buttons {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }
        
        .btn {
            padding: 14px 28px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
        }
        
        .btn-primary {
            background: var(--new-mexico-red);
            color: white;
        }
        
        .btn-primary:hover {
            background: #9f0828;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(191, 10, 48, 0.3);
        }
        
        .btn-secondary {
            background: #f0f0f0;
            color: var(--text-color);
        }
        
        .btn-secondary:hover {
            background: #e0e0e0;
            transform: translateY(-2px);
        }
        
        .btn-accent {
            background: var(--accent-color);
            color: white;
        }
        
        .btn-accent:hover {
            background: #001a44;
            transform: translateY(-2px);
        }
        
        .progress-container {
            width: 100%;
            height: 10px;
            background: #eee;
            border-radius: 5px;
            margin: 20px 0;
            overflow: hidden;
        }
        
        .progress-bar {
            height: 100%;
            background: var(--new-mexico-red);
            width: 0%;
            transition: width 0.5s ease;
        }
        
        .results-container {
            background: var(--card-bg);
            padding: 40px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            text-align: center;
            display: none;
            margin-bottom: 30px;
            border: 2px solid #ffe8e8;
        }
        
        .results-container.show {
            display: block;
        }
        
        .results-header {
            color: var(--new-mexico-red);
            margin-bottom: 15px;
            font-size: 2rem;
        }
        
        .tester-name {
            color: var(--new-mexico-red);
            font-weight: 700;
            font-size: 1.3rem;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #eee;
        }
        
        .score-circle {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            margin: 0 auto 30px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            background: conic-gradient(var(--correct-color) 0% 0%, #eee 0% 100%);
        }
        
        .score-circle-inner {
            width: 160px;
            height: 160px;
            border-radius: 50%;
            background: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .score-percent {
            font-size: 2.8rem;
            font-weight: 700;
            color: var(--text-color);
        }
        
        .score-text {
            font-size: 1.2rem;
            color: var(--light-text);
        }
        
        .pass {
            color: var(--correct-color);
        }
        
        .fail {
            color: var(--incorrect-color);
        }
        
        .result-details {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 30px 0;
            flex-wrap: wrap;
        }
        
        .result-box {
            padding: 20px;
            border-radius: 8px;
            min-width: 180px;
            box-shadow: var(--shadow);
            border: 1px solid #eee;
        }
        
        .result-box.correct {
            border-top: 4px solid var(--correct-color);
        }
        
        .result-box.incorrect {
            border-top: 4px solid var(--incorrect-color);
        }
        
        .result-box.skipped {
            border-top: 4px solid var(--accent-color);
        }
        
        .result-value {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 5px;
        }
        
        .result-label {
            color: var(--light-text);
        }
        
        .recommendation {
            background: #f9f9f9;
            padding: 25px;
            border-radius: 8px;
            margin: 30px 0;
            text-align: left;
            border: 1px solid #eee;
        }
        
        .incorrect-questions-section {
            text-align: left;
            margin-top: 40px;
            border-top: 1px solid #eee;
            padding-top: 30px;
            display: none;
        }
        
        .incorrect-questions-section.show {
            display: block;
        }
        
        .incorrect-question {
            padding: 20px;
            border: 1px solid #eee;
            border-radius: 8px;
            margin-bottom: 20px;
            background: #f9f9f9;
            border-left: 4px solid var(--incorrect-color);
        }
        
        .review-section {
            text-align: left;
            margin-top: 40px;
            border-top: 1px solid #eee;
            padding-top: 30px;
            display: none;
        }
        
        .review-section.show {
            display: block;
        }
        
        .review-question {
            padding: 20px;
            border: 1px solid #eee;
            border-radius: 8px;
            margin-bottom: 20px;
            background: #f9f9f9;
        }
        
        .review-question.correct {
            border-left: 4px solid var(--correct-color);
        }
        
        .review-question.incorrect {
            border-left: 4px solid var(--incorrect-color);
        }
        
        .review-question.skipped {
            border-left: 4px solid var(--accent-color);
        }
        
        footer {
            text-align: center;
            padding: 20px;
            color: var(--light-text);
            border-top: 1px solid #eee;
            margin-top: 40px;
            font-size: 0.9rem;
        }
        
        .toggle-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        @media (max-width: 768px) {
            body {
                padding: 15px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .controls-panel {
                flex-direction: column;
                gap: 20px;
            }
            
            .category-selector {
                width: 100%;
                justify-content: center;
            }
            
            .question-card {
                padding: 20px;
            }
            
            .question-text {
                font-size: 1.1rem;
            }
            
            .navigation-buttons {
                flex-direction: column;
                gap: 10px;
            }
            
            .btn {
                width: 100%;
            }
            
            .result-details {
                gap: 15px;
            }
            
            .result-box {
                min-width: 140px;
            }
            
            .toggle-buttons {
                flex-direction: column;
            }
        }
    </style>
</head>
<body>
<div class="controls-panel-2">
    <header>
        <svg class="state-flag" viewBox="0 0 100 60" width="100" height="60">
            <!-- New Mexico State Flag Representation -->
            <rect width="100" height="60" fill="#BF0A30"/>
            <circle cx="50" cy="30" r="18" fill="#FFD700" stroke="#BF0A30" stroke-width="2"/>
            <!-- Zia Sun Symbol -->
            <g stroke="#BF0A30" stroke-width="4">
                <!-- Top right lines -->
                <line x1="50" y1="15" x2="65" y2="15"/>
                <line x1="57.5" y1="15" x2="57.5" y2="5"/>
                <!-- Bottom right lines -->
                <line x1="65" y1="30" x2="80" y2="30"/>
                <line x1="72.5" y1="22.5" x2="72.5" y2="37.5"/>
                <!-- Bottom left lines -->
                <line x1="50" y1="45" x2="35" y2="45"/>
                <line x1="42.5" y1="45" x2="42.5" y2="55"/>
                <!-- Top left lines -->
                <line x1="35" y1="30" x2="20" y2="30"/>
                <line x1="27.5" y1="22.5" x2="27.5" y2="37.5"/>
            </g>
        </svg>
        <h1 style="color: #fff;">New Mexico DMV Practice Test</h1>
        <div class="subtitle">Prepare for your New Mexico Driver&#8217;s License Exam</div>
        <div class="test-info" style="background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3);">
            <div class="test-stats">
                <div>Passing Score: 35 correct (70%)</div>
                <div>Time Limit: 60 seconds per question</div>
            </div>
            <div>Select your test category below to begin your practice test.</div>
        </div>
    </header>
    
    <main>
        <div class="controls-panel">
            <div class="name-input-container">
                <span class="name-label">Enter Your Name:</span>
                <input type="text" class="name-input" id="testerName" placeholder="Your Name" maxlength="50">
            </div>
            <div class="category-selector">
                <button class="category-btn active" data-category="car">Car Driver&#8217;s Test</button>
                <button class="category-btn" data-category="cdl">Commercial Driver&#8217;s License (CDL)</button>
                <button class="category-btn" data-category="motorcycle">Motorcycle Test</button>
            </div>
            <button id="startTestBtn" class="btn btn-primary">Start Practice Test</button>
        </div>
        
        <div class="timer-container" style="display: none;">
            <div>Time Remaining for this Question:</div>
            <div class="timer" id="timer">60</div>
            <div>seconds</div>
        </div>
        
        <div class="progress-container" style="display: none;">
            <div class="progress-bar" id="progressBar"></div>
        </div>
        
        <div class="question-card" id="questionCard">
            <div class="question-number">
                <span>Question <span id="currentQuestion">1</span> of 50</span>
                <span>Category: <span id="currentCategory">Car</span></span>
            </div>
            <div class="question-text" id="questionText">
                Loading question&#8230;
            </div>
            <div class="options-container" id="optionsContainer">
                <!-- Options will be dynamically inserted here -->
            </div>
            <div class="navigation-buttons">
                <button id="prevBtn" class="btn btn-secondary">Previous Question</button>
                <button id="skipBtn" class="btn btn-accent">Skip Question</button>
                <button id="nextBtn" class="btn btn-primary">Next Question</button>
            </div>
        </div>
        
        <div class="results-container" id="resultsContainer">
            <h2 class="results-header">Test Results</h2>
            <div class="tester-name" id="testerNameDisplay">Tester: Not Provided</div>
            
            <div class="score-circle" id="scoreCircle">
                <div class="score-circle-inner">
                    <div class="score-percent" id="scorePercentElement">0%</div>
                    <div class="score-text" id="scoreText">Score</div>
                </div>
            </div>
            
            <div id="resultMessage">
                <h3 style="margin-bottom: 10px;">Calculating your results&#8230;</h3>
                <p>You need 35 correct answers (70%) to pass the New Mexico DMV test.</p>
            </div>
            
            <div class="result-details">
                <div class="result-box correct">
                    <div class="result-value" id="correctCount">0</div>
                    <div class="result-label">Correct</div>
                </div>
                <div class="result-box incorrect">
                    <div class="result-value" id="incorrectCount">0</div>
                    <div class="result-label">Incorrect</div>
                </div>
                <div class="result-box skipped">
                    <div class="result-value" id="skippedCount">0</div>
                    <div class="result-label">Skipped</div>
                </div>
            </div>
            
            <div class="recommendation" id="recommendation">
                <!-- Recommendations will be added here -->
            </div>
            
            <div class="toggle-buttons">
                <button id="showIncorrectBtn" class="btn btn-secondary">Show Incorrect Questions</button>
                <button id="reviewTestBtn" class="btn btn-secondary">Review All Questions</button>
                <button id="restartTestBtn" class="btn btn-primary">Take Another Test</button>
            </div>
            
            <div class="incorrect-questions-section" id="incorrectQuestionsSection">
                <h3>Incorrect Questions Review</h3>
                <div id="incorrectQuestionsList">
                    <!-- Incorrect questions will be added here -->
                </div>
            </div>
            
            <div class="review-section" id="reviewSection">
                <h3>Complete Test Review</h3>
                <div id="reviewQuestions">
                    <!-- Review questions will be added here -->
                </div>
            </div>
        </div>
    </main>
</div>    
    <script>
        // DMV Test Configuration for New Mexico
        const TEST_CONFIG = {
            totalQuestions: 100,
            testQuestions: 50, // New Mexico DMV test has 50 questions
            passingScore: 35, // Need 35/50 to pass (70%)
            passingPercent: 70,
            timePerQuestion: 60, // seconds
            categories: ['car', 'cdl', 'motorcycle']
        };
        
        // Question banks for each category with 100 questions each
        const questionBanks = {
            car: generateCarQuestions(),
            cdl: generateCDLQuestions(),
            motorcycle: generateMotorcycleQuestions()
        };
        
        // Test state
        let testState = {
            testerName: '',
            currentCategory: 'car',
            currentQuestionIndex: 0,
            selectedQuestions: [],
            userAnswers: new Array(TEST_CONFIG.testQuestions).fill(null),
            timeRemaining: TEST_CONFIG.timePerQuestion,
            timerInterval: null,
            testStarted: false,
            testCompleted: false,
            incorrectQuestions: []
        };
        
        // DOM Elements
        const nameInput = document.getElementById('testerName');
        const categoryBtns = document.querySelectorAll('.category-btn');
        const startTestBtn = document.getElementById('startTestBtn');
        const timerContainer = document.querySelector('.timer-container');
        const timerElement = document.getElementById('timer');
        const progressContainer = document.querySelector('.progress-container');
        const progressBar = document.getElementById('progressBar');
        const questionCard = document.getElementById('questionCard');
        const currentQuestionElement = document.getElementById('currentQuestion');
        const currentCategoryElement = document.getElementById('currentCategory');
        const questionTextElement = document.getElementById('questionText');
        const optionsContainer = document.getElementById('optionsContainer');
        const prevBtn = document.getElementById('prevBtn');
        const skipBtn = document.getElementById('skipBtn');
        const nextBtn = document.getElementById('nextBtn');
        const resultsContainer = document.getElementById('resultsContainer');
        const testerNameDisplay = document.getElementById('testerNameDisplay');
        const scoreCircle = document.getElementById('scoreCircle');
        const scorePercentElement = document.getElementById('scorePercentElement');
        const scoreText = document.getElementById('scoreText');
        const correctCount = document.getElementById('correctCount');
        const incorrectCount = document.getElementById('incorrectCount');
        const skippedCount = document.getElementById('skippedCount');
        const resultMessage = document.getElementById('resultMessage');
        const recommendation = document.getElementById('recommendation');
        const incorrectQuestionsSection = document.getElementById('incorrectQuestionsSection');
        const incorrectQuestionsList = document.getElementById('incorrectQuestionsList');
        const reviewSection = document.getElementById('reviewSection');
        const reviewQuestions = document.getElementById('reviewQuestions');
        const showIncorrectBtn = document.getElementById('showIncorrectBtn');
        const reviewTestBtn = document.getElementById('reviewTestBtn');
        const restartTestBtn = document.getElementById('restartTestBtn');
        
        // Initialize event listeners
        function initEventListeners() {
            // Category selection
            categoryBtns.forEach(btn => {
                btn.addEventListener('click', () => {
                    categoryBtns.forEach(b => b.classList.remove('active'));
                    btn.classList.add('active');
                    testState.currentCategory = btn.dataset.category;
                    currentCategoryElement.textContent = btn.textContent.replace(' Test', '');
                });
            });
            
            // Start test button
            startTestBtn.addEventListener('click', startTest);
            
            // Navigation buttons
            prevBtn.addEventListener('click', showPreviousQuestion);
            skipBtn.addEventListener('click', skipQuestion);
            nextBtn.addEventListener('click', showNextQuestion);
            
            // Results buttons
            showIncorrectBtn.addEventListener('click', toggleIncorrectQuestions);
            reviewTestBtn.addEventListener('click', toggleReviewSection);
            restartTestBtn.addEventListener('click', restartTest);
        }
        
        // Generate 100 New Mexico Car questions
        function generateCarQuestions() {
            return [
                {
                    id: 1,
                    category: 'car',
                    question: 'What is the maximum speed limit on New Mexico interstate highways?',
                    options: ['65 mph', '70 mph', '75 mph', '80 mph'],
                    correctAnswer: 2,
                    topic: 'Speed Limits',
                    explanation: 'The maximum speed limit on New Mexico interstates is 75 mph.'
                },
                {
                    id: 2,
                    category: 'car',
                    question: 'When must you use your headlights in New Mexico?',
                    options: ['From sunset to sunrise', 'When visibility is less than 500 feet', 'When windshield wipers are in use', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Lighting',
                    explanation: 'New Mexico law requires headlights from sunset to sunrise, when visibility is less than 500 feet, and when windshield wipers are in use.'
                },
                {
                    id: 3,
                    category: 'car',
                    question: 'What should you do when approaching a stopped school bus with flashing red lights in New Mexico?',
                    options: ['Slow down to 20 mph', 'Stop until the bus moves', 'Stop at least 30 feet away', 'Stop and remain stopped until the red lights stop flashing'],
                    correctAnswer: 3,
                    topic: 'School Buses',
                    explanation: 'You must stop and remain stopped until the red lights stop flashing when approaching a school bus with flashing red lights in New Mexico.'
                },
                {
                    id: 4,
                    category: 'car',
                    question: 'What is the legal blood alcohol concentration (BAC) limit for drivers over 21 in New Mexico?',
                    options: ['0.06%', '0.08%', '0.10%', '0.05%'],
                    correctAnswer: 1,
                    topic: 'DUI Laws',
                    explanation: 'The legal BAC limit for drivers over 21 in New Mexico is 0.08%.'
                },
                {
                    id: 5,
                    category: 'car',
                    question: 'How far ahead should you signal before turning in New Mexico?',
                    options: ['50 feet', '75 feet', 'At least 100 feet', '150 feet'],
                    correctAnswer: 2,
                    topic: 'Turning',
                    explanation: 'New Mexico law requires signaling at least 100 feet before turning.'
                },
                {
                    id: 6,
                    category: 'car',
                    question: 'When parking uphill with a curb, how should you turn your wheels in New Mexico?',
                    options: ['Away from the curb', 'Toward the curb', 'Straight', 'It doesn\'t matter'],
                    correctAnswer: 0,
                    topic: 'Parking',
                    explanation: 'When parking uphill with a curb, turn your wheels away from the curb in New Mexico.'
                },
                {
                    id: 7,
                    category: 'car',
                    question: 'What does a solid yellow line on your side of the road mean in New Mexico?',
                    options: ['Passing is allowed with caution', 'No passing allowed', 'You may pass if safe', 'HOV lane'],
                    correctAnswer: 1,
                    topic: 'Road Markings',
                    explanation: 'A solid yellow line on your side means no passing is allowed in New Mexico.'
                },
                {
                    id: 8,
                    category: 'car',
                    question: 'What should you do when you see a flashing yellow traffic light in New Mexico?',
                    options: ['Stop completely', 'Slow down and proceed with caution', 'Speed up to clear intersection', 'Treat as stop sign'],
                    correctAnswer: 1,
                    topic: 'Traffic Signals',
                    explanation: 'A flashing yellow light means proceed with caution in New Mexico.'
                },
                {
                    id: 9,
                    category: 'car',
                    question: 'How long do you have to report an accident to the New Mexico MVD if there is injury, death, or over $500 damage?',
                    options: ['Immediately', '24 hours', '5 days', '10 days'],
                    correctAnswer: 2,
                    topic: 'Accidents',
                    explanation: 'Accidents involving injury, death, or over $500 damage must be reported within 5 days in New Mexico.'
                },
                {
                    id: 10,
                    category: 'car',
                    question: 'What is the minimum following distance behind another vehicle in New Mexico?',
                    options: ['2 seconds', '3 seconds', '4 seconds', '5 seconds'],
                    correctAnswer: 1,
                    topic: 'Safe Driving',
                    explanation: 'Maintain at least a 3-second following distance for safe driving in New Mexico.'
                },
                {
                    id: 11,
                    category: 'car',
                    question: 'When can you legally make a U-turn in New Mexico?',
                    options: ['Only where permitted by signs', 'Only at intersections', 'Never on state highways', 'Anywhere unless prohibited'],
                    correctAnswer: 3,
                    topic: 'Turning',
                    explanation: 'U-turns are legal in New Mexico unless specifically prohibited by signs.'
                },
                {
                    id: 12,
                    category: 'car',
                    question: 'What does a red circle with a white horizontal bar mean in New Mexico?',
                    options: ['Do not enter', 'No parking', 'One way street', 'Stop ahead'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'A red circle with a white horizontal bar means "Do Not Enter" in New Mexico.'
                },
                {
                    id: 13,
                    category: 'car',
                    question: 'What should you do if your vehicle starts to skid on icy roads in New Mexico?',
                    options: ['Brake hard', 'Steer in the direction of the skid', 'Accelerate quickly', 'Turn wheel opposite skid'],
                    correctAnswer: 1,
                    topic: 'Winter Driving',
                    explanation: 'Steer in the direction you want the front of the vehicle to go during a skid on icy roads.'
                },
                {
                    id: 14,
                    category: 'car',
                    question: 'When must you yield to pedestrians in New Mexico?',
                    options: ['Only at crosswalks', 'Whenever they are in the roadway', 'Only when they have a walk signal', 'Only in school zones'],
                    correctAnswer: 1,
                    topic: 'Right of Way',
                    explanation: 'Drivers must yield to pedestrians at all times when they are in the roadway in New Mexico.'
                },
                {
                    id: 15,
                    category: 'car',
                    question: 'What is the penalty for a first offense of not wearing a seatbelt in New Mexico?',
                    options: ['$25 fine', '$50 fine', '$75 fine', '$100 fine'],
                    correctAnswer: 1,
                    topic: 'Seatbelt Laws',
                    explanation: 'The fine for not wearing a seatbelt in New Mexico is $50 for a first offense.'
                },
                {
                    id: 16,
                    category: 'car',
                    question: 'How close may you park to a fire hydrant in New Mexico?',
                    options: ['5 feet', '10 feet', '15 feet', '20 feet'],
                    correctAnswer: 2,
                    topic: 'Parking',
                    explanation: 'You may not park within 15 feet of a fire hydrant in New Mexico.'
                },
                {
                    id: 17,
                    category: 'car',
                    question: 'What should you do when you see a stopped emergency vehicle with flashing lights in New Mexico?',
                    options: ['Slow down and proceed', 'Move over or slow down to 20 mph', 'Stop and wait for them to move', 'Speed up to pass quickly'],
                    correctAnswer: 1,
                    topic: 'Emergency Vehicles',
                    explanation: 'Move over to another lane or slow down to 20 mph when passing stopped emergency vehicles with flashing lights in New Mexico.'
                },
                {
                    id: 18,
                    category: 'car',
                    question: 'When driving in heavy snow in New Mexico, what lights should you use?',
                    options: ['High beams', 'Low beams', 'Parking lights only', 'No lights'],
                    correctAnswer: 1,
                    topic: 'Adverse Conditions',
                    explanation: 'Use low beam headlights in heavy snow; high beams will reflect back and reduce visibility.'
                },
                {
                    id: 19,
                    category: 'car',
                    question: 'What does a green arrow traffic signal mean in New Mexico?',
                    options: ['Proceed with caution', 'Protected turn in direction of arrow', 'Yield before turning', 'Stop if possible'],
                    correctAnswer: 1,
                    topic: 'Traffic Signals',
                    explanation: 'A green arrow means you have a protected turn in the direction of the arrow in New Mexico.'
                },
                {
                    id: 20,
                    category: 'car',
                    question: 'How old must you be to get an unrestricted driver\'s license in New Mexico?',
                    options: ['16', '17', '18', '21'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: 'You must be 18 years old to get an unrestricted driver\'s license in New Mexico.'
                },
                {
                    id: 21,
                    category: 'car',
                    question: 'What should you do when you hear a siren or see an emergency vehicle approaching in New Mexico?',
                    options: ['Speed up to get out of the way', 'Pull over to the right and stop', 'Continue driving normally', 'Flash your headlights'],
                    correctAnswer: 1,
                    topic: 'Emergency Vehicles',
                    explanation: 'You must pull over to the right and stop for emergency vehicles in New Mexico.'
                },
                {
                    id: 22,
                    category: 'car',
                    question: 'What is the speed limit in school zones during school hours in New Mexico?',
                    options: ['15 mph', '20 mph', '25 mph', '30 mph'],
                    correctAnswer: 0,
                    topic: 'Speed Limits',
                    explanation: 'The speed limit in school zones is 15 mph when children are present in New Mexico.'
                },
                {
                    id: 23,
                    category: 'car',
                    question: 'When is it legal to pass on the right in New Mexico?',
                    options: ['Never', 'When the vehicle ahead is turning left', 'On one-way streets', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Passing',
                    explanation: 'Passing on the right is allowed when the vehicle ahead is turning left or on one-way streets in New Mexico.'
                },
                {
                    id: 24,
                    category: 'car',
                    question: 'What does a yellow, diamond-shaped sign indicate in New Mexico?',
                    options: ['Stop ahead', 'Warning of hazard', 'School zone', 'Yield right of way'],
                    correctAnswer: 1,
                    topic: 'Road Signs',
                    explanation: 'Yellow, diamond-shaped signs warn of potential hazards ahead in New Mexico.'
                },
                {
                    id: 25,
                    category: 'car',
                    question: 'How long is a learner\'s permit valid in New Mexico?',
                    options: ['6 months', '1 year', '2 years', '4 years'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'A New Mexico learner\'s permit is valid for 1 year.'
                },
                {
                    id: 26,
                    category: 'car',
                    question: 'What should you do when your car starts to hydroplane on wet roads in New Mexico?',
                    options: ['Brake hard', 'Accelerate to gain control', 'Steer straight and ease off gas', 'Turn sharply'],
                    correctAnswer: 2,
                    topic: 'Adverse Conditions',
                    explanation: 'When hydroplaning, steer straight and ease off the accelerator.'
                },
                {
                    id: 27,
                    category: 'car',
                    question: 'What is the maximum penalty for a first DUI offense in New Mexico?',
                    options: ['$500 fine', '$1,000 fine', 'Up to $2,500 fine', 'Up to $5,000 fine'],
                    correctAnswer: 0,
                    topic: 'DUI Laws',
                    explanation: 'Maximum fine for first DUI offense in New Mexico is $500.'
                },
                {
                    id: 28,
                    category: 'car',
                    question: 'When must you stop for a pedestrian at a crosswalk in New Mexico?',
                    options: ['Only when they are in your lane', 'When they are anywhere in the crosswalk', 'Only at marked crosswalks', 'Only during daylight'],
                    correctAnswer: 1,
                    topic: 'Pedestrian Safety',
                    explanation: 'You must stop for pedestrians anywhere in the crosswalk in New Mexico.'
                },
                {
                    id: 29,
                    category: 'car',
                    question: 'What does a red curb indicate in New Mexico?',
                    options: ['Loading zone', 'No stopping, standing, or parking', 'Parking for disabled only', 'Short-term parking'],
                    correctAnswer: 1,
                    topic: 'Parking',
                    explanation: 'Red curbs indicate no stopping, standing, or parking in New Mexico.'
                },
                {
                    id: 30,
                    category: 'car',
                    question: 'How far must you stay behind an emergency vehicle when it\'s responding to a call in New Mexico?',
                    options: ['100 feet', '200 feet', '300 feet', '500 feet'],
                    correctAnswer: 3,
                    topic: 'Emergency Vehicles',
                    explanation: 'Stay at least 500 feet behind emergency vehicles in New Mexico.'
                },
                {
                    id: 31,
                    category: 'car',
                    question: 'What does a broken yellow line mean in New Mexico?',
                    options: ['No passing', 'Passing allowed when safe', 'Two-way traffic', 'One-way traffic'],
                    correctAnswer: 1,
                    topic: 'Road Markings',
                    explanation: 'Broken yellow lines allow passing when safe in New Mexico.'
                },
                {
                    id: 32,
                    category: 'car',
                    question: 'When should you dim your high beam headlights in New Mexico?',
                    options: ['Within 300 feet of an oncoming vehicle', 'Within 500 feet of an oncoming vehicle', 'Only in cities', 'Never'],
                    correctAnswer: 1,
                    topic: 'Lighting',
                    explanation: 'Dim high beams within 500 feet of an oncoming vehicle in New Mexico.'
                },
                {
                    id: 33,
                    category: 'car',
                    question: 'What is the minimum age for a learner\'s permit in New Mexico?',
                    options: ['14 years', '15', '15 years 6 months', '16'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Minimum age for learner\'s permit in New Mexico is 15.'
                },
                {
                    id: 34,
                    category: 'car',
                    question: 'When approaching a railroad crossing with flashing lights in New Mexico, you must stop:',
                    options: ['At the crossing', 'Between 15 and 50 feet from tracks', '100 feet from tracks', 'Only if a train is visible'],
                    correctAnswer: 1,
                    topic: 'Railroad Crossings',
                    explanation: 'Stop between 15 and 50 feet from railroad tracks when lights are flashing in New Mexico.'
                },
                {
                    id: 35,
                    category: 'car',
                    question: 'What does a red flashing light mean in New Mexico?',
                    options: ['Proceed with caution', 'Stop and proceed when safe', 'Stop completely', 'Yield'],
                    correctAnswer: 2,
                    topic: 'Traffic Signals',
                    explanation: 'Red flashing light means stop completely in New Mexico.'
                },
                {
                    id: 36,
                    category: 'car',
                    question: 'How long do you have to renew your license before it expires in New Mexico?',
                    options: ['30 days', '60 days', '6 months', '1 year'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'You can renew your New Mexico license up to 30 days before expiration.'
                },
                {
                    id: 37,
                    category: 'car',
                    question: 'What should you do if you miss your exit on a highway in New Mexico?',
                    options: ['Back up', 'Make a U-turn', 'Continue to next exit', 'Stop and reverse'],
                    correctAnswer: 2,
                    topic: 'Highway Driving',
                    explanation: 'Continue to the next exit if you miss your exit in New Mexico.'
                },
                {
                    id: 38,
                    category: 'car',
                    question: 'What does a green traffic light mean in New Mexico?',
                    options: ['Go if clear', 'Speed up', 'Yield to pedestrians', 'Both A and C'],
                    correctAnswer: 3,
                    topic: 'Traffic Signals',
                    explanation: 'Green light means go if clear, but yield to pedestrians in New Mexico.'
                },
                {
                    id: 39,
                    category: 'car',
                    question: 'When parking downhill with a curb in New Mexico, turn wheels:',
                    options: ['Away from curb', 'Toward curb', 'Straight', 'It doesn\'t matter'],
                    correctAnswer: 1,
                    topic: 'Parking',
                    explanation: 'Turn wheels toward curb when parking downhill in New Mexico.'
                },
                {
                    id: 40,
                    category: 'car',
                    question: 'What should you do when being passed by another vehicle in New Mexico?',
                    options: ['Speed up', 'Move to left lane', 'Slow down slightly', 'Maintain speed'],
                    correctAnswer: 2,
                    topic: 'Passing',
                    explanation: 'Slow down slightly when being passed in New Mexico.'
                },
                {
                    id: 41,
                    category: 'car',
                    question: 'What is the penalty for passing a stopped school bus in New Mexico?',
                    options: ['$150 fine', '$250 fine', '$500 fine', '$1,000 minimum fine'],
                    correctAnswer: 2,
                    topic: 'School Buses',
                    explanation: 'Penalty for passing stopped school bus is up to $500 fine in New Mexico.'
                },
                {
                    id: 42,
                    category: 'car',
                    question: 'When turning left at an intersection in New Mexico, yield to:',
                    options: ['Pedestrians', 'Oncoming traffic', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Turning',
                    explanation: 'Yield to pedestrians and oncoming traffic when turning left in New Mexico.'
                },
                {
                    id: 43,
                    category: 'car',
                    question: 'What does a blue sign indicate in New Mexico?',
                    options: ['Motorist services', 'Warning', 'Regulation', 'Construction'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Blue signs indicate motorist services in New Mexico.'
                },
                {
                    id: 44,
                    category: 'car',
                    question: 'How many hours of driving practice are required for a teen license in New Mexico?',
                    options: ['20 hours', '40 hours', '50 hours', '60 hours'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: '50 hours of practice required for teen license in New Mexico, including 10 at night.'
                },
                {
                    id: 45,
                    category: 'car',
                    question: 'What should you do if you get tired while driving in New Mexico?',
                    options: ['Open windows', 'Turn up radio', 'Take a break', 'Drink coffee'],
                    correctAnswer: 2,
                    topic: 'Safe Driving',
                    explanation: 'Take a break if tired while driving.'
                },
                {
                    id: 46,
                    category: 'car',
                    question: 'What does a pentagon-shaped sign indicate in New Mexico?',
                    options: ['School zone', 'Stop ahead', 'Yield', 'No passing'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Pentagon-shaped signs indicate school zones in New Mexico.'
                },
                {
                    id: 47,
                    category: 'car',
                    question: 'When should you use your hazard lights in New Mexico?',
                    options: ['When parking illegally', 'When driving slow', 'When stopped on road', 'When warning of hazard'],
                    correctAnswer: 3,
                    topic: 'Emergency Equipment',
                    explanation: 'Use hazard lights to warn other drivers of a hazard ahead in New Mexico.'
                },
                {
                    id: 48,
                    category: 'car',
                    question: 'What is the penalty for littering from a vehicle in New Mexico?',
                    options: ['$100 fine', '$250 fine', '$500 fine', '$1,000 fine'],
                    correctAnswer: 1,
                    topic: 'Traffic Laws',
                    explanation: 'Littering fine starts at $250 in New Mexico.'
                },
                {
                    id: 49,
                    category: 'car',
                    question: 'When can you drive in a bike lane in New Mexico?',
                    options: ['To pass another vehicle', 'To make a right turn', 'When traffic is heavy', 'Never'],
                    correctAnswer: 1,
                    topic: 'Lane Usage',
                    explanation: 'You may enter bike lane to make a right turn in New Mexico.'
                },
                {
                    id: 50,
                    category: 'car',
                    question: 'What does a brown sign indicate in New Mexico?',
                    options: ['Park and recreation areas', 'Hospital', 'Construction', 'Warning'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Brown signs indicate park and recreation areas in New Mexico.'
                },
                {
                    id: 51,
                    category: 'car',
                    question: 'What is the blood alcohol limit for commercial drivers in New Mexico?',
                    options: ['0.02%', '0.04%', '0.08%', '0.10%'],
                    correctAnswer: 1,
                    topic: 'DUI Laws',
                    explanation: 'Commercial drivers have a 0.04% BAC limit in New Mexico.'
                },
                {
                    id: 52,
                    category: 'car',
                    question: 'When must you turn on headlights in New Mexico?',
                    options: ['30 minutes after sunset', 'When raining', 'Both A and B', 'Only at night'],
                    correctAnswer: 2,
                    topic: 'Lighting',
                    explanation: 'Headlights required 30 minutes after sunset and during rain in New Mexico.'
                },
                {
                    id: 53,
                    category: 'car',
                    question: 'What is the fine for speeding in a construction zone in New Mexico?',
                    options: ['Double the normal fine', 'Triple the fine', 'Same as normal', '$500 minimum'],
                    correctAnswer: 0,
                    topic: 'Speed Limits',
                    explanation: 'Fines are doubled in construction zones in New Mexico.'
                },
                {
                    id: 54,
                    category: 'car',
                    question: 'When parking parallel to a curb in New Mexico, how close must you be?',
                    options: ['6 inches', '12 inches', '18 inches', '24 inches'],
                    correctAnswer: 1,
                    topic: 'Parking',
                    explanation: 'Park within 12 inches of curb in New Mexico.'
                },
                {
                    id: 55,
                    category: 'car',
                    question: 'What does a triangular sign mean in New Mexico?',
                    options: ['Stop', 'Yield', 'No entry', 'Warning'],
                    correctAnswer: 1,
                    topic: 'Road Signs',
                    explanation: 'Triangular signs mean yield in New Mexico.'
                },
                {
                    id: 56,
                    category: 'car',
                    question: 'How long is a driver\'s license valid in New Mexico?',
                    options: ['4 years', '6 years', '8 years', '10 years'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'New Mexico driver\'s licenses are valid for 4 years.'
                },
                {
                    id: 57,
                    category: 'car',
                    question: 'What should you do at a yellow light in New Mexico?',
                    options: ['Speed up', 'Stop if safe', 'Proceed with caution', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Traffic Signals',
                    explanation: 'Stop if safe, otherwise proceed with caution at yellow light in New Mexico.'
                },
                {
                    id: 58,
                    category: 'car',
                    question: 'When can you use the center turn lane in New Mexico?',
                    options: ['For passing', 'For left turns only', 'For through traffic', 'For parking'],
                    correctAnswer: 1,
                    topic: 'Lane Usage',
                    explanation: 'Center turn lane is for left turns only in New Mexico.'
                },
                {
                    id: 59,
                    category: 'car',
                    question: 'What is the minimum insurance coverage in New Mexico?',
                    options: ['25/50/10', '25/50/25', '100/300/100', '50/100/50'],
                    correctAnswer: 0,
                    topic: 'Insurance',
                    explanation: 'Minimum insurance in New Mexico is $25,000/$50,000/$10,000.'
                },
                {
                    id: 60,
                    category: 'car',
                    question: 'When should you use your turn signal in New Mexico?',
                    options: ['Before changing lanes', 'Before turning', '100 feet before turn', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Turning',
                    explanation: 'Use signals before changing lanes, turning, and 100 feet before turn in New Mexico.'
                },
                {
                    id: 61,
                    category: 'car',
                    question: 'What does a red sign usually indicate in New Mexico?',
                    options: ['Warning', 'Regulation', 'Guide', 'Service'],
                    correctAnswer: 1,
                    topic: 'Road Signs',
                    explanation: 'Red signs indicate regulatory information in New Mexico.'
                },
                {
                    id: 62,
                    category: 'car',
                    question: 'How many points cause license suspension in New Mexico?',
                    options: ['8 points in 12 months', '12 points in 12 months', '15 points in 12 months', '20 points in 12 months'],
                    correctAnswer: 1,
                    topic: 'Traffic Laws',
                    explanation: '12 points in 12 months causes suspension in New Mexico.'
                },
                {
                    id: 63,
                    category: 'car',
                    question: 'When must you report an accident in New Mexico?',
                    options: ['Over $500 damage', 'Injury or death', 'Both A and B', 'Hit and run only'],
                    correctAnswer: 2,
                    topic: 'Accidents',
                    explanation: 'Report accidents with over $500 damage or injury/death in New Mexico.'
                },
                {
                    id: 64,
                    category: 'car',
                    question: 'What is the speed limit on rural highways in New Mexico?',
                    options: ['55 mph', '60 mph', '65 mph', '70 mph'],
                    correctAnswer: 2,
                    topic: 'Speed Limits',
                    explanation: 'Rural highway speed limit is 65 mph in New Mexico.'
                },
                {
                    id: 65,
                    category: 'car',
                    question: 'When should you check your mirrors in New Mexico?',
                    options: ['Before changing lanes', 'Before braking', 'Every 5-8 seconds', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Safe Driving',
                    explanation: 'Check mirrors before changing lanes, braking, and every 5-8 seconds.'
                },
                {
                    id: 66,
                    category: 'car',
                    question: 'What does a white line parallel to road mean in New Mexico?',
                    options: ['Edge of roadway', 'Lane divider', 'Stop line', 'Crosswalk'],
                    correctAnswer: 0,
                    topic: 'Road Markings',
                    explanation: 'White line parallel to road indicates edge of roadway in New Mexico.'
                },
                {
                    id: 67,
                    category: 'car',
                    question: 'How close can you follow emergency vehicles in New Mexico?',
                    options: ['100 feet', '200 feet', '300 feet', '500 feet'],
                    correctAnswer: 3,
                    topic: 'Emergency Vehicles',
                    explanation: 'Stay 500 feet behind emergency vehicles in New Mexico.'
                },
                {
                    id: 68,
                    category: 'car',
                    question: 'When is it legal to drive off pavement to pass in New Mexico?',
                    options: ['Never', 'On two-lane roads', 'When safe', 'In emergencies only'],
                    correctAnswer: 0,
                    topic: 'Passing',
                    explanation: 'Never drive off pavement to pass in New Mexico.'
                },
                {
                    id: 69,
                    category: 'car',
                    question: 'What should you do if traffic signal is out in New Mexico?',
                    options: ['Treat as stop sign', 'Proceed with caution', 'Wait for police', 'All of the above'],
                    correctAnswer: 0,
                    topic: 'Traffic Signals',
                    explanation: 'Treat out traffic signal as four-way stop in New Mexico.'
                },
                {
                    id: 70,
                    category: 'car',
                    question: 'How long must you have learner\'s permit before road test in New Mexico?',
                    options: ['30 days', '60 days', '6 months', '1 year'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: 'Need learner\'s permit for 6 months before road test in New Mexico.'
                },
                {
                    id: 71,
                    category: 'car',
                    question: 'What does orange sign indicate in New Mexico?',
                    options: ['Construction', 'Warning', 'Regulation', 'Guide'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Orange signs indicate construction zones in New Mexico.'
                },
                {
                    id: 72,
                    category: 'car',
                    question: 'When must you yield to funeral procession in New Mexico?',
                    options: ['Always', 'Never', 'When lead vehicle has flag', 'During daylight only'],
                    correctAnswer: 0,
                    topic: 'Right of Way',
                    explanation: 'Always yield to funeral processions in New Mexico.'
                },
                {
                    id: 73,
                    category: 'car',
                    question: 'What is penalty for reckless driving in New Mexico?',
                    options: ['$100 fine', '$250 fine', 'Up to 6 months in jail', 'License suspension only'],
                    correctAnswer: 2,
                    topic: 'Traffic Laws',
                    explanation: 'Reckless driving can result in up to 6 months in jail in New Mexico.'
                },
                {
                    id: 74,
                    category: 'car',
                    question: 'When should you use parking lights in New Mexico?',
                    options: ['When parked', 'When driving', 'In fog', 'Never'],
                    correctAnswer: 0,
                    topic: 'Lighting',
                    explanation: 'Parking lights for parked vehicles only in New Mexico.'
                },
                {
                    id: 75,
                    category: 'car',
                    question: 'What does green sign indicate in New Mexico?',
                    options: ['Guide information', 'Warning', 'Regulation', 'Construction'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Green signs provide guide information in New Mexico.'
                },
                {
                    id: 76,
                    category: 'car',
                    question: 'When must you stop for school bus on divided highways in New Mexico?',
                    options: ['Always', 'Only if on same side', 'Never', 'Only during school hours'],
                    correctAnswer: 1,
                    topic: 'School Buses',
                    explanation: 'On divided highways, only stop if you are on the same side as the bus in New Mexico.'
                },
                {
                    id: 77,
                    category: 'car',
                    question: 'What is legal tint limit on front side windows in New Mexico?',
                    options: ['20%', '30%', '35%', '50%'],
                    correctAnswer: 0,
                    topic: 'Vehicle Equipment',
                    explanation: 'Legal tint limit is 20% VLT on front side windows in New Mexico.'
                },
                {
                    id: 78,
                    category: 'car',
                    question: 'When can you cross double yellow lines in New Mexico?',
                    options: ['To pass', 'To turn left', 'In emergencies', 'All of the above'],
                    correctAnswer: 1,
                    topic: 'Road Markings',
                    explanation: 'Cross double yellow lines to turn left only in New Mexico.'
                },
                {
                    id: 79,
                    category: 'car',
                    question: 'What does flashing red arrow mean in New Mexico?',
                    options: ['Stop then proceed', 'Yield', 'Protected turn', 'No turn allowed'],
                    correctAnswer: 0,
                    topic: 'Traffic Signals',
                    explanation: 'Flashing red arrow means stop then proceed when clear in New Mexico.'
                },
                {
                    id: 80,
                    category: 'car',
                    question: 'How long after moving must you get New Mexico license?',
                    options: ['10 days', '30 days', '60 days', '90 days'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Get New Mexico license within 30 days of moving.'
                },
                {
                    id: 81,
                    category: 'car',
                    question: 'What should you do if brake fails in New Mexico?',
                    options: ['Use parking brake', 'Downshift', 'Both A and B', 'Steer off road'],
                    correctAnswer: 2,
                    topic: 'Emergency Procedures',
                    explanation: 'Use parking brake and downshift if brakes fail.'
                },
                {
                    id: 82,
                    category: 'car',
                    question: 'When can you pass on right in New Mexico?',
                    options: ['On one-way streets', 'When left turn lane exists', 'Both A and B', 'Never'],
                    correctAnswer: 2,
                    topic: 'Passing',
                    explanation: 'Pass on right on one-way streets or when left turn lane exists in New Mexico.'
                },
                {
                    id: 83,
                    category: 'car',
                    question: 'What does octagon sign mean in New Mexico?',
                    options: ['Stop', 'Yield', 'School', 'Railroad'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Octagon signs mean stop in New Mexico.'
                },
                {
                    id: 84,
                    category: 'car',
                    question: 'How many passengers can teen driver have in New Mexico?',
                    options: ['0 for first 6 months', '1 for first 6 months', '2 for first 6 months', 'No limit'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Teen drivers limited to 1 passenger for first 6 months in New Mexico.'
                },
                {
                    id: 85,
                    category: 'car',
                    question: 'When should you increase following distance in New Mexico?',
                    options: ['In rain', 'At night', 'Behind trucks', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Safe Driving',
                    explanation: 'Increase following distance in rain, at night, and behind trucks.'
                },
                {
                    id: 86,
                    category: 'car',
                    question: 'What does broken white line mean in New Mexico?',
                    options: ['Lane divider', 'Edge of road', 'No passing', 'Merge'],
                    correctAnswer: 0,
                    topic: 'Road Markings',
                    explanation: 'Broken white lines separate lanes going same direction in New Mexico.'
                },
                {
                    id: 87,
                    category: 'car',
                    question: 'When must you use headlights in New Mexico?',
                    options: ['When wipers are on', 'At dusk', 'In tunnels', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Lighting',
                    explanation: 'Use headlights when wipers on, at dusk, and in tunnels in New Mexico.'
                },
                {
                    id: 88,
                    category: 'car',
                    question: 'What is penalty for no insurance in New Mexico?',
                    options: ['$50 fine', '$100 fine', 'License suspension', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Insurance',
                    explanation: 'No insurance penalty includes $100 fine and suspension in New Mexico.'
                },
                {
                    id: 89,
                    category: 'car',
                    question: 'When should you slow down in work zone in New Mexico?',
                    options: ['Only when workers present', 'Always', 'During weekdays', 'Never'],
                    correctAnswer: 1,
                    topic: 'Work Zones',
                    explanation: 'Always slow down in work zones in New Mexico.'
                },
                {
                    id: 90,
                    category: 'car',
                    question: 'What does rectangular red sign mean in New Mexico?',
                    options: ['Stop', 'Yield', 'Do not enter', 'Wrong way'],
                    correctAnswer: 2,
                    topic: 'Road Signs',
                    explanation: 'Rectangular red sign means do not enter in New Mexico.'
                },
                {
                    id: 91,
                    category: 'car',
                    question: 'How many feet before turn must you signal in New Mexico?',
                    options: ['50 feet', '100 feet', '200 feet', '300 feet'],
                    correctAnswer: 1,
                    topic: 'Turning',
                    explanation: 'Signal at least 100 feet before turn in New Mexico.'
                },
                {
                    id: 92,
                    category: 'car',
                    question: 'When can you park in handicapped space in New Mexico?',
                    options: ['With permit', 'After 6 PM', 'On Sundays', 'Never without permit'],
                    correctAnswer: 3,
                    topic: 'Parking',
                    explanation: 'Never park in handicapped space without permit in New Mexico.'
                },
                {
                    id: 93,
                    category: 'car',
                    question: 'What does flashing yellow arrow mean in New Mexico?',
                    options: ['Protected turn', 'Permissive turn', 'No turn', 'Yield then turn'],
                    correctAnswer: 1,
                    topic: 'Traffic Signals',
                    explanation: 'Flashing yellow arrow means permissive turn (yield first) in New Mexico.'
                },
                {
                    id: 94,
                    category: 'car',
                    question: 'How old for graduated license in New Mexico?',
                    options: ['14 years 6 months', '15', '15 years 6 months', '16'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Can get graduated license at 15 in New Mexico.'
                },
                {
                    id: 95,
                    category: 'car',
                    question: 'When should you avoid passing in New Mexico?',
                    options: ['On hills', 'At intersections', 'Near railroads', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Passing',
                    explanation: 'Avoid passing on hills, at intersections, and near railroads in New Mexico.'
                },
                {
                    id: 96,
                    category: 'car',
                    question: 'What does blue curb indicate in New Mexico?',
                    options: ['Handicapped parking', 'Loading zone', 'No parking', 'Fire zone'],
                    correctAnswer: 0,
                    topic: 'Parking',
                    explanation: 'Blue curb indicates handicapped parking in New Mexico.'
                },
                {
                    id: 97,
                    category: 'car',
                    question: 'When must headrest be adjusted in New Mexico?',
                    options: ['Middle of head', 'Top of ears', 'Base of skull', 'Doesn\'t matter'],
                    correctAnswer: 2,
                    topic: 'Safety Equipment',
                    explanation: 'Headrest should be at base of skull in New Mexico.'
                },
                {
                    id: 98,
                    category: 'car',
                    question: 'What does diamond-shaped sign mean in New Mexico?',
                    options: ['Warning', 'Regulation', 'Guide', 'Service'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Diamond-shaped signs are warning signs in New Mexico.'
                },
                {
                    id: 99,
                    category: 'car',
                    question: 'When can you use HOV lane in New Mexico (if available)?',
                    options: ['With 2+ people', 'Motorcycles', 'Buses', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Lane Usage',
                    explanation: 'HOV lanes for 2+ people, motorcycles, and buses in New Mexico.'
                },
                {
                    id: 100,
                    category: 'car',
                    question: 'What is New Mexico\'s "Implied Consent Law"?',
                    options: ['Consent to breath test when driving', 'Consent to insurance', 'Consent to vehicle inspection', 'Consent to license check'],
                    correctAnswer: 0,
                    topic: 'DUI Laws',
                    explanation: 'Implied Consent Law means you agree to chemical testing when driving in New Mexico.'
                }
            ];
        }
        
        // Generate 100 New Mexico CDL questions
        function generateCDLQuestions() {
            return [
                {
                    id: 1,
                    category: 'cdl',
                    question: 'What is the minimum tread depth for steering axle tires on a commercial vehicle in New Mexico?',
                    options: ['1/32 inch', '2/32 inch', '4/32 inch', '6/32 inch'],
                    correctAnswer: 2,
                    topic: 'Vehicle Inspection',
                    explanation: 'Steering axle tires must have at least 4/32 inch tread depth in New Mexico.'
                },
                {
                    id: 2,
                    category: 'cdl',
                    question: 'How far ahead should a commercial vehicle signal before turning in New Mexico?',
                    options: ['50 feet', '100 feet', 'At least 100 feet', '200 feet'],
                    correctAnswer: 2,
                    topic: 'Safe Operation',
                    explanation: 'Commercial vehicles should signal at least 100 feet before turning in New Mexico.'
                },
                {
                    id: 3,
                    category: 'cdl',
                    question: 'What is the maximum driving time allowed before taking a break under New Mexico regulations?',
                    options: ['6 hours', '8 hours', '10 hours', '11 hours'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Maximum driving time is 11 hours after 10 consecutive hours off duty in New Mexico.'
                },
                {
                    id: 4,
                    category: 'cdl',
                    question: 'What should you check during a pre-trip inspection of air brakes in New Mexico?',
                    options: ['Air pressure buildup time', 'Brake adjustment', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Air Brakes',
                    explanation: 'Check both air pressure buildup time and brake adjustment during pre-trip inspection in New Mexico.'
                },
                {
                    id: 5,
                    category: 'cdl',
                    question: 'When backing a commercial vehicle in New Mexico, you should:',
                    options: ['Use mirrors only', 'Get out and look when necessary', 'Rely on a helper', 'Back quickly to minimize time'],
                    correctAnswer: 1,
                    topic: 'Backing',
                    explanation: 'Always get out and look when backing a commercial vehicle if unsure in New Mexico.'
                },
                {
                    id: 6,
                    category: 'cdl',
                    question: 'What is the minimum following distance for commercial vehicles in New Mexico?',
                    options: ['3 seconds', '4 seconds', '5 seconds', '6 seconds'],
                    correctAnswer: 3,
                    topic: 'Following Distance',
                    explanation: 'Commercial vehicles should maintain at least 6 seconds following distance in New Mexico.'
                },
                {
                    id: 7,
                    category: 'cdl',
                    question: 'How should you handle a front-wheel skid in a commercial vehicle on New Mexico roads?',
                    options: ['Brake hard', 'Accelerate', 'Steer in direction you want to go', 'Do nothing'],
                    correctAnswer: 2,
                    topic: 'Skid Control',
                    explanation: 'Steer in the direction you want the front of the vehicle to go during a front-wheel skid in New Mexico.'
                },
                {
                    id: 8,
                    category: 'cdl',
                    question: 'What is the maximum width for a commercial vehicle in New Mexico?',
                    options: ['96 inches', '102 inches', '108 inches', '120 inches'],
                    correctAnswer: 1,
                    topic: 'Vehicle Dimensions',
                    explanation: 'Maximum width for commercial vehicles in New Mexico is 102 inches.'
                },
                {
                    id: 9,
                    category: 'cdl',
                    question: 'When must you use chocks when parking a commercial vehicle in New Mexico?',
                    options: ['Always when parked', 'Only on inclines', 'Never required', 'Only when transporting hazardous materials'],
                    correctAnswer: 0,
                    topic: 'Parking',
                    explanation: 'Always use chocks when parking a commercial vehicle in New Mexico.'
                },
                {
                    id: 10,
                    category: 'cdl',
                    question: 'What is the minimum liability insurance required for commercial vehicles in New Mexico?',
                    options: ['$100,000', '$500,000', '$750,000', '$1,000,000'],
                    correctAnswer: 1,
                    topic: 'Insurance',
                    explanation: 'Minimum liability insurance for commercial vehicles in New Mexico is $500,000.'
                },
                {
                    id: 11,
                    category: 'cdl',
                    question: 'What is the maximum weight allowed on a single axle in New Mexico?',
                    options: ['20,000 lbs', '22,400 lbs', '34,000 lbs', '40,000 lbs'],
                    correctAnswer: 1,
                    topic: 'Weight Limits',
                    explanation: 'Maximum single axle weight is 22,400 lbs in New Mexico.'
                },
                {
                    id: 12,
                    category: 'cdl',
                    question: 'When should you perform a brake check in a commercial vehicle in New Mexico?',
                    options: ['Before starting trip', 'After brake adjustment', 'Both A and B', 'Only during annual inspection'],
                    correctAnswer: 2,
                    topic: 'Air Brakes',
                    explanation: 'Perform brake check before starting trip and after any adjustment in New Mexico.'
                },
                {
                    id: 13,
                    category: 'cdl',
                    question: 'What is the minimum age for a CDL in New Mexico for interstate commerce?',
                    options: ['18', '21', '25', 'No minimum'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Minimum age for CDL in New Mexico is 21 for interstate commerce.'
                },
                {
                    id: 14,
                    category: 'cdl',
                    question: 'How often must you check your mirrors while driving in New Mexico?',
                    options: ['Every 5-8 seconds', 'Every minute', 'Only when changing lanes', 'When approaching intersections'],
                    correctAnswer: 0,
                    topic: 'Safe Operation',
                    explanation: 'Check mirrors every 5-8 seconds while driving in New Mexico.'
                },
                {
                    id: 15,
                    category: 'cdl',
                    question: 'What does a low air pressure warning indicate in New Mexico?',
                    options: ['Normal operation', 'Air pressure below 60 psi', 'Brake system failure', 'Tire pressure low'],
                    correctAnswer: 1,
                    topic: 'Air Brakes',
                    explanation: 'Low air pressure warning activates below 60 psi in New Mexico.'
                },
                {
                    id: 16,
                    category: 'cdl',
                    question: 'When must you stop at railroad crossings in New Mexico?',
                    options: ['Only when flashing', 'For all crossings', 'When carrying hazardous materials', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Railroad Crossings',
                    explanation: 'Stop at all railroad crossings and always when carrying hazardous materials in New Mexico.'
                },
                {
                    id: 17,
                    category: 'cdl',
                    question: 'What is the maximum length for a single commercial vehicle in New Mexico?',
                    options: ['40 feet', '50 feet', '60 feet', '75 feet'],
                    correctAnswer: 1,
                    topic: 'Vehicle Dimensions',
                    explanation: 'Maximum length for single vehicle is 50 feet in New Mexico.'
                },
                {
                    id: 18,
                    category: 'cdl',
                    question: 'How should you handle a tire blowout in New Mexico?',
                    options: ['Brake hard', 'Steer straight, ease off gas', 'Accelerate', 'Turn quickly'],
                    correctAnswer: 1,
                    topic: 'Emergency Procedures',
                    explanation: 'Steer straight and ease off gas during tire blowout in New Mexico.'
                },
                {
                    id: 19,
                    category: 'cdl',
                    question: 'What must be checked during coupling inspection in New Mexico?',
                    options: ['Fifth wheel locking', 'Air line connections', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Coupling',
                    explanation: 'Check both fifth wheel locking and air line connections in New Mexico.'
                },
                {
                    id: 20,
                    category: 'cdl',
                    question: 'When is a pre-trip inspection required in New Mexico?',
                    options: ['Before each trip', 'Daily', 'Weekly', 'Monthly'],
                    correctAnswer: 1,
                    topic: 'Vehicle Inspection',
                    explanation: 'Pre-trip inspection required daily in New Mexico.'
                },
                {
                    id: 21,
                    category: 'cdl',
                    question: 'What is the blood alcohol limit for CDL holders in New Mexico?',
                    options: ['0.02%', '0.04%', '0.08%', '0.10%'],
                    correctAnswer: 1,
                    topic: 'DUI Laws',
                    explanation: 'CDL holders have 0.04% BAC limit in New Mexico.'
                },
                {
                    id: 22,
                    category: 'cdl',
                    question: 'How many hours off duty required after 70 hours of driving in New Mexico?',
                    options: ['8 hours', '10 hours', '24 hours', '34 hours'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: '34 hours off duty required after 70 hours of driving in New Mexico.'
                },
                {
                    id: 23,
                    category: 'cdl',
                    question: 'What does anti-lock brake system (ABS) help prevent in New Mexico?',
                    options: ['Wheel lockup', 'Brake fade', 'Air leaks', 'All of the above'],
                    correctAnswer: 0,
                    topic: 'Brake Systems',
                    explanation: 'ABS helps prevent wheel lockup during braking in New Mexico.'
                },
                {
                    id: 24,
                    category: 'cdl',
                    question: 'When must you use seat belts in commercial vehicles in New Mexico?',
                    options: ['Always', 'Only on highways', 'When required by company', 'Never required'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Seat belts must always be worn in commercial vehicles in New Mexico.'
                },
                {
                    id: 25,
                    category: 'cdl',
                    question: 'What is the maximum driving time in a 7-day period in New Mexico?',
                    options: ['60 hours', '70 hours', '80 hours', 'No limit'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 70 hours driving in 7-day period in New Mexico.'
                },
                {
                    id: 26,
                    category: 'cdl',
                    question: 'How should cargo be secured for New Mexico roads?',
                    options: ['Front to back', 'Side to side', 'Both A and B', 'No requirement'],
                    correctAnswer: 2,
                    topic: 'Cargo Securement',
                    explanation: 'Secure cargo both front to back and side to side in New Mexico.'
                },
                {
                    id: 27,
                    category: 'cdl',
                    question: 'When should you check tire pressure in New Mexico?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Only when flat'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Check tire pressure daily during pre-trip inspection in New Mexico.'
                },
                {
                    id: 28,
                    category: 'cdl',
                    question: 'What is the purpose of engine retarders in New Mexico?',
                    options: ['Increase speed', 'Help slow vehicle without brakes', 'Improve fuel economy', 'Reduce emissions'],
                    correctAnswer: 1,
                    topic: 'Vehicle Systems',
                    explanation: 'Engine retarders help slow vehicle without using service brakes in New Mexico.'
                },
                {
                    id: 29,
                    category: 'cdl',
                    question: 'When must you have a fire extinguisher in New Mexico?',
                    options: ['Always', 'Only for hazardous materials', 'For passenger vehicles only', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Fire extinguisher required in all commercial vehicles in New Mexico.'
                },
                {
                    id: 30,
                    category: 'cdl',
                    question: 'How wide are commercial vehicle mirrors required to show in New Mexico?',
                    options: ['100 feet', '200 feet', '300 feet', '500 feet'],
                    correctAnswer: 1,
                    topic: 'Vehicle Equipment',
                    explanation: 'Mirrors must show 200 feet to rear in New Mexico.'
                },
                {
                    id: 31,
                    category: 'cdl',
                    question: 'What special equipment is required for commercial vehicles in New Mexico during winter?',
                    options: ['Snow tires or chains', 'Windshield wipers', 'Both A and B', 'No special equipment needed'],
                    correctAnswer: 2,
                    topic: 'Weather Equipment',
                    explanation: 'Snow tires or chains and proper windshield wipers are required in New Mexico during winter.'
                },
                {
                    id: 32,
                    category: 'cdl',
                    question: 'How should you adjust driving for New Mexico\'s winter roads?',
                    options: ['Use lower gears', 'Reduce speed on snow/ice', 'Increase following distance', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Winter Driving',
                    explanation: 'Use lower gears, reduce speed on snow/ice, and increase following distance on New Mexico\'s winter roads.'
                },
                {
                    id: 33,
                    category: 'cdl',
                    question: 'What is the penalty for violating hours of service in New Mexico?',
                    options: ['Fine only', 'Fine and out-of-service', 'License suspension', 'Jail time'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: 'Violation results in fine and out-of-service order in New Mexico.'
                },
                {
                    id: 34,
                    category: 'cdl',
                    question: 'When should you use hazard lights in New Mexico?',
                    options: ['When stopped on road', 'In bad weather', 'When moving slowly', 'When warning of hazard'],
                    correctAnswer: 3,
                    topic: 'Emergency Equipment',
                    explanation: 'Use hazard lights to warn other drivers of a hazard in New Mexico.'
                },
                {
                    id: 35,
                    category: 'cdl',
                    question: 'What is the maximum steering wheel play allowed in New Mexico?',
                    options: ['10 degrees', '20 degrees', '30 degrees', '40 degrees'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Maximum steering wheel play is 10 degrees in New Mexico.'
                },
                {
                    id: 36,
                    category: 'cdl',
                    question: 'How should you handle jackknife prevention in New Mexico?',
                    options: ['Brake smoothly', 'Avoid sudden steering', 'Both A and B', 'Accelerate through turns'],
                    correctAnswer: 2,
                    topic: 'Skid Control',
                    explanation: 'Brake smoothly and avoid sudden steering to prevent jackknife in New Mexico.'
                },
                {
                    id: 37,
                    category: 'cdl',
                    question: 'When must you have reflective triangles in New Mexico?',
                    options: ['All commercial vehicles', 'Only trucks', 'Only at night', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Reflective triangles required for all commercial vehicles in New Mexico.'
                },
                {
                    id: 38,
                    category: 'cdl',
                    question: 'What is the maximum height for commercial vehicles in New Mexico?',
                    options: ['12 feet', '13 feet 6 inches', '14 feet', '15 feet'],
                    correctAnswer: 1,
                    topic: 'Vehicle Dimensions',
                    explanation: 'Maximum height is 13 feet 6 inches in New Mexico.'
                },
                {
                    id: 39,
                    category: 'cdl',
                    question: 'How often must log books be updated in New Mexico?',
                    options: ['Daily', 'Weekly', 'Monthly', 'After each trip'],
                    correctAnswer: 0,
                    topic: 'Hours of Service',
                    explanation: 'Log books must be updated daily in New Mexico.'
                },
                {
                    id: 40,
                    category: 'cdl',
                    question: 'When should you check brake adjustment in New Mexico?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Only when problems occur'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Check brake adjustment daily in New Mexico.'
                },
                {
                    id: 41,
                    category: 'cdl',
                    question: 'What is New Mexico\'s annual inspection requirement for commercial vehicles?',
                    options: ['Annual for vehicles over 10,000 lbs', 'Biennial for all vehicles', 'No requirement', 'Only for diesel vehicles'],
                    correctAnswer: 0,
                    topic: 'Vehicle Regulations',
                    explanation: 'Annual inspection required for commercial vehicles over 10,000 lbs in New Mexico.'
                },
                {
                    id: 42,
                    category: 'cdl',
                    question: 'What special training is required for transporting hazardous materials in New Mexico?',
                    options: ['Hazmat endorsement', 'Security awareness training', 'Both A and B', 'No special training'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Hazmat endorsement and security awareness training required in New Mexico.'
                },
                {
                    id: 43,
                    category: 'cdl',
                    question: 'When must you use engine brake silencers in New Mexico?',
                    options: ['In residential areas', 'At all times', 'Only at night', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Noise Regulations',
                    explanation: 'Engine brake silencers required in residential areas in New Mexico.'
                },
                {
                    id: 44,
                    category: 'cdl',
                    question: 'What is New Mexico\'s idling limitation for commercial vehicles?',
                    options: ['3 minutes', '5 minutes', '10 minutes', 'No limitation'],
                    correctAnswer: 1,
                    topic: 'Environmental Regulations',
                    explanation: 'Maximum 5 minutes idling allowed in New Mexico.'
                },
                {
                    id: 45,
                    category: 'cdl',
                    question: 'What is the penalty for overweight violations in New Mexico?',
                    options: ['$100 per 500 lbs', '$250 per 500 lbs', '$500 per 500 lbs', '$1,000 per 500 lbs'],
                    correctAnswer: 1,
                    topic: 'Weight Limits',
                    explanation: 'Overweight penalty is approximately $250 per 500 lbs over limit in New Mexico.'
                },
                {
                    id: 46,
                    category: 'cdl',
                    question: 'When must you have New Mexico State inspection?',
                    options: ['Annually', 'Biennially', 'When requested', 'Never'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Annual State inspection required for certain commercial vehicles in New Mexico.'
                },
                {
                    id: 47,
                    category: 'cdl',
                    question: 'What is required for transporting agricultural products in New Mexico?',
                    options: ['Special ventilation', 'Covered loads', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Agricultural Transport',
                    explanation: 'Special ventilation and covered loads required for agricultural product transport in New Mexico.'
                },
                {
                    id: 48,
                    category: 'cdl',
                    question: 'How often must you renew medical certificate in New Mexico?',
                    options: ['Every 6 months', 'Every year', 'Every 2 years', 'Every 5 years'],
                    correctAnswer: 1,
                    topic: 'Medical Requirements',
                    explanation: 'Medical certificate must be renewed annually in New Mexico.'
                },
                {
                    id: 49,
                    category: 'cdl',
                    question: 'What is New Mexico\'s requirement for reflective tape on trailers?',
                    options: ['Required on all trailers', 'Only on long trailers', 'Only at night', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Vehicle Equipment',
                    explanation: 'Reflective tape required on all commercial trailers in New Mexico.'
                },
                {
                    id: 50,
                    category: 'cdl',
                    question: 'When must you stop at weigh stations in New Mexico?',
                    options: ['When open and sign says "All Trucks"', 'Only if overweight', 'Only commercial vehicles', 'All of the above'],
                    correctAnswer: 0,
                    topic: 'Weight Stations',
                    explanation: 'Must stop at open weigh stations when sign says "All Trucks" in New Mexico.'
                },
                {
                    id: 51,
                    category: 'cdl',
                    question: 'What is the maximum gross vehicle weight allowed in New Mexico?',
                    options: ['60,000 lbs', '80,000 lbs', '100,000 lbs', '120,000 lbs'],
                    correctAnswer: 1,
                    topic: 'Weight Limits',
                    explanation: 'Maximum gross vehicle weight is 80,000 lbs in New Mexico.'
                },
                {
                    id: 52,
                    category: 'cdl',
                    question: 'How many hours of driving are allowed after 8 consecutive hours off duty?',
                    options: ['8 hours', '10 hours', '11 hours', '12 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 hours driving after 8 consecutive hours off duty in New Mexico.'
                },
                {
                    id: 53,
                    category: 'cdl',
                    question: 'What is the minimum cargo securement requirement in New Mexico?',
                    options: ['One tie-down per 10 feet', 'One tie-down per 20 feet', 'Based on weight', 'No requirement'],
                    correctAnswer: 0,
                    topic: 'Cargo Securement',
                    explanation: 'Minimum one tie-down per 10 feet of cargo in New Mexico.'
                },
                {
                    id: 54,
                    category: 'cdl',
                    question: 'When must you have a commercial driver\'s license in New Mexico?',
                    options: ['Vehicle over 26,001 lbs', 'Vehicle over 10,000 lbs', 'Any commercial vehicle', 'Only for hazardous materials'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'CDL required for vehicles over 26,001 lbs in New Mexico.'
                },
                {
                    id: 55,
                    category: 'cdl',
                    question: 'What is the penalty for logbook falsification in New Mexico?',
                    options: ['$250 fine', '$500 fine', '$1,000 fine', 'Civil penalty up to $10,000'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Logbook falsification can result in civil penalty up to $10,000 in New Mexico.'
                },
                {
                    id: 56,
                    category: 'cdl',
                    question: 'How often must you inspect your fire extinguisher in New Mexico?',
                    options: ['Monthly', 'Quarterly', 'Annually', 'Every 6 months'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Fire extinguisher must be inspected monthly in New Mexico.'
                },
                {
                    id: 57,
                    category: 'cdl',
                    question: 'What is the minimum insurance for passenger-carrying vehicles in New Mexico?',
                    options: ['$1.5 million', '$5 million', '$10 million', '$15 million'],
                    correctAnswer: 1,
                    topic: 'Insurance',
                    explanation: 'Minimum $5 million insurance for passenger-carrying vehicles in New Mexico.'
                },
                {
                    id: 58,
                    category: 'cdl',
                    question: 'When must you stop for school buses in New Mexico?',
                    options: ['Always when lights flashing', 'Only on two-lane roads', 'Only in cities', 'Never for commercial vehicles'],
                    correctAnswer: 0,
                    topic: 'School Buses',
                    explanation: 'All vehicles must stop for school buses with flashing lights in New Mexico.'
                },
                {
                    id: 59,
                    category: 'cdl',
                    question: 'What is the maximum tandem axle weight in New Mexico?',
                    options: ['34,000 lbs', '36,000 lbs', '38,000 lbs', '40,000 lbs'],
                    correctAnswer: 0,
                    topic: 'Weight Limits',
                    explanation: 'Maximum tandem axle weight is 34,000 lbs in New Mexico.'
                },
                {
                    id: 60,
                    category: 'cdl',
                    question: 'How many consecutive days off are required in New Mexico?',
                    options: ['1 day in 7', '2 days in 7', '1 day in 30', 'No requirement'],
                    correctAnswer: 0,
                    topic: 'Hours of Service',
                    explanation: 'One consecutive day off required every 7 days in New Mexico.'
                },
                {
                    id: 61,
                    category: 'cdl',
                    question: 'What is required for transporting oversized loads in New Mexico?',
                    options: ['Special permit', 'Escort vehicles', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Oversized Loads',
                    explanation: 'Special permit and escort vehicles required for oversized loads in New Mexico.'
                },
                {
                    id: 62,
                    category: 'cdl',
                    question: 'How far ahead must you signal for lane changes in New Mexico?',
                    options: ['50 feet', '100 feet', '200 feet', '300 feet'],
                    correctAnswer: 1,
                    topic: 'Safe Operation',
                    explanation: 'Signal at least 100 feet before lane changes in New Mexico.'
                },
                {
                    id: 63,
                    category: 'cdl',
                    question: 'What is the penalty for driving without a CDL in New Mexico?',
                    options: ['$100 fine', '$250 fine', '$500 fine', 'Up to $1,000 fine'],
                    correctAnswer: 3,
                    topic: 'Licensing',
                    explanation: 'Driving without CDL can result in up to $1,000 fine in New Mexico.'
                },
                {
                    id: 64,
                    category: 'cdl',
                    question: 'How often must you check wheel nuts on commercial vehicles in New Mexico?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Every 6 months'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Check wheel nuts daily during pre-trip inspection in New Mexico.'
                },
                {
                    id: 65,
                    category: 'cdl',
                    question: 'What is required for transporting explosives in New Mexico?',
                    options: ['Special placards', 'Fire extinguishers', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special placards and fire extinguishers required for transporting explosives in New Mexico.'
                },
                {
                    id: 66,
                    category: 'cdl',
                    question: 'How many hours must you be off duty after 14 hours on duty in New Mexico?',
                    options: ['8 hours', '10 hours', '12 hours', '14 hours'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: '10 consecutive hours off duty required after 14 hours on duty in New Mexico.'
                },
                {
                    id: 67,
                    category: 'cdl',
                    question: 'What is the minimum tread depth for other tires in New Mexico?',
                    options: ['1/32 inch', '2/32 inch', '3/32 inch', '4/32 inch'],
                    correctAnswer: 1,
                    topic: 'Vehicle Inspection',
                    explanation: 'Minimum 2/32 inch tread depth for other tires in New Mexico.'
                },
                {
                    id: 68,
                    category: 'cdl',
                    question: 'When must you use tire chains in New Mexico?',
                    options: ['When signs require', 'In all snow', 'Only in mountains', 'Never required'],
                    correctAnswer: 0,
                    topic: 'Weather Equipment',
                    explanation: 'Tire chains required when signs indicate in New Mexico.'
                },
                {
                    id: 69,
                    category: 'cdl',
                    question: 'What is the penalty for hours of service violation in New Mexico?',
                    options: ['Warning', 'Fine only', 'Out-of-service order', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Hours violation results in fine and out-of-service order in New Mexico.'
                },
                {
                    id: 70,
                    category: 'cdl',
                    question: 'How many days must you keep logbooks in New Mexico?',
                    options: ['7 days', '14 days', '30 days', '6 months'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Keep logbooks for 6 months in New Mexico.'
                },
                {
                    id: 71,
                    category: 'cdl',
                    question: 'What is required for transporting flammable liquids in New Mexico?',
                    options: ['Special training', 'Proper placards', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special training and proper placards required for flammable liquids in New Mexico.'
                },
                {
                    id: 72,
                    category: 'cdl',
                    question: 'How many hours driving in 8-day period is maximum in New Mexico?',
                    options: ['60 hours', '70 hours', '80 hours', '90 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 80 hours driving in 8-day period in New Mexico.'
                },
                {
                    id: 73,
                    category: 'cdl',
                    question: 'What is the minimum age for intrastate CDL in New Mexico?',
                    options: ['18', '21', '25', 'No minimum'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'Minimum age for intrastate CDL is 18 in New Mexico.'
                },
                {
                    id: 74,
                    category: 'cdl',
                    question: 'How often must you inspect emergency equipment in New Mexico?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Quarterly'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Inspect emergency equipment daily in New Mexico.'
                },
                {
                    id: 75,
                    category: 'cdl',
                    question: 'What is required for transporting radioactive materials in New Mexico?',
                    options: ['Special endorsement', 'Security plan', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special endorsement and security plan required for radioactive materials in New Mexico.'
                },
                {
                    id: 76,
                    category: 'cdl',
                    question: 'How many hours off after 60 hours in 7 days in New Mexico?',
                    options: ['24 hours', '34 hours', '48 hours', '60 hours'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: '34 consecutive hours off after 60 hours in 7 days in New Mexico.'
                },
                {
                    id: 77,
                    category: 'cdl',
                    question: 'What is the penalty for defective brakes in New Mexico?',
                    options: ['Warning', 'Fine', 'Out-of-service', 'Both B and C'],
                    correctAnswer: 3,
                    topic: 'Vehicle Inspection',
                    explanation: 'Defective brakes result in fine and out-of-service order in New Mexico.'
                },
                {
                    id: 78,
                    category: 'cdl',
                    question: 'How many hours driving after 34 hours off in New Mexico?',
                    options: ['60 hours', '70 hours', '80 hours', 'Restarts 70-hour clock'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: '34 hours off restarts 70-hour clock in New Mexico.'
                },
                {
                    id: 79,
                    category: 'cdl',
                    question: 'What is required for transporting corrosives in New Mexico?',
                    options: ['Special containers', 'Emergency equipment', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special containers and emergency equipment required for corrosives in New Mexico.'
                },
                {
                    id: 80,
                    category: 'cdl',
                    question: 'How many consecutive hours driving maximum in New Mexico?',
                    options: ['8 hours', '10 hours', '11 hours', '12 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 consecutive hours driving in New Mexico.'
                },
                {
                    id: 81,
                    category: 'cdl',
                    question: 'What is required for tank vehicles in New Mexico?',
                    options: ['Tank endorsement', 'Special training', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Special Endorsements',
                    explanation: 'Tank endorsement and special training required for tank vehicles in New Mexico.'
                },
                {
                    id: 82,
                    category: 'cdl',
                    question: 'How many hours on duty in 14-hour period maximum in New Mexico?',
                    options: ['11 hours', '12 hours', '13 hours', '14 hours'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 14 consecutive hours on duty in New Mexico.'
                },
                {
                    id: 83,
                    category: 'cdl',
                    question: 'What is required for double/triple trailers in New Mexico?',
                    options: ['Double/triple endorsement', 'Special equipment', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Special Endorsements',
                    explanation: 'Double/triple endorsement and special equipment required in New Mexico.'
                },
                {
                    id: 84,
                    category: 'cdl',
                    question: 'How many hours driving in 14-hour period maximum in New Mexico?',
                    options: ['10 hours', '11 hours', '12 hours', '13 hours'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 hours driving in 14-hour period in New Mexico.'
                },
                {
                    id: 85,
                    category: 'cdl',
                    question: 'What is required for passenger vehicles in New Mexico?',
                    options: ['Passenger endorsement', 'Special insurance', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Special Endorsements',
                    explanation: 'Passenger endorsement and special insurance required in New Mexico.'
                },
                {
                    id: 86,
                    category: 'cdl',
                    question: 'How many hours off after 70 hours in 8 days in New Mexico?',
                    options: ['24 hours', '34 hours', '48 hours', '60 hours'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: '34 consecutive hours off after 70 hours in 8 days in New Mexico.'
                },
                {
                    id: 87,
                    category: 'cdl',
                    question: 'What is required for school buses in New Mexico?',
                    options: ['School bus endorsement', 'Background check', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Special Endorsements',
                    explanation: 'School bus endorsement and background check required in New Mexico.'
                },
                {
                    id: 88,
                    category: 'cdl',
                    question: 'How many hours driving after 10 hours off in New Mexico?',
                    options: ['8 hours', '10 hours', '11 hours', '12 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 hours driving after 10 hours off in New Mexico.'
                },
                {
                    id: 89,
                    category: 'cdl',
                    question: 'What is required for transporting gases in New Mexico?',
                    options: ['Special valves', 'Pressure monitoring', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special valves and pressure monitoring required for gases in New Mexico.'
                },
                {
                    id: 90,
                    category: 'cdl',
                    question: 'How many hours off after 8 days maximum in New Mexico?',
                    options: ['24 hours', '34 hours', '48 hours', '60 hours'],
                    correctAnswer: 1,
                    topic: 'Hours of Service',
                    explanation: '34 consecutive hours off after 8 days maximum in New Mexico.'
                },
                {
                    id: 91,
                    category: 'cdl',
                    question: 'What is required for transporting poisons in New Mexico?',
                    options: ['Special labeling', 'Emergency procedures', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special labeling and emergency procedures required for poisons in New Mexico.'
                },
                {
                    id: 92,
                    category: 'cdl',
                    question: 'How many hours on duty in 24-hour period maximum in New Mexico?',
                    options: ['10 hours', '12 hours', '14 hours', '16 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 14 hours on duty in 24-hour period in New Mexico.'
                },
                {
                    id: 93,
                    category: 'cdl',
                    question: 'What is required for transporting combustibles in New Mexico?',
                    options: ['Fire protection', 'Special storage', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Fire protection and special storage required for combustibles in New Mexico.'
                },
                {
                    id: 94,
                    category: 'cdl',
                    question: 'How many hours driving in 24-hour period maximum in New Mexico?',
                    options: ['8 hours', '10 hours', '11 hours', '12 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 hours driving in 24-hour period in New Mexico.'
                },
                {
                    id: 95,
                    category: 'cdl',
                    question: 'What is required for transporting oxidizers in New Mexico?',
                    options: ['Special separation', 'Fire control', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special separation and fire control required for oxidizers in New Mexico.'
                },
                {
                    id: 96,
                    category: 'cdl',
                    question: 'How many days must medical certificate be carried in New Mexico?',
                    options: ['At all times', 'Only at inspection', 'In office', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Medical Requirements',
                    explanation: 'Medical certificate must be carried at all times in New Mexico.'
                },
                {
                    id: 97,
                    category: 'cdl',
                    question: 'What is required for transporting organic peroxides in New Mexico?',
                    options: ['Temperature control', 'Special handling', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Temperature control and special handling required for organic peroxides in New Mexico.'
                },
                {
                    id: 98,
                    category: 'cdl',
                    question: 'How often must you renew CDL in New Mexico?',
                    options: ['Every 4 years', 'Every 6 years', 'Every 8 years', 'Every 10 years'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'CDL must be renewed every 4 years in New Mexico.'
                },
                {
                    id: 99,
                    category: 'cdl',
                    question: 'What is required for transporting infectious substances in New Mexico?',
                    options: ['Special packaging', 'Biohazard labeling', 'Both A and B', 'No special requirements'],
                    correctAnswer: 2,
                    topic: 'Hazardous Materials',
                    explanation: 'Special packaging and biohazard labeling required for infectious substances in New Mexico.'
                },
                {
                    id: 100,
                    category: 'cdl',
                    question: 'What is the maximum width for agricultural vehicles on New Mexico roads?',
                    options: ['12 feet', '14 feet', '16 feet', '18 feet'],
                    correctAnswer: 2,
                    topic: 'Agricultural Vehicles',
                    explanation: 'Maximum width for agricultural vehicles is 16 feet in New Mexico.'
                }
            ];
        }
        
        // Generate 100 New Mexico Motorcycle questions
        function generateMotorcycleQuestions() {
            return [
                {
                    id: 1,
                    category: 'motorcycle',
                    question: 'What is the most important factor in motorcycle safety in New Mexico?',
                    options: ['Helmet use', 'Visibility to other drivers', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Safety',
                    explanation: 'Both helmet use and visibility to other drivers are critical for motorcycle safety in New Mexico.'
                },
                {
                    id: 2,
                    category: 'motorcycle',
                    question: 'When should a motorcycle headlight be used in New Mexico?',
                    options: ['Only at night', 'At all times', 'Only in rain', 'Only on highways'],
                    correctAnswer: 1,
                    topic: 'Lighting',
                    explanation: 'Motorcycle headlights must be used at all times in New Mexico.'
                },
                {
                    id: 3,
                    category: 'motorcycle',
                    question: 'What is the proper way to brake on a motorcycle on New Mexico roads?',
                    options: ['Front brake only', 'Rear brake only', 'Both brakes evenly', 'Depends on conditions'],
                    correctAnswer: 2,
                    topic: 'Braking',
                    explanation: 'Use both brakes evenly for maximum stopping power in New Mexico.'
                },
                {
                    id: 4,
                    category: 'motorcycle',
                    question: 'What should you do to increase visibility to other drivers in New Mexico?',
                    options: ['Wear bright clothing', 'Use headlight at all times', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Visibility',
                    explanation: 'Both wearing bright clothing and using headlights increase visibility in New Mexico.'
                },
                {
                    id: 5,
                    category: 'motorcycle',
                    question: 'How should you handle a turn on a motorcycle on New Mexico roads?',
                    options: ['Slow before the turn', 'Accelerate through the turn', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Turning',
                    explanation: 'Slow before the turn and accelerate gently through the turn in New Mexico.'
                },
                {
                    id: 6,
                    category: 'motorcycle',
                    question: 'What is the minimum insurance required for motorcycles in New Mexico?',
                    options: ['25/50/10', '25/50/25', '100/300/100', '50/100/50'],
                    correctAnswer: 0,
                    topic: 'Insurance',
                    explanation: 'Minimum insurance in New Mexico is $25,000/$50,000/$10,000 for motorcycles.'
                },
                {
                    id: 7,
                    category: 'motorcycle',
                    question: 'Is lane splitting legal in New Mexico?',
                    options: ['Legal in New Mexico', 'Illegal in New Mexico', 'Legal only on highways', 'Legal only in traffic'],
                    correctAnswer: 1,
                    topic: 'Lane Positioning',
                    explanation: 'Lane splitting (riding between lanes) is illegal in New Mexico.'
                },
                {
                    id: 8,
                    category: 'motorcycle',
                    question: 'What should you check during a pre-ride inspection in New Mexico?',
                    options: ['Tires and wheels', 'Lights and electrics', 'Both A and B', 'Neither A nor B'],
                    correctAnswer: 2,
                    topic: 'Pre-Ride Inspection',
                    explanation: 'Check both tires/wheels and lights/electrics during pre-ride inspection in New Mexico.'
                },
                {
                    id: 9,
                    category: 'motorcycle',
                    question: 'How should you carry a passenger on a motorcycle in New Mexico?',
                    options: ['Only with proper equipment', 'Only if licensed for passenger', 'Both A and B', 'No restrictions'],
                    correctAnswer: 2,
                    topic: 'Passengers',
                    explanation: 'You must have proper equipment and be licensed to carry passengers in New Mexico.'
                },
                {
                    id: 10,
                    category: 'motorcycle',
                    question: 'What is the best way to handle road hazards like wet leaves or sand on New Mexico roads?',
                    options: ['Speed up', 'Brake hard', 'Maintain speed and steer straight', 'Slow down before reaching it'],
                    correctAnswer: 3,
                    topic: 'Hazard Avoidance',
                    explanation: 'Slow down before reaching road hazards like wet leaves or sand in New Mexico.'
                },
                {
                    id: 11,
                    category: 'motorcycle',
                    question: 'What protective gear should always be worn when riding in New Mexico?',
                    options: ['Helmet', 'Eye protection', 'Both A and B', 'No gear required'],
                    correctAnswer: 2,
                    topic: 'Protective Gear',
                    explanation: 'Always wear helmet and eye protection when riding in New Mexico.'
                },
                {
                    id: 12,
                    category: 'motorcycle',
                    question: 'When should you increase following distance in New Mexico?',
                    options: ['In rain', 'At night', 'On slippery roads', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Following Distance',
                    explanation: 'Increase following distance in rain, at night, and on slippery roads in New Mexico.'
                },
                {
                    id: 13,
                    category: 'motorcycle',
                    question: 'What is the proper lane position for visibility in New Mexico?',
                    options: ['Left third of lane', 'Center of lane', 'Right third of lane', 'Any position'],
                    correctAnswer: 0,
                    topic: 'Lane Positioning',
                    explanation: 'Ride in left third of lane for best visibility in New Mexico.'
                },
                {
                    id: 14,
                    category: 'motorcycle',
                    question: 'How should you handle wet manhole covers or road markings in New Mexico?',
                    options: ['Accelerate over', 'Brake on them', 'Avoid them', 'Ignore them'],
                    correctAnswer: 2,
                    topic: 'Hazard Avoidance',
                    explanation: 'Avoid wet manhole covers and road markings as they can be slippery in New Mexico.'
                },
                {
                    id: 15,
                    category: 'motorcycle',
                    question: 'When should you check tire pressure in New Mexico?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Only when flat'],
                    correctAnswer: 1,
                    topic: 'Tire Maintenance',
                    explanation: 'Check tire pressure weekly and before long trips in New Mexico.'
                },
                {
                    id: 16,
                    category: 'motorcycle',
                    question: 'What is the minimum age for motorcycle license in New Mexico?',
                    options: ['14', '16', '18', '21'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Minimum age for motorcycle license is 16 in New Mexico.'
                },
                {
                    id: 17,
                    category: 'motorcycle',
                    question: 'How should you handle strong crosswinds common in New Mexico?',
                    options: ['Lean into wind', 'Slow down', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Adverse Conditions',
                    explanation: 'Lean into wind and slow down in strong crosswinds in New Mexico.'
                },
                {
                    id: 18,
                    category: 'motorcycle',
                    question: 'When should you use turn signals in New Mexico?',
                    options: ['Before changing lanes', 'Before turning', 'Both A and B', 'Only in traffic'],
                    correctAnswer: 2,
                    topic: 'Signaling',
                    explanation: 'Use turn signals before changing lanes and turning in New Mexico.'
                },
                {
                    id: 19,
                    category: 'motorcycle',
                    question: 'What should you do at intersections in New Mexico?',
                    options: ['Cover brakes', 'Watch for turning vehicles', 'Both A and B', 'Speed through'],
                    correctAnswer: 2,
                    topic: 'Intersections',
                    explanation: 'Cover brakes and watch for turning vehicles at intersections in New Mexico.'
                },
                {
                    id: 20,
                    category: 'motorcycle',
                    question: 'How should you carry cargo on a motorcycle in New Mexico?',
                    options: ['Low and centered', 'High on back', 'In one side bag', 'Doesn\'t matter'],
                    correctAnswer: 0,
                    topic: 'Cargo Carrying',
                    explanation: 'Carry cargo low and centered for stability in New Mexico.'
                },
                {
                    id: 21,
                    category: 'motorcycle',
                    question: 'What does ATGATT stand for in motorcycle safety?',
                    options: ['All The Gear All The Time', 'Always Try Going Around Traffic', 'Avoid The Gravel And Tar', 'None of the above'],
                    correctAnswer: 0,
                    topic: 'Safety',
                    explanation: 'ATGATT means All The Gear All The Time for maximum safety in New Mexico.'
                },
                {
                    id: 22,
                    category: 'motorcycle',
                    question: 'When should you use high beam headlight in New Mexico?',
                    options: ['At night on empty roads', 'In fog', 'In traffic', 'Never'],
                    correctAnswer: 0,
                    topic: 'Lighting',
                    explanation: 'Use high beam on empty roads at night for better visibility, but dim for oncoming traffic in New Mexico.'
                },
                {
                    id: 23,
                    category: 'motorcycle',
                    question: 'How should you handle oil spills on road in New Mexico?',
                    options: ['Ride through quickly', 'Avoid if possible', 'Brake hard', 'Accelerate'],
                    correctAnswer: 1,
                    topic: 'Hazard Avoidance',
                    explanation: 'Avoid oil spills as they can cause loss of traction in New Mexico.'
                },
                {
                    id: 24,
                    category: 'motorcycle',
                    question: 'What is countersteering?',
                    options: ['Pushing forward on handlebar', 'Leaning body', 'Both A and B', 'Emergency braking'],
                    correctAnswer: 0,
                    topic: 'Turning',
                    explanation: 'Countersteering means pushing forward on handlebar to initiate turn in New Mexico.'
                },
                {
                    id: 25,
                    category: 'motorcycle',
                    question: 'When should you adjust mirrors in New Mexico?',
                    options: ['Before riding', 'While riding', 'Both A and B', 'Mirrors not needed'],
                    correctAnswer: 0,
                    topic: 'Mirrors',
                    explanation: 'Adjust mirrors before riding for proper rear view in New Mexico.'
                },
                {
                    id: 26,
                    category: 'motorcycle',
                    question: 'What is New Mexico\'s helmet law for motorcycles?',
                    options: ['Helmets required for all riders', 'Only required under 18', 'Only required on highways', 'Not required'],
                    correctAnswer: 1,
                    topic: 'Safety',
                    explanation: 'Helmets required for riders under 18 in New Mexico.'
                },
                {
                    id: 27,
                    category: 'motorcycle',
                    question: 'How should you handle lane positioning safely in New Mexico?',
                    options: ['Stay in lane center', 'Use different positions', 'Ride on shoulder', 'Follow other vehicles'],
                    correctAnswer: 1,
                    topic: 'Lane Positioning',
                    explanation: 'Use different lane positions for visibility and safety in New Mexico.'
                },
                {
                    id: 28,
                    category: 'motorcycle',
                    question: 'What should you do when being passed by a car in New Mexico?',
                    options: ['Speed up', 'Move to center of lane', 'Stay in position, be predictable', 'Weave to get attention'],
                    correctAnswer: 2,
                    topic: 'Being Passed',
                    explanation: 'Stay in position and be predictable when being passed in New Mexico.'
                },
                {
                    id: 29,
                    category: 'motorcycle',
                    question: 'How should you approach railroad tracks in New Mexico?',
                    options: ['Cross at 90 degree angle', 'Speed up', 'Weave across', 'Doesn\'t matter'],
                    correctAnswer: 0,
                    topic: 'Railroad Crossings',
                    explanation: 'Cross railroad tracks at as close to 90 degree angle as possible in New Mexico.'
                },
                {
                    id: 30,
                    category: 'motorcycle',
                    question: 'What is the penalty for not wearing helmet under 18 in New Mexico?',
                    options: ['$20 fine', '$40 fine', '$60 fine', '$100 fine'],
                    correctAnswer: 0,
                    topic: 'Safety',
                    explanation: 'Fine for not wearing helmet under 18 is $20 in New Mexico.'
                },
                {
                    id: 31,
                    category: 'motorcycle',
                    question: 'When should you use both brakes in an emergency stop in New Mexico?',
                    options: ['Always', 'Only front brake', 'Only rear brake', 'Depends on speed'],
                    correctAnswer: 0,
                    topic: 'Emergency Braking',
                    explanation: 'Always use both brakes for maximum stopping power in emergency in New Mexico.'
                },
                {
                    id: 32,
                    category: 'motorcycle',
                    question: 'How should you handle riding in groups in New Mexico?',
                    options: ['Staggered formation', 'Single file', 'Side by side', 'Any formation'],
                    correctAnswer: 0,
                    topic: 'Group Riding',
                    explanation: 'Use staggered formation when riding in groups in New Mexico.'
                },
                {
                    id: 33,
                    category: 'motorcycle',
                    question: 'What should you do if you get a flat tire while riding in New Mexico?',
                    options: ['Brake hard', 'Hold handlebars firmly, ease off gas', 'Accelerate', 'Jump off'],
                    correctAnswer: 1,
                    topic: 'Emergency Procedures',
                    explanation: 'Hold handlebars firmly and ease off gas if you get a flat tire in New Mexico.'
                },
                {
                    id: 34,
                    category: 'motorcycle',
                    question: 'When is the most dangerous time to ride in New Mexico?',
                    options: ['First 30 minutes of rain', 'Midnight', 'Noon', 'Sunset'],
                    correctAnswer: 0,
                    topic: 'Safety',
                    explanation: 'First 30 minutes of rain is most dangerous due to oil on road surface in New Mexico.'
                },
                {
                    id: 35,
                    category: 'motorcycle',
                    question: 'How should you adjust speed for curves in New Mexico?',
                    options: ['Slow before curve', 'Brake in curve', 'Accelerate in curve', 'Maintain speed'],
                    correctAnswer: 0,
                    topic: 'Curves',
                    explanation: 'Slow to appropriate speed before entering curve in New Mexico.'
                },
                {
                    id: 36,
                    category: 'motorcycle',
                    question: 'What is the minimum tread depth for motorcycle tires in New Mexico?',
                    options: ['1/32 inch', '2/32 inch', '4/32 inch', 'No requirement'],
                    correctAnswer: 0,
                    topic: 'Tire Maintenance',
                    explanation: 'Minimum tread depth is 1/32 inch for motorcycle tires in New Mexico.'
                },
                {
                    id: 37,
                    category: 'motorcycle',
                    question: 'How should you handle riding over bumps or potholes in New Mexico?',
                    options: ['Stand on pegs', 'Sit normally', 'Speed up', 'Swerve suddenly'],
                    correctAnswer: 0,
                    topic: 'Hazard Avoidance',
                    explanation: 'Stand on pegs to absorb impact when riding over bumps in New Mexico.'
                },
                {
                    id: 38,
                    category: 'motorcycle',
                    question: 'When should you use your horn in New Mexico?',
                    options: ['To alert others of your presence', 'In anger', 'Frequently', 'Never'],
                    correctAnswer: 0,
                    topic: 'Signaling',
                    explanation: 'Use horn to alert others of your presence in New Mexico.'
                },
                {
                    id: 39,
                    category: 'motorcycle',
                    question: 'What is the proper way to make a quick stop in New Mexico?',
                    options: ['Use both brakes, keep bike straight', 'Use rear brake only', 'Swerve', 'Lay bike down'],
                    correctAnswer: 0,
                    topic: 'Emergency Braking',
                    explanation: 'Use both brakes and keep bike straight for quick stop in New Mexico.'
                },
                {
                    id: 40,
                    category: 'motorcycle',
                    question: 'How should you dress for riding in New Mexico\'s varying weather?',
                    options: ['Layers', 'Heavy jacket only', 'Same as warm weather', 'Not important'],
                    correctAnswer: 0,
                    topic: 'Protective Gear',
                    explanation: 'Dress in layers for New Mexico\'s varying weather conditions.'
                },
                {
                    id: 41,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle license in New Mexico?',
                    options: ['Written test', 'Road test', 'Both A and B', 'No test required'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: 'Both written and road tests required for motorcycle license in New Mexico.'
                },
                {
                    id: 42,
                    category: 'motorcycle',
                    question: 'How should you handle night riding in New Mexico?',
                    options: ['Reduce speed', 'Increase following distance', 'Use high beam when appropriate', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Night Riding',
                    explanation: 'Reduce speed, increase following distance, and use high beam when appropriate at night in New Mexico.'
                },
                {
                    id: 43,
                    category: 'motorcycle',
                    question: 'What should you check during pre-ride inspection in New Mexico?',
                    options: ['Brakes', 'Chain/belt', 'Fluids', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Pre-Ride Inspection',
                    explanation: 'Check brakes, chain/belt, and fluids during pre-ride inspection in New Mexico.'
                },
                {
                    id: 44,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s frequent thunderstorms?',
                    options: ['Smooth inputs', 'Increase following distance', 'Avoid painted lines', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Rain Riding',
                    explanation: 'Use smooth inputs, increase following distance, and avoid painted lines in New Mexico\'s frequent thunderstorms.'
                },
                {
                    id: 45,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle endorsement in New Mexico?',
                    options: ['Vision test', 'Knowledge test', 'Skills test', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Licensing',
                    explanation: 'Vision, knowledge, and skills tests required for motorcycle endorsement in New Mexico.'
                },
                {
                    id: 46,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s crosswinds?',
                    options: ['Relax grip', 'Lean into wind', 'Reduce speed', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Wind Riding',
                    explanation: 'Relax grip, lean into wind, and reduce speed in New Mexico\'s crosswinds.'
                },
                {
                    id: 47,
                    category: 'motorcycle',
                    question: 'What should you do before changing lanes in New Mexico?',
                    options: ['Check mirrors', 'Signal', 'Check blind spot', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Lane Changes',
                    explanation: 'Check mirrors, signal, and check blind spot before changing lanes in New Mexico.'
                },
                {
                    id: 48,
                    category: 'motorcycle',
                    question: 'How often should you practice emergency braking in New Mexico?',
                    options: ['Regularly', 'Never', 'Only before test', 'Once a year'],
                    correctAnswer: 0,
                    topic: 'Skills Practice',
                    explanation: 'Practice emergency braking regularly to maintain skills in New Mexico.'
                },
                {
                    id: 49,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle registration in New Mexico?',
                    options: ['Title', 'Insurance', 'Safety inspection', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Registration',
                    explanation: 'Title, insurance, and safety inspection required for registration in New Mexico.'
                },
                {
                    id: 50,
                    category: 'motorcycle',
                    question: 'How should you handle riding on New Mexico\'s gravel roads?',
                    options: ['Reduce speed', 'Keep bike upright', 'Smooth inputs', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Gravel Riding',
                    explanation: 'Reduce speed, keep bike upright, and use smooth inputs on New Mexico\'s gravel roads.'
                },
                {
                    id: 51,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle safety course in New Mexico?',
                    options: ['Completion card', 'Written test waiver', 'Skills test waiver', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Safety Course',
                    explanation: 'Completion card provides written and skills test waivers in New Mexico.'
                },
                {
                    id: 52,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s urban traffic?',
                    options: ['Stay visible', 'Watch for sudden stops', 'Have escape route', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Traffic Riding',
                    explanation: 'Stay visible, watch for sudden stops, and have escape route in New Mexico\'s urban traffic.'
                },
                {
                    id: 53,
                    category: 'motorcycle',
                    question: 'What should you do if headlight fails in New Mexico?',
                    options: ['Ride to safe place', 'Use hand signals', 'Both A and B', 'Continue riding'],
                    correctAnswer: 2,
                    topic: 'Equipment Failure',
                    explanation: 'Ride to safe place and use hand signals if headlight fails in New Mexico.'
                },
                {
                    id: 54,
                    category: 'motorcycle',
                    question: 'How should you handle riding on New Mexico\'s bridges?',
                    options: ['Watch for grates', 'Beware of crosswinds', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Bridge Riding',
                    explanation: 'Watch for grates and beware of crosswinds on New Mexico\'s bridges.'
                },
                {
                    id: 55,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle insurance in New Mexico?',
                    options: ['Liability', 'Proof of insurance', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Insurance',
                    explanation: 'Liability insurance and proof of insurance required in New Mexico.'
                },
                {
                    id: 56,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s fog?',
                    options: ['Use low beam', 'Reduce speed', 'Increase following distance', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Fog Riding',
                    explanation: 'Use low beam, reduce speed, and increase following distance in New Mexico\'s fog.'
                },
                {
                    id: 57,
                    category: 'motorcycle',
                    question: 'What should you do during pre-ride check in New Mexico?',
                    options: ['Check tires', 'Check lights', 'Check horn', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Pre-Ride Check',
                    explanation: 'Check tires, lights, and horn during pre-ride check in New Mexico.'
                },
                {
                    id: 58,
                    category: 'motorcycle',
                    question: 'How should you handle riding on New Mexico\'s wet roads?',
                    options: ['Avoid if possible', 'Reduce speed', 'Smooth inputs', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Hazard Avoidance',
                    explanation: 'Avoid if possible, reduce speed, and use smooth inputs on New Mexico\'s wet roads.'
                },
                {
                    id: 59,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle transfer in New Mexico?',
                    options: ['Bill of sale', 'Title transfer', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Ownership Transfer',
                    explanation: 'Bill of sale and title transfer required for motorcycle transfer in New Mexico.'
                },
                {
                    id: 60,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s road construction zones?',
                    options: ['Reduce speed', 'Watch for debris', 'Follow signs', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Construction Zones',
                    explanation: 'Reduce speed, watch for debris, and follow signs in New Mexico\'s road construction zones.'
                },
                {
                    id: 61,
                    category: 'motorcycle',
                    question: 'What should you do if throttle sticks in New Mexico?',
                    options: ['Pull clutch', 'Turn off engine', 'Both A and B', 'Brake hard'],
                    correctAnswer: 2,
                    topic: 'Emergency Procedures',
                    explanation: 'Pull clutch and turn off engine if throttle sticks in New Mexico.'
                },
                {
                    id: 62,
                    category: 'motorcycle',
                    question: 'How should you handle riding on New Mexico\'s slippery roads after rain?',
                    options: ['Avoid if possible', 'Walk bike', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Slippery Roads',
                    explanation: 'Avoid slippery roads if possible, otherwise walk bike in New Mexico after rain.'
                },
                {
                    id: 63,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle loan in New Mexico?',
                    options: ['Insurance', 'Registration', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Financing',
                    explanation: 'Insurance and registration required for motorcycle loan in New Mexico.'
                },
                {
                    id: 64,
                    category: 'motorcycle',
                    question: 'How should you handle riding at dawn/dusk in New Mexico?',
                    options: ['Use lights', 'Wear reflective gear', 'Both A and B', 'No special precautions'],
                    correctAnswer: 2,
                    topic: 'Low Light Riding',
                    explanation: 'Use lights and wear reflective gear at dawn/dusk in New Mexico.'
                },
                {
                    id: 65,
                    category: 'motorcycle',
                    question: 'What should you do if brake fails in New Mexico?',
                    options: ['Use other brake', 'Downshift', 'Both A and B', 'Jump off'],
                    correctAnswer: 2,
                    topic: 'Emergency Procedures',
                    explanation: 'Use other brake and downshift if one brake fails in New Mexico.'
                },
                {
                    id: 66,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s heat?',
                    options: ['Stay hydrated', 'Take breaks', 'Wear light colors', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Heat Riding',
                    explanation: 'Stay hydrated, take breaks, and wear light colors in New Mexico\'s heat.'
                },
                {
                    id: 67,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle permit in New Mexico?',
                    options: ['Vision test', 'Written test', 'Both A and B', 'No test required'],
                    correctAnswer: 2,
                    topic: 'Permit',
                    explanation: 'Vision and written tests required for motorcycle permit in New Mexico.'
                },
                {
                    id: 68,
                    category: 'motorcycle',
                    question: 'How should you handle riding on New Mexico\'s rural roads?',
                    options: ['Reduce speed', 'Watch for animals', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Rural Riding',
                    explanation: 'Reduce speed and watch for animals on New Mexico\'s rural roads.'
                },
                {
                    id: 69,
                    category: 'motorcycle',
                    question: 'What should you do if chain breaks in New Mexico?',
                    options: ['Pull clutch', 'Coast to stop', 'Both A and B', 'Brake hard'],
                    correctAnswer: 2,
                    topic: 'Equipment Failure',
                    explanation: 'Pull clutch and coast to stop if chain breaks in New Mexico.'
                },
                {
                    id: 70,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s country roads?',
                    options: ['Use lower gears', 'Watch for curves', 'Both A and B', 'No special precautions'],
                    correctAnswer: 2,
                    topic: 'Country Riding',
                    explanation: 'Use lower gears and watch for curves on New Mexico\'s country roads.'
                },
                {
                    id: 71,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle title in New Mexico?',
                    options: ['Application', 'Proof of ownership', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Title',
                    explanation: 'Application and proof of ownership required for title in New Mexico.'
                },
                {
                    id: 72,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s occasional heavy rain?',
                    options: ['Avoid if possible', 'Use rain gear', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Heavy Rain Riding',
                    explanation: 'Avoid heavy rain if possible, otherwise use rain gear in New Mexico.'
                },
                {
                    id: 73,
                    category: 'motorcycle',
                    question: 'What should you do if engine overheats in New Mexico?',
                    options: ['Pull over', 'Let engine cool', 'Both A and B', 'Continue riding'],
                    correctAnswer: 2,
                    topic: 'Overheating',
                    explanation: 'Pull over and let engine cool if overheating in New Mexico.'
                },
                {
                    id: 74,
                    category: 'motorcycle',
                    question: 'How should you handle riding in groups at night in New Mexico?',
                    options: ['Reduce group size', 'Increase spacing', 'Both A and B', 'No changes'],
                    correctAnswer: 2,
                    topic: 'Group Night Riding',
                    explanation: 'Reduce group size and increase spacing at night in New Mexico.'
                },
                {
                    id: 75,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle safety inspection in New Mexico?',
                    options: ['Annual', 'Biennial', 'At transfer only', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Safety Inspection',
                    explanation: 'Annual safety inspection required for motorcycles in New Mexico.'
                },
                {
                    id: 76,
                    category: 'motorcycle',
                    question: 'How should you handle riding with passenger in New Mexico?',
                    options: ['Adjust suspension', 'Increase following distance', 'Both A and B', 'No changes'],
                    correctAnswer: 2,
                    topic: 'Passenger Riding',
                    explanation: 'Adjust suspension and increase following distance with passenger in New Mexico.'
                },
                {
                    id: 77,
                    category: 'motorcycle',
                    question: 'What should you do if electrical system fails in New Mexico?',
                    options: ['Use hand signals', 'Ride to safety', 'Both A and B', 'Continue riding'],
                    correctAnswer: 2,
                    topic: 'Electrical Failure',
                    explanation: 'Use hand signals and ride to safety if electrical system fails in New Mexico.'
                },
                {
                    id: 78,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s rural areas?',
                    options: ['Watch for animals', 'Beware of farm equipment', 'Both A and B', 'No special precautions'],
                    correctAnswer: 2,
                    topic: 'Rural Riding',
                    explanation: 'Watch for animals and beware of farm equipment in New Mexico\'s rural areas.'
                },
                {
                    id: 79,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle dealer purchase in New Mexico?',
                    options: ['Sales tax', 'Registration', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Dealer Purchase',
                    explanation: 'Sales tax and registration required for dealer purchase in New Mexico.'
                },
                {
                    id: 80,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s sudden thunderstorms?',
                    options: ['Seek shelter', 'If riding, reduce speed', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Thunderstorm Riding',
                    explanation: 'Seek shelter, if riding reduce speed in New Mexico\'s sudden thunderstorms.'
                },
                {
                    id: 81,
                    category: 'motorcycle',
                    question: 'What should you do if fuel system fails in New Mexico?',
                    options: ['Switch to reserve', 'Ride to station', 'Both A and B', 'Push bike'],
                    correctAnswer: 2,
                    topic: 'Fuel System Failure',
                    explanation: 'Switch to reserve and ride to station if fuel system fails in New Mexico.'
                },
                {
                    id: 82,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s hail storms?',
                    options: ['Seek shelter immediately', 'Avoid open areas', 'Both A and B', 'Continue riding'],
                    correctAnswer: 2,
                    topic: 'Hail Storm Riding',
                    explanation: 'Seek shelter immediately and avoid open areas in New Mexico\'s hail storms.'
                },
                {
                    id: 83,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle private sale in New Mexico?',
                    options: ['Bill of sale', 'Title transfer', 'Both A and B', 'Handshake only'],
                    correctAnswer: 2,
                    topic: 'Private Sale',
                    explanation: 'Bill of sale and title transfer required for private sale in New Mexico.'
                },
                {
                    id: 84,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s flash flood warnings?',
                    options: ['Seek shelter immediately', 'Do not ride through water', 'Both A and B', 'Ride faster'],
                    correctAnswer: 2,
                    topic: 'Flash Flood Warning',
                    explanation: 'Seek shelter immediately and do not ride through water in New Mexico\'s flash flood warnings.'
                },
                {
                    id: 85,
                    category: 'motorcycle',
                    question: 'What should you do if tire goes flat in New Mexico?',
                    options: ['Hold handlebars firmly', 'Ease off throttle', 'Both A and B', 'Brake hard'],
                    correctAnswer: 2,
                    topic: 'Flat Tire',
                    explanation: 'Hold handlebars firmly and ease off throttle if tire goes flat in New Mexico.'
                },
                {
                    id: 86,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s flood conditions?',
                    options: ['Avoid if possible', 'If riding, go slow', 'Both A and B', 'Speed through'],
                    correctAnswer: 2,
                    topic: 'Flood Riding',
                    explanation: 'Avoid flood if possible, if riding go slow in New Mexico.'
                },
                {
                    id: 87,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle insurance claim in New Mexico?',
                    options: ['Police report', 'Photos', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Insurance Claims',
                    explanation: 'Police report and photos help with insurance claims in New Mexico.'
                },
                {
                    id: 88,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s winter conditions?',
                    options: ['Wear warm gear', 'Reduce speed', 'Both A and B', 'No precautions'],
                    correctAnswer: 2,
                    topic: 'Winter Riding',
                    explanation: 'Wear warm gear and reduce speed in New Mexico\'s winter conditions.'
                },
                {
                    id: 89,
                    category: 'motorcycle',
                    question: 'What should you do if lost control in New Mexico?',
                    options: ['Look where you want to go', 'Stay on brakes', 'Both A and B', 'Close eyes'],
                    correctAnswer: 0,
                    topic: 'Loss of Control',
                    explanation: 'Look where you want to go if losing control in New Mexico.'
                },
                {
                    id: 90,
                    category: 'motorcycle',
                    question: 'How should you handle riding after New Mexico storm?',
                    options: ['Watch for debris', 'Avoid flooded areas', 'Both A and B', 'No precautions'],
                    correctAnswer: 2,
                    topic: 'Post-Storm Riding',
                    explanation: 'Watch for debris and avoid flooded areas after New Mexico storm.'
                },
                {
                    id: 91,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle custom build in New Mexico?',
                    options: ['Special inspection', 'Title', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Custom Builds',
                    explanation: 'Special inspection and title required for custom builds in New Mexico.'
                },
                {
                    id: 92,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s dust from gravel roads?',
                    options: ['Wear goggles', 'Reduce speed', 'Both A and B', 'Ride through'],
                    correctAnswer: 2,
                    topic: 'Dust Riding',
                    explanation: 'Wear goggles and reduce speed in New Mexico\'s dust from gravel roads.'
                },
                {
                    id: 93,
                    category: 'motorcycle',
                    question: 'What should you do if animals on road in New Mexico?',
                    options: ['Reduce speed', 'Do not swerve', 'Both A and B', 'Speed up'],
                    correctAnswer: 2,
                    topic: 'Animals on Road',
                    explanation: 'Reduce speed and do not swerve for animals in New Mexico.'
                },
                {
                    id: 94,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s urban traffic?',
                    options: ['Be extra alert', 'Watch for opening doors', 'Both A and B', 'Speed through'],
                    correctAnswer: 2,
                    topic: 'Urban Riding',
                    explanation: 'Be extra alert and watch for opening doors in New Mexico\'s urban traffic.'
                },
                {
                    id: 95,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle import to New Mexico?',
                    options: ['Federal forms', 'State inspection', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Import',
                    explanation: 'Federal forms and state inspection required for import to New Mexico.'
                },
                {
                    id: 96,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s severe weather conditions?',
                    options: ['Do not ride', 'If riding, extreme caution', 'Both A and B', 'Normal riding'],
                    correctAnswer: 2,
                    topic: 'Severe Weather Riding',
                    explanation: 'Do not ride, if riding use extreme caution in New Mexico\'s severe weather conditions.'
                },
                {
                    id: 97,
                    category: 'motorcycle',
                    question: 'What should you do if objects on road in New Mexico?',
                    options: ['Avoid if safe', 'Do not swerve suddenly', 'Both A and B', 'Hit object'],
                    correctAnswer: 2,
                    topic: 'Objects on Road',
                    explanation: 'Avoid if safe, do not swerve suddenly for objects in New Mexico.'
                },
                {
                    id: 98,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Mexico\'s high traffic areas?',
                    options: ['Watch for sudden stops', 'Beware of distracted drivers', 'Both A and B', 'Normal riding'],
                    correctAnswer: 2,
                    topic: 'High Traffic Riding',
                    explanation: 'Watch for sudden stops and beware of distracted drivers in New Mexico\'s high traffic areas.'
                },
                {
                    id: 99,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle export from New Mexico?',
                    options: ['Title', 'Bill of sale', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Export',
                    explanation: 'Title and bill of sale required for export from New Mexico.'
                },
                {
                    id: 100,
                    category: 'motorcycle',
                    question: 'What special considerations are needed for riding in New Mexico\'s varied climate?',
                    options: ['Watch for changing weather', 'Beware of sudden temperature drops', 'Watch for seasonal hazards', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Climate Riding',
                    explanation: 'Watch for changing weather, beware of sudden temperature drops, and watch for seasonal hazards when riding in New Mexico\'s varied climate.'
                }
            ];
        }
        
        // Start the test
        function startTest() {
            const name = nameInput.value.trim();
            if (!name) {
                alert('Please enter your name before starting the test.');
                nameInput.focus();
                return;
            }
            
            testState.testerName = name;
            testState.currentQuestionIndex = 0;
            testState.userAnswers.fill(null);
            testState.testStarted = true;
            testState.testCompleted = false;
            testState.incorrectQuestions = [];
            
            // Select questions based on current category
            const allQuestions = [...questionBanks[testState.currentCategory]];
            testState.selectedQuestions = [];
            
            // If we have fewer than testQuestions, use what we have
            // Otherwise, shuffle and select testQuestions
            if (allQuestions.length <= TEST_CONFIG.testQuestions) {
                testState.selectedQuestions = allQuestions;
            } else {
                // Shuffle array and take first testQuestions
                for (let i = allQuestions.length - 1; i > 0; i--) {
                    const j = Math.floor(Math.random() * (i + 1));
                    [allQuestions[i], allQuestions[j]] = [allQuestions[j], allQuestions[i]];
                }
                
                testState.selectedQuestions = allQuestions.slice(0, TEST_CONFIG.testQuestions);
            }
            
            // Reset UI
            nameInput.disabled = true;
            timerContainer.style.display = 'block';
            progressContainer.style.display = 'block';
            questionCard.classList.add('active');
            resultsContainer.classList.remove('show');
            incorrectQuestionsSection.classList.remove('show');
            reviewSection.classList.remove('show');
            startTestBtn.textContent = 'Restart Test';
            startTestBtn.classList.add('btn-accent');
            
            // Show first question
            showQuestion();
            startTimer();
            
            // Update category display
            const activeCategoryBtn = document.querySelector('.category-btn.active');
            currentCategoryElement.textContent = activeCategoryBtn.textContent.replace(' Test', '');
        }
        
        // Display current question
        function showQuestion() {
            const question = testState.selectedQuestions[testState.currentQuestionIndex];
            
            // Update progress
            currentQuestionElement.textContent = testState.currentQuestionIndex + 1;
            const progress = ((testState.currentQuestionIndex + 1) / testState.selectedQuestions.length) * 100;
            progressBar.style.width = `${progress}%`;
            
            // Update question text
            questionTextElement.textContent = question.question;
            
            // Clear previous options
            optionsContainer.innerHTML = '';
            
            // Add new options
            question.options.forEach((option, index) => {
                const optionElement = document.createElement('div');
                optionElement.className = 'option';
                if (testState.userAnswers[testState.currentQuestionIndex] === index) {
                    optionElement.classList.add('selected');
                }
                
                optionElement.innerHTML = `
                    <div class="option-label">${String.fromCharCode(65 + index)}</div>
                    <div class="option-text">${option}</div>
                `;
                
                optionElement.addEventListener('click', () => selectOption(index));
                optionsContainer.appendChild(optionElement);
            });
            
            // Update navigation buttons
            prevBtn.disabled = testState.currentQuestionIndex === 0;
            nextBtn.textContent = testState.currentQuestionIndex === testState.selectedQuestions.length - 1 ? 'Finish Test' : 'Next Question';
            
            // Reset timer
            resetTimer();
        }
        
        // Select an option
        function selectOption(optionIndex) {
            // Remove selected class from all options
            document.querySelectorAll('.option').forEach(option => {
                option.classList.remove('selected');
            });
            
            // Add selected class to clicked option
            document.querySelectorAll('.option')[optionIndex].classList.add('selected');
            
            // Save answer
            testState.userAnswers[testState.currentQuestionIndex] = optionIndex;
            
            // Auto-advance after 1 second if not the last question
            if (testState.currentQuestionIndex < testState.selectedQuestions.length - 1) {
                setTimeout(() => {
                    showNextQuestion();
                }, 1000);
            }
        }
        
        // Skip question
        function skipQuestion() {
            testState.userAnswers[testState.currentQuestionIndex] = null;
            
            if (testState.currentQuestionIndex < testState.selectedQuestions.length - 1) {
                showNextQuestion();
            } else {
                finishTest();
            }
        }
        
        // Show next question
        function showNextQuestion() {
            if (testState.currentQuestionIndex < testState.selectedQuestions.length - 1) {
                testState.currentQuestionIndex++;
                showQuestion();
            } else {
                finishTest();
            }
        }
        
        // Show previous question
        function showPreviousQuestion() {
            if (testState.currentQuestionIndex > 0) {
                testState.currentQuestionIndex--;
                showQuestion();
            }
        }
        
        // Timer functions
        function startTimer() {
            clearInterval(testState.timerInterval);
            testState.timeRemaining = TEST_CONFIG.timePerQuestion;
            updateTimerDisplay();
            
            testState.timerInterval = setInterval(() => {
                testState.timeRemaining--;
                updateTimerDisplay();
                
                if (testState.timeRemaining <= 0) {
                    clearInterval(testState.timerInterval);
                    // Auto-skip to next question when time expires
                    if (testState.currentQuestionIndex < testState.selectedQuestions.length - 1) {
                        showNextQuestion();
                    } else {
                        finishTest();
                    }
                }
            }, 1000);
        }
        
        function resetTimer() {
            clearInterval(testState.timerInterval);
            testState.timeRemaining = TEST_CONFIG.timePerQuestion;
            updateTimerDisplay();
            startTimer();
        }
        
        function updateTimerDisplay() {
            timerElement.textContent = testState.timeRemaining;
            
            // Update timer color based on remaining time
            timerElement.classList.remove('warning', 'danger');
            if (testState.timeRemaining <= 15) {
                timerElement.classList.add('danger');
            } else if (testState.timeRemaining <= 30) {
                timerElement.classList.add('warning');
            }
        }
        
        // Finish test and show results
        function finishTest() {
            clearInterval(testState.timerInterval);
            testState.testCompleted = true;
            
            // Calculate results
            let correct = 0;
            let incorrect = 0;
            let skipped = 0;
            testState.incorrectQuestions = [];
            
            testState.userAnswers.forEach((answer, index) => {
                const question = testState.selectedQuestions[index];
                if (answer === null) {
                    skipped++;
                } else if (answer === question.correctAnswer) {
                    correct++;
                } else {
                    incorrect++;
                    // Store incorrect question with user's answer and correct answer
                    testState.incorrectQuestions.push({
                        question: question,
                        userAnswer: answer,
                        correctAnswer: question.correctAnswer
                    });
                }
            });
            
            const totalQuestions = testState.selectedQuestions.length;
            const calculatedScorePercent = Math.round((correct / totalQuestions) * 100);
            const passed = correct >= TEST_CONFIG.passingScore;
            
            // Update results display
            correctCount.textContent = correct;
            incorrectCount.textContent = incorrect;
            skippedCount.textContent = skipped;
            scorePercentElement.textContent = `${calculatedScorePercent}%`;
            testerNameDisplay.textContent = `Tester: ${testState.testerName}`;
            
            // Update score circle visualization
            const correctDegree = (correct / totalQuestions) * 360;
            scoreCircle.style.background = `conic-gradient(var(--correct-color) 0deg ${correctDegree}deg, #eee ${correctDegree}deg 360deg)`;
            
            // Update result message
            if (passed) {
                resultMessage.innerHTML = `
                    <h3 style="color: var(--correct-color); margin-bottom: 10px;">Congratulations ${testState.testerName}! You Passed!</h3>
                    <p>You answered ${correct} out of ${totalQuestions} questions correctly (${calculatedScorePercent}%).</p>
                    <p>You met the New Mexico MVD passing requirement of ${TEST_CONFIG.passingScore} correct answers (${TEST_CONFIG.passingPercent}%).</p>
                `;
                scoreText.textContent = "PASSED";
                scoreText.classList.add('pass');
                scoreText.classList.remove('fail');
            } else {
                resultMessage.innerHTML = `
                    <h3 style="color: var(--incorrect-color); margin-bottom: 10px;">Keep Practicing, ${testState.testerName}!</h3>
                    <p>You answered ${correct} out of ${totalQuestions} questions correctly (${calculatedScorePercent}%).</p>
                    <p>You needed ${TEST_CONFIG.passingScore} correct answers (${TEST_CONFIG.passingPercent}%) to pass the New Mexico MVD test.</p>
                `;
                scoreText.textContent = "FAILED";
                scoreText.classList.add('fail');
                scoreText.classList.remove('pass');
            }
            
            // Update recommendation
            if (calculatedScorePercent >= 90) {
                recommendation.innerHTML = `
                    <h4>Excellent Work!</h4>
                    <p>Your score indicates you're well-prepared for the New Mexico MVD exam. Consider reviewing any missed questions and taking the official test soon.</p>
                `;
            } else if (calculatedScorePercent >= TEST_CONFIG.passingPercent) {
                recommendation.innerHTML = `
                    <h4>Good Job!</h4>
                    <p>You passed the practice test! Review the questions you missed and consider taking another practice test before your official New Mexico MVD exam.</p>
                `;
            } else {
                recommendation.innerHTML = `
                    <h4>Areas for Improvement</h4>
                    <p>Focus on the topics where you missed questions. Study the New Mexico MVD manual and take more practice tests to improve your score.</p>
                    <p>You missed ${TEST_CONFIG.passingScore - correct} more questions than allowed to pass. Click "Show Incorrect Questions" below to review your mistakes.</p>
                `;
            }
            
            // Hide question card and show results
            questionCard.classList.remove('active');
            resultsContainer.classList.add('show');
            
            // Update incorrect questions button text
            if (testState.incorrectQuestions.length > 0) {
                showIncorrectBtn.textContent = `Show Incorrect Questions (${testState.incorrectQuestions.length})`;
                showIncorrectBtn.style.display = 'block';
            } else {
                showIncorrectBtn.style.display = 'none';
            }
        }
        
        // Toggle incorrect questions section
        function toggleIncorrectQuestions() {
            if (incorrectQuestionsSection.classList.contains('show')) {
                incorrectQuestionsSection.classList.remove('show');
                showIncorrectBtn.textContent = `Show Incorrect Questions (${testState.incorrectQuestions.length})`;
            } else {
                showIncorrectQuestions();
                incorrectQuestionsSection.classList.add('show');
                showIncorrectBtn.textContent = 'Hide Incorrect Questions';
                // Hide review section if open
                reviewSection.classList.remove('show');
                reviewTestBtn.textContent = 'Review All Questions';
            }
        }
        
        // Show incorrect questions with correct answers
        function showIncorrectQuestions() {
            incorrectQuestionsList.innerHTML = '';
            
            if (testState.incorrectQuestions.length === 0) {
                incorrectQuestionsList.innerHTML = '<p>No incorrect questions to display. Great job!</p>';
                return;
            }
            
            testState.incorrectQuestions.forEach((item, index) => {
                const question = item.question;
                const userAnswer = item.userAnswer;
                const correctAnswer = item.correctAnswer;
                
                const incorrectQuestionElement = document.createElement('div');
                incorrectQuestionElement.className = 'incorrect-question';
                
                incorrectQuestionElement.innerHTML = `
                    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
                        <strong>Question ${testState.selectedQuestions.findIndex(q => q.id === question.id) + 1}: ${question.topic}</strong>
                        <span style="font-weight: 600; color: var(--incorrect-color)">Incorrect</span>
                    </div>
                    <p style="margin-bottom: 15px;"><strong>Question:</strong> ${question.question}</p>
                    <div style="margin-bottom: 10px;">
                        ${question.options.map((option, optIndex) => {
                            let optionStyle = '';
                            if (optIndex === correctAnswer) {
                                optionStyle = 'background-color: rgba(76, 175, 80, 0.1); border-left: 3px solid var(--correct-color);';
                            } else if (optIndex === userAnswer) {
                                optionStyle = 'background-color: rgba(244, 67, 54, 0.1); border-left: 3px solid var(--incorrect-color);';
                            }
                            
                            return `
                                <div style="padding: 8px 12px; margin-bottom: 5px; border-radius: 4px; ${optionStyle}">
                                    <strong>${String.fromCharCode(65 + optIndex)}:</strong> ${option}
                                    ${optIndex === correctAnswer ? ' <strong>(Correct Answer)</strong>' : ''}
                                    ${optIndex === userAnswer && optIndex !== correctAnswer ? ' <strong>(Your Answer)</strong>' : ''}
                                </div>
                            `;
                        }).join('')}
                    </div>
                    <div style="font-style: italic; color: var(--light-text);">
                        <strong>Explanation:</strong> ${question.explanation}
                    </div>
                `;
                
                incorrectQuestionsList.appendChild(incorrectQuestionElement);
            });
        }
        
        // Toggle review section
        function toggleReviewSection() {
            if (reviewSection.classList.contains('show')) {
                reviewSection.classList.remove('show');
                reviewTestBtn.textContent = 'Review All Questions';
            } else {
                showReviewSection();
                reviewSection.classList.add('show');
                reviewTestBtn.textContent = 'Hide Review';
                // Hide incorrect questions section if open
                incorrectQuestionsSection.classList.remove('show');
                showIncorrectBtn.textContent = `Show Incorrect Questions (${testState.incorrectQuestions.length})`;
            }
        }
        
        // Show review section with all questions and answers
        function showReviewSection() {
            reviewQuestions.innerHTML = '';
            
            testState.selectedQuestions.forEach((question, index) => {
                const userAnswer = testState.userAnswers[index];
                const isCorrect = userAnswer === question.correctAnswer;
                const isSkipped = userAnswer === null;
                
                let statusClass = '';
                let statusText = '';
                
                if (isSkipped) {
                    statusClass = 'skipped';
                    statusText = 'Skipped';
                } else if (isCorrect) {
                    statusClass = 'correct';
                    statusText = 'Correct';
                } else {
                    statusClass = 'incorrect';
                    statusText = 'Incorrect';
                }
                
                const reviewQuestion = document.createElement('div');
                reviewQuestion.className = `review-question ${statusClass}`;
                
                reviewQuestion.innerHTML = `
                    <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
                        <strong>Question ${index + 1}: ${question.topic}</strong>
                        <span style="font-weight: 600; color: ${statusClass === 'correct' ? 'var(--correct-color)' : statusClass === 'incorrect' ? 'var(--incorrect-color)' : 'var(--accent-color)'}">
                            ${statusText}
                        </span>
                    </div>
                    <p style="margin-bottom: 15px;">${question.question}</p>
                    <div style="margin-bottom: 10px;">
                        ${question.options.map((option, optIndex) => {
                            let optionStyle = '';
                            if (optIndex === question.correctAnswer) {
                                optionStyle = 'background-color: rgba(76, 175, 80, 0.1); border-left: 3px solid var(--correct-color);';
                            } else if (optIndex === userAnswer && !isCorrect) {
                                optionStyle = 'background-color: rgba(244, 67, 54, 0.1); border-left: 3px solid var(--incorrect-color);';
                            }
                            
                            return `
                                <div style="padding: 8px 12px; margin-bottom: 5px; border-radius: 4px; ${optionStyle}">
                                    <strong>${String.fromCharCode(65 + optIndex)}:</strong> ${option}
                                    ${optIndex === question.correctAnswer ? ' <strong>(Correct Answer)</strong>' : ''}
                                    ${optIndex === userAnswer && !isCorrect ? ' <strong>(Your Answer)</strong>' : ''}
                                </div>
                            `;
                        }).join('')}
                    </div>
                    <div style="font-style: italic; color: var(--light-text);">
                        <strong>Explanation:</strong> ${question.explanation}
                    </div>
                `;
                
                reviewQuestions.appendChild(reviewQuestion);
            });
        }
        
        // Restart test
        function restartTest() {
            testState.currentQuestionIndex = 0;
            testState.userAnswers.fill(null);
            testState.testStarted = false;
            testState.testCompleted = false;
            testState.incorrectQuestions = [];
            testState.testerName = '';
            
            // Reset UI
            nameInput.disabled = false;
            nameInput.value = '';
            timerContainer.style.display = 'none';
            progressContainer.style.display = 'none';
            questionCard.classList.remove('active');
            resultsContainer.classList.remove('show');
            incorrectQuestionsSection.classList.remove('show');
            reviewSection.classList.remove('show');
            startTestBtn.textContent = 'Start Practice Test';
            startTestBtn.classList.remove('btn-accent');
            
            // Reset progress bar
            progressBar.style.width = '0%';
            
            // Reset timer display
            clearInterval(testState.timerInterval);
            timerElement.textContent = '60';
            timerElement.classList.remove('warning', 'danger');
            
            // Reset buttons
            showIncorrectBtn.textContent = 'Show Incorrect Questions';
            reviewTestBtn.textContent = 'Review All Questions';
            showIncorrectBtn.style.display = 'block';
        }
        
        // Initialize the application
        document.addEventListener('DOMContentLoaded', () => {
            initEventListeners();
            
            // Set default active category
            currentCategoryElement.textContent = 'Car';
        });
    </script>
</body>
]]></content:encoded>
					
					<wfw:commentRss>https://24car-repair.com/new-mexico-dmv-practice-test/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>New Mexico Traffic Ticket Calculator &#038; Complete Guide</title>
		<link>https://24car-repair.com/new-mexico-traffic-ticket-calculator/</link>
					<comments>https://24car-repair.com/new-mexico-traffic-ticket-calculator/#respond</comments>
		
		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Thu, 25 Dec 2025 14:42:26 +0000</pubDate>
				<category><![CDATA[Calculator]]></category>
		<category><![CDATA[New Mexico]]></category>
		<guid isPermaLink="false">https://24car-repair.com/?p=4651</guid>

					<description><![CDATA[New Mexico Traffic Ticket Calculator &#038; Complete Guide &#124; 24car-repair.com 24 24car-repair.com New Mexico Traffic Ticket Calculator &#038; Complete Guide Understand fines, calculate costs, learn about penalties, and discover how to handle traffic citations in New Mexico. Includes detailed fee breakdowns by county and violation type. 1 Understanding New Mexico Traffic Tickets Receiving a traffic [&#8230;]]]></description>
										<content:encoded><![CDATA[

    <title>New Mexico Traffic Ticket Calculator &#038; Complete Guide | 24car-repair.com</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&#038;display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        /* Aligent Design System: Typography, Spacing, Hierarchy */
        :root {
            --primary: #2563eb; /* Trustworthy blue */
            --primary-dark: #1d4ed8;
            --primary-light: #dbeafe;
            --secondary: #dc2626; /* For warnings/important */
            --accent: #059669; /* For positive actions */
            --dark: #1f2937;
            --gray-800: #374151;
            --gray-600: #4b5563;
            --gray-400: #9ca3af;
            --gray-200: #e5e7eb;
            --gray-100: #f3f4f6;
            --light: #ffffff;
            --radius-lg: 12px;
            --radius-md: 8px;
            --radius-sm: 4px;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.7;
            color: var(--gray-800);
            background-color: var(--light);
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        .site-header {
            padding: 2.5rem 0 1.5rem;
            border-bottom: 1px solid var(--gray-200);
            margin-bottom: 2.5rem;
        }
        .site-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 0.75rem;
        }
        .site-logo {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 700;
            font-size: 1.2rem;
        }
        .site-name {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary);
        }
        .site-name a {
            color: inherit;
            text-decoration: none;
            transition: var(--transition);
        }
        .site-name a:hover {
            color: var(--primary-dark);
        }
        .page-title {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--dark);
            line-height: 1.2;
            margin-bottom: 0.75rem;
            background: linear-gradient(90deg, var(--primary), var(--dark));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .page-subtitle {
            font-size: 1.25rem;
            color: var(--gray-600);
            max-width: 800px;
            font-weight: 400;
        }

        /* Main Layout - Two Column with Sidebar */
        .main-container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 3rem;
            margin-bottom: 4rem;
        }
        @media (min-width: 1024px) {
            .main-container {
                grid-template-columns: 2fr 1fr;
            }
        }

        /* Content Section Styling */
        .content-section {
            margin-bottom: 3rem;
        }
        .section-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            font-weight: 700;
            border-radius: 50%;
            margin-right: 12px;
            font-size: 1rem;
        }
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
        }
        .subsection-title {
            font-size: 1.4rem;
            font-weight: 600;
            color: var(--dark);
            margin: 2rem 0 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--gray-200);
        }
        .subsection-number {
            color: var(--primary);
            font-weight: 700;
            margin-right: 8px;
        }

        /* Article Content */
        .article-content {
            background: var(--light);
            padding: 0 0.5rem;
        }
        .article-content p {
            margin-bottom: 1.5rem;
            font-size: 1.05rem;
        }
        .article-content ul, .article-content ol {
            margin-bottom: 1.5rem;
            padding-left: 1.8rem;
        }
        .article-content li {
            margin-bottom: 0.75rem;
            position: relative;
        }
        .article-content ul li:before {
            content: "•";
            color: var(--primary);
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: -1em;
            position: absolute;
            left: 0;
        }
        .highlight-box {
            background: linear-gradient(135deg, var(--primary-light), #eff6ff);
            border-left: 4px solid var(--primary);
            padding: 1.5rem;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            margin: 2rem 0;
        }
        .warning-box {
            background: linear-gradient(135deg, #fef2f2, #fef2f2);
            border-left: 4px solid var(--secondary);
            padding: 1.5rem;
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            margin: 2rem 0;
        }
        .highlight-box h4, .warning-box h4 {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--dark);
        }

        /* Tables */
        .fine-table {
            width: 100%;
            border-collapse: collapse;
            margin: 2rem 0;
            box-shadow: var(--shadow-md);
            border-radius: var(--radius-md);
            overflow: hidden;
        }
        .fine-table th {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            font-weight: 600;
            padding: 1.25rem 1rem;
            text-align: left;
        }
        .fine-table td {
            padding: 1rem;
            border-bottom: 1px solid var(--gray-200);
        }
        .fine-table tr:nth-child(even) {
            background-color: var(--gray-100);
        }
        .fine-table tr:hover {
            background-color: var(--primary-light);
        }
        .table-caption {
            font-size: 0.9rem;
            color: var(--gray-600);
            margin-top: 0.5rem;
            text-align: center;
            font-style: italic;
        }

        /* Sidebar Calculator */
        .sidebar {
            position: sticky;
            top: 2rem;
            height: fit-content;
        }
        .calculator-card {
            background: white;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            margin-bottom: 2rem;
            border: 1px solid var(--gray-200);
        }
        .calculator-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            padding: 1.75rem;
            text-align: center;
        }
        .calculator-header h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        .calculator-header p {
            opacity: 0.9;
            font-size: 0.95rem;
        }
        .calculator-body {
            padding: 1.75rem;
        }
        .form-group {
            margin-bottom: 1.5rem;
        }
        .form-group label {
            display: block;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--dark);
            font-size: 0.95rem;
        }
        .form-group select, .form-group input {
            width: 100%;
            padding: 0.9rem 1rem;
            border: 2px solid var(--gray-200);
            border-radius: var(--radius-md);
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            background-color: white;
            transition: var(--transition);
            cursor: pointer;
        }
        .form-group select:focus, .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        .info-hint {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.85rem;
            color: var(--gray-600);
            margin-top: 0.5rem;
        }
        .info-hint i {
            color: var(--primary);
        }
        .calculate-btn {
            width: 100%;
            background: linear-gradient(135deg, var(--accent), #047857);
            color: white;
            border: none;
            padding: 1.1rem;
            border-radius: var(--radius-md);
            font-weight: 700;
            font-size: 1.1rem;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .calculate-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        .results-container {
            background: var(--gray-100);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            margin-top: 1.5rem;
            border: 1px solid var(--gray-200);
        }
        .result-row {
            display: flex;
            justify-content: space-between;
            padding: 0.9rem 0;
            border-bottom: 1px solid var(--gray-200);
        }
        .result-row:last-child {
            border-bottom: none;
        }
        .result-label {
            font-weight: 500;
            color: var(--gray-800);
        }
        .result-value {
            font-weight: 600;
            color: var(--dark);
        }
        .result-total {
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--secondary);
            padding-top: 1rem;
            margin-top: 1rem;
            border-top: 2px solid var(--gray-400);
        }
        .insurance-impact {
            background: linear-gradient(135deg, #fef3c7, #fef3c7);
            border-radius: var(--radius-md);
            padding: 1.25rem;
            margin-top: 1.5rem;
            border-left: 4px solid #d97706;
        }
        .insurance-impact h4 {
            color: #92400e;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* FAQ Section */
        .faq-section {
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 1px solid var(--gray-200);
        }
        .faq-item {
            margin-bottom: 1.5rem;
            border: 1px solid var(--gray-200);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: var(--transition);
        }
        .faq-item:hover {
            border-color: var(--primary);
        }
        .faq-question {
            padding: 1.25rem;
            background: var(--gray-100);
            font-weight: 600;
            color: var(--dark);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .faq-answer {
            padding: 0 1.25rem;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        }
        .faq-answer.active {
            padding: 1.25rem;
            max-height: 500px;
        }
        .faq-icon {
            transition: transform 0.3s ease;
        }
        .faq-item.active .faq-icon {
            transform: rotate(180deg);
        }

        /* Disclaimer */
        .legal-disclaimer {
            background: linear-gradient(135deg, #fef2f2, #fee2e2);
            border-radius: var(--radius-lg);
            padding: 2rem;
            margin: 3rem 0;
            border: 1px solid #fecaca;
        }
        .disclaimer-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 1rem;
        }
        .disclaimer-header i {
            color: var(--secondary);
            font-size: 1.5rem;
        }
        .disclaimer-header h3 {
            color: var(--secondary);
        }

        /* Footer */
        .site-footer {
            padding: 3rem 0;
            border-top: 1px solid var(--gray-200);
            margin-top: 3rem;
            text-align: center;
            color: var(--gray-600);
        }
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        .footer-links a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
        }
        .footer-links a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }
        .copyright {
            font-size: 0.9rem;
            margin-top: 1rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .page-title {
                font-size: 2.2rem;
            }
            .section-title {
                font-size: 1.6rem;
            }
            .subsection-title {
                font-size: 1.2rem;
            }
            .fine-table {
                display: block;
                overflow-x: auto;
            }
            .calculator-header, .calculator-body {
                padding: 1.5rem;
            }
        }
    </style>
    <header class="site-header">
        <div class="site-brand">
            <div class="site-logo">24</div>
            <div class="site-name"><a href="https://24car-repair.com/">24car-repair.com</a></div>
        </div>
        <h1 class="page-title">New Mexico Traffic Ticket Calculator &#038; Complete Guide</h1>
        <p class="page-subtitle">Understand fines, calculate costs, learn about penalties, and discover how to handle traffic citations in New Mexico. Includes detailed fee breakdowns by county and violation type.</p>
    </header>

    <div class="main-container">
        <!-- Main Content -->
        <main class="article-content">
            <section class="content-section">
                <h2 class="section-title"><span class="section-number">1</span> Understanding New Mexico Traffic Tickets</h2>
                <p>Receiving a traffic ticket in New Mexico involves more than just paying a simple fine. The state operates on a <strong>point system</strong> where different violations carry specific point values. Accumulating too many points can lead to license suspension, increased insurance rates, and mandatory driving courses.</p>
                
                <p>New Mexico&#8217;s traffic enforcement is governed by the <strong>New Mexico Statutes Annotated (NMSA)</strong> Chapter 66, which outlines motor vehicle laws. The state also imposes mandatory fees and assessments on top of base fines, making the total cost significantly higher than the ticket amount shown by the officer.</p>
                
                <div class="highlight-box">
                    <h4>Key Insight: The Hidden Costs</h4>
                    <p>A $150 speeding ticket in Bernalillo County can actually cost over $400 when you include the state penalty assessment, court costs, and technology fees. Over 3-5 years, insurance increases could add another $1,500-$2,500 to the total expense.</p>
                </div>
            </section>

            <section class="content-section">
                <h2 class="section-title"><span class="section-number">2</span> New Mexico Fine Structure &#038; Fee Breakdown</h2>
                
                <h3 class="subsection-title"><span class="subsection-number">2.1</span> Base Fines by Violation Type</h3>
                <p>Base fines in New Mexico vary by violation severity and location. Municipalities and counties can set their own fine schedules within state guidelines. Below are typical base fines for common violations:</p>
                
                <table class="fine-table">
                    <thead>
                        <tr>
                            <th>Violation Type</th>
                            <th>Typical Base Fine</th>
                            <th>NM Points</th>
                            <th>Insurance Impact</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Speeding 1-10 mph over limit</td>
                            <td>$75 &#8211; $100</td>
                            <td>3</td>
                            <td>15-25% increase</td>
                        </tr>
                        <tr>
                            <td>Speeding 11-15 mph over limit</td>
                            <td>$100 &#8211; $150</td>
                            <td>4</td>
                            <td>20-30% increase</td>
                        </tr>
                        <tr>
                            <td>Speeding 16-20 mph over limit</td>
                            <td>$150 &#8211; $200</td>
                            <td>5</td>
                            <td>25-35% increase</td>
                        </tr>
                        <tr>
                            <td>Speeding 20+ mph over limit</td>
                            <td>$200 &#8211; $300+</td>
                            <td>6</td>
                            <td>30-50% increase</td>
                        </tr>
                        <tr>
                            <td>Running Red Light/Stop Sign</td>
                            <td>$125 &#8211; $175</td>
                            <td>5</td>
                            <td>25-40% increase</td>
                        </tr>
                        <tr>
                            <td>No Proof of Insurance</td>
                            <td>$300 &#8211; $500</td>
                            <td>0*</td>
                            <td>50-100% increase</td>
                        </tr>
                        <tr>
                            <td>Expired Registration (>30 days)</td>
                            <td>$50 &#8211; $100</td>
                            <td>0</td>
                            <td>10-15% increase</td>
                        </tr>
                        <tr>
                            <td>No Seat Belt (Driver/Adult)</td>
                            <td>$25 &#8211; $50</td>
                            <td>0</td>
                            <td>5-10% increase</td>
                        </tr>
                    </tbody>
                </table>
                <p class="table-caption">*No insurance carries no points but results in mandatory SR-22 filing and severe insurance consequences.</p>
                
                <h3 class="subsection-title"><span class="subsection-number">2.2</span> Mandatory Additional Fees &#038; Assessments</h3>
                <p>New Mexico adds several mandatory fees to every traffic ticket. These are non-negotiable and apply regardless of the violation:</p>
                
                <ul>
                    <li><strong>State Penalty Assessment (NMSA 66-8-116.4):</strong> 45% of the base fine. This fee goes to state trauma centers, spinal cord injury funds, and brain injury services.</li>
                    <li><strong>Court Costs:</strong> Vary by county from $25 to $50. These cover administrative expenses of the court system.</li>
                    <li><strong>Technology Fee:</strong> $3-10 for court technology fund.</li>
                    <li><strong>Judicial Education Fee:</strong> $3-5 for judge training programs.</li>
                    <li><strong>Driver Responsibility Fee:</strong> Additional penalty based on violation severity and driving history.</li>
                </ul>
                
                <div class="warning-box">
                    <h4>Critical Deadline Information</h4>
                    <p>New Mexico traffic tickets typically require a response within <strong>15-30 days</strong> depending on the county. Failure to respond can result in additional late fees, license suspension, and even a bench warrant for your arrest. Always check your specific ticket for the exact deadline.</p>
                </div>
            </section>

            <section class="content-section">
                <h2 class="section-title"><span class="section-number">3</span> County-Specific Variations</h2>
                <p>New Mexico&#8217;s 33 counties each have slightly different fee structures and court procedures. Here are key differences in major jurisdictions:</p>
                
                <h3 class="subsection-title"><span class="subsection-number">3.1</span> Bernalillo County (Albuquerque Metro)</h3>
                <p>The state&#8217;s most populous county uses the <strong>Metropolitan Court</strong> system. Court costs are typically $35-40, and the court offers online payment and defensive driving options for eligible violations. Albuquerque has specific ordinances that can affect fines for certain violations within city limits.</p>
                
                <h3 class="subsection-title"><span class="subsection-number">3.2</span> Doña Ana County (Las Cruces Area)</h3>
                <p>Magistrate Court handles traffic violations with court costs around $30. The county is known for strict enforcement on I-10 and I-25 corridors, particularly near the Texas border.</p>
                
                <h3 class="subsection-title"><span class="subsection-number">3.3</span> Santa Fe County</h3>
                <p>Higher-than-average court costs (around $40) and strict enforcement of speeding in historic districts. The Santa Fe County Magistrate Court offers traffic school for point reduction.</p>
            </section>

            <section class="content-section">
                <h2 class="section-title"><span class="section-number">4</span> The Point System &#038; License Consequences</h2>
                
                <p>New Mexico&#8217;s Motor Vehicle Division (MVD) tracks points on your driving record:</p>
                <ul>
                    <li><strong>3-5 points:</strong> Warning letter from MVD</li>
                    <li><strong>6-7 points:</strong> Mandatory driver improvement interview</li>
                    <li><strong>8-11 points:</strong> 3-month license suspension</li>
                    <li><strong>12+ points:</strong> 12-month license suspension</li>
                </ul>
                
                <p>Points remain on your record for <strong>12 months from the violation date</strong>. Accumulating 7 or more points in 12 months triggers MVD action. Taking an approved defensive driving course can remove 3 points from your record once every 12 months.</p>
            </section>

            <section class="content-section">
                <h2 class="section-title"><span class="section-number">5</span> Insurance Impact Analysis</h2>
                
                <p>Insurance companies in New Mexico typically raise rates after a traffic violation for <strong>3-5 years</strong>. The increase depends on:</p>
                <ol>
                    <li>Violation severity (more points = higher increase)</li>
                    <li>Your previous driving record</li>
                    <li>Your age and years of driving experience</li>
                    <li>The insurance company&#8217;s specific rating algorithm</li>
                </ol>
                
                <p>For a driver with a previously clean record and standard coverage, expect these approximate annual increases:</p>
                <ul>
                    <li>Minor violation (seat belt, expired registration): 5-15% ($75-$225 annually)</li>
                    <li>Moderate speeding (10-15 mph over): 20-35% ($300-$525 annually)</li>
                    <li>Major violation (20+ mph over, reckless driving): 50-100%+ ($750-$1,500+ annually)</li>
                </ul>
            </section>

            <section class="content-section">
                <h2 class="section-title"><span class="section-number">6</span> Legal Options &#038; Defense Strategies</h2>
                
                <h3 class="subsection-title"><span class="subsection-number">6.1</span> Plea Options in New Mexico</h3>
                <p>When you receive a traffic ticket, you typically have three options:</p>
                
                <ul>
                    <li><strong>Guilty:</strong> Pay the full fine, accept points on your license</li>
                    <li><strong>No Contest (Nolo Contendere):</strong> Pay fine without admitting guilt (still get points)</li>
                    <li><strong>Not Guilty:</strong> Request a court hearing to contest the ticket</li>
                </ul>
                
                <h3 class="subsection-title"><span class="subsection-number">6.2</span> Defensive Driving School Option</h3>
                <p>Many New Mexico courts allow eligible drivers to attend defensive driving school to:</p>
                <ul>
                    <li>Dismiss the ticket (no points on record)</li>
                    <li>Remove 3 existing points from your record</li>
                    <li>Satisfy court requirements without insurance notification</li>
                </ul>
                
                <p>Eligibility typically requires a clean driving record for 12 months, no commercial driver&#8217;s license, and the violation must be a minor moving violation (not DUI, reckless driving, etc.).</p>
                
                <div class="highlight-box">
                    <h4>Pro Tip: Always Consider Contesting</h4>
                    <p>Even if you were technically guilty, contesting a ticket can sometimes lead to reduced charges or fines. Officers don&#8217;t always appear in court, which may result in dismissal. Many courts also offer pre-trial conferences where prosecutors may offer plea deals.</p>
                </div>
            </section>

            <!-- FAQ Section -->
            <section class="faq-section">
                <h2 class="section-title"><span class="section-number">7</span> Frequently Asked Questions</h2>
                
                <div class="faq-item">
                    <div class="faq-question">How long do points stay on my New Mexico driving record? <i class="fas fa-chevron-down faq-icon"></i></div>
                    <div class="faq-answer">
                        <p>Points remain on your New Mexico driving record for <strong>12 months from the violation date</strong>. However, the violation itself stays on your record for 3-5 years and is visible to insurance companies. Accumulating 7 or more points within any 12-month period triggers MVD action.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">Can I take defensive driving to avoid points on my license? <i class="fas fa-chevron-down faq-icon"></i></div>
                    <div class="faq-answer">
                        <p>Yes, if you&#8217;re eligible. Many New Mexico courts allow defensive driving course completion for ticket dismissal on minor violations. You must typically have a clean record for 12 months, not hold a CDL, and the violation must be eligible. You can also take a course to remove 3 existing points from your record once every 12 months.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">What happens if I ignore a New Mexico traffic ticket? <i class="fas fa-chevron-down faq-icon"></i></div>
                    <div class="faq-answer">
                        <p>Ignoring a ticket has serious consequences: (1) Additional late fees (typically $10-30 per month), (2) License suspension, (3) Possible bench warrant for your arrest, (4) Increased insurance rates when discovered, (5) Additional penalties if stopped again. Always respond within the deadline on your ticket.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">How much will my insurance increase after a speeding ticket? <i class="fas fa-chevron-down faq-icon"></i></div>
                    <div class="faq-answer">
                        <p>For a standard driver with a previously clean record, expect 20-35% increase for moderate speeding (11-15 mph over). This typically lasts 3-5 years. For a driver paying $1,200 annually, that&#8217;s an additional $720-$2,100 over 3 years. More severe violations can cause 50-100% increases or even policy non-renewal.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">Can I pay my New Mexico traffic ticket online? <i class="fas fa-chevron-down faq-icon"></i></div>
                    <div class="faq-answer">
                        <p>Most New Mexico counties offer online payment options through their court websites. You&#8217;ll need your citation number and possibly your driver&#8217;s license number. However, paying online typically means pleading guilty and accepting all points. Check your specific county court website for online payment portals.</p>
                    </div>
                </div>
            </section>

            <!-- Legal Disclaimer -->
            <div class="legal-disclaimer">
                <div class="disclaimer-header">
                    <i class="fas fa-exclamation-triangle"></i>
                    <h3>Important Legal Disclaimer</h3>
                </div>
                <p><strong>This guide and calculator provide estimates only.</strong> Actual traffic ticket costs in New Mexico vary by specific violation, county, court, judge&#8217;s discretion, and your driving history. This information is for educational purposes and does not constitute legal advice. Always verify fines with the specific court listed on your ticket and consider consulting with a traffic attorney for legal matters. The calculator estimates are based on publicly available fee schedules but may not reflect recent changes or all possible fees.</p>
                <p style="margin-top: 1rem;"><strong>Official Resource:</strong> For definitive information, visit the <a href="https://www.nmcourts.gov/" target="_blank" style="color: var(--secondary); font-weight: 600;" rel="noopener">New Mexico Courts Website</a> or contact the court listed on your citation directly.</p>
            </div>
        </main>

        <!-- Sidebar with Calculator -->
        <aside class="sidebar">
            <div class="calculator-card">
                <div class="calculator-header">
                    <h3>NM Ticket Cost Calculator</h3>
                    <p>Estimate your total ticket expenses</p>
                </div>
                <div class="calculator-body">
                    <div class="form-group">
                        <label for="violationType"><i class="fas fa-car-crash"></i> Violation Type</label>
                        <select id="violationType">
                            <option value="speeding1">Speeding 1-10 mph over</option>
                            <option value="speeding2">Speeding 11-15 mph over</option>
                            <option value="speeding3">Speeding 16-20 mph over</option>
                            <option value="speeding4">Speeding 20+ mph over</option>
                            <option value="redlight">Red Light / Stop Sign</option>
                            <option value="noinsurance">No Proof of Insurance</option>
                            <option value="expiredreg">Expired Registration</option>
                            <option value="seatbelt">No Seat Belt</option>
                            <option value="reckless">Reckless Driving</option>
                        </select>
                        <div class="info-hint">
                            <i class="fas fa-info-circle"></i>
                            <span>More severe violations have higher fines &#038; points</span>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label for="county"><i class="fas fa-map-marker-alt"></i> County</label>
                        <select id="county">
                            <option value="bernalillo">Bernalillo County</option>
                            <option value="donaana">Doña Ana County</option>
                            <option value="sandoval">Sandoval County</option>
                            <option value="santafe">Santa Fe County</option>
                            <option value="valencia">Valencia County</option>
                            <option value="sanjuan">San Juan County</option>
                            <option value="other">Other County</option>
                        </select>
                        <div class="info-hint">
                            <i class="fas fa-info-circle"></i>
                            <span>Court costs vary by county ($25-$50)</span>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label for="drivingRecord"><i class="fas fa-clipboard-list"></i> Driving Record (3 years)</label>
                        <select id="drivingRecord">
                            <option value="clean">Clean (no tickets)</option>
                            <option value="1ticket">1 Previous Ticket</option>
                            <option value="2tickets">2+ Previous Tickets</option>
                            <option value="suspended">Previous Suspension</option>
                        </select>
                        <div class="info-hint">
                            <i class="fas fa-info-circle"></i>
                            <span>Worse records increase penalty assessments</span>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <label for="insuranceType"><i class="fas fa-shield-alt"></i> Current Annual Insurance</label>
                        <select id="insuranceType">
                            <option value="minimum">Minimum Coverage ($800)</option>
                            <option value="standard" selected>Standard Coverage ($1,200)</option>
                            <option value="premium">Premium Coverage ($1,800)</option>
                            <option value="custom">Custom Amount</option>
                        </select>
                    </div>
                    
                    <button class="calculate-btn" id="calculateButton">
                        <i class="fas fa-calculator"></i> Calculate Total Cost
                    </button>
                    
                    <div class="results-container" id="resultsContainer" style="display: none;">
                        <h4 style="margin-bottom: 1rem; color: var(--dark);">Estimated Cost Breakdown</h4>
                        
                        <div class="result-row">
                            <span class="result-label">Base Fine:</span>
                            <span class="result-value" id="baseFine">$&#8211;</span>
                        </div>
                        
                        <div class="result-row">
                            <span class="result-label">State Penalty (45%):</span>
                            <span class="result-value" id="statePenalty">$&#8211;</span>
                        </div>
                        
                        <div class="result-row">
                            <span class="result-label">Court Costs:</span>
                            <span class="result-value" id="courtCosts">$&#8211;</span>
                        </div>
                        
                        <div class="result-row">
                            <span class="result-label">Driver Responsibility Fee:</span>
                            <span class="result-value" id="responsibilityFee">$&#8211;</span>
                        </div>
                        
                        <div class="result-row result-total">
                            <span class="result-label">Total Ticket Cost:</span>
                            <span class="result-value" id="totalTicketCost">$&#8211;</span>
                        </div>
                        
                        <div class="insurance-impact">
                            <h4><i class="fas fa-chart-line"></i> Insurance Impact</h4>
                            <p style="margin-bottom: 0.5rem;"><strong>Annual Increase:</strong> <span id="annualIncrease">$&#8211;</span></p>
                            <p><strong>3-Year Total Impact:</strong> <span id="threeYearImpact">$&#8211;</span></p>
                            <p style="font-size: 0.85rem; margin-top: 0.5rem;">Insurance rates typically increase for 3-5 years after a violation.</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="calculator-card" style="background: linear-gradient(135deg, #f0f9ff, #e0f2fe);">
                <div class="calculator-body">
                    <h3 style="color: var(--primary); margin-bottom: 1rem;"><i class="fas fa-car"></i> Vehicle Maintenance Connection</h3>
                    <p style="margin-bottom: 1.5rem;">Well-maintained vehicles are less likely to have equipment violations (bad lights, worn tires, etc.) that can lead to tickets.</p>
                    <a href="https://24car-repair.com/" style="display: block; text-align: center; background: var(--primary); color: white; padding: 0.9rem; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; transition: var(--transition);">
                        <i class="fas fa-wrench"></i> Visit 24car-repair.com
                    </a>
                </div>
            </div>
        </aside>
    </div>

    <footer class="site-footer">
        <div class="footer-links">
            <a href="https://24car-repair.com/">Home</a>
            <a href="https://24car-repair.com/services">Auto Services</a>
            <a href="https://www.nmcourts.gov/" target="_blank" rel="noopener">NM Courts</a>
            <a href="https://www.mvd.newmexico.gov/" target="_blank" rel="noopener">NM MVD</a>
        </div>
        <div class="copyright">
            <p>© <span id="currentYear"></span> 24car-repair.com. This traffic ticket guide is for informational purposes only. We are not a law firm and do not provide legal services.</p>
            <p style="margin-top: 0.5rem; font-size: 0.85rem;">All calculations are estimates based on New Mexico fee schedules. Verify all information with official sources.</p>
        </div>
    </footer>

    <script>
        // Set current year in footer
        document.getElementById('currentYear').textContent = new Date().getFullYear();
        
        // Calculator Data
        const calculatorData = {
            violations: {
                'speeding1': { base: 85, points: 3, insurMult: 1.20 },
                'speeding2': { base: 125, points: 4, insurMult: 1.30 },
                'speeding3': { base: 175, points: 5, insurMult: 1.40 },
                'speeding4': { base: 275, points: 6, insurMult: 1.60 },
                'redlight': { base: 150, points: 5, insurMult: 1.45 },
                'noinsurance': { base: 400, points: 0, insurMult: 2.00 },
                'expiredreg': { base: 75, points: 0, insurMult: 1.15 },
                'seatbelt': { base: 40, points: 0, insurMult: 1.10 },
                'reckless': { base: 500, points: 8, insurMult: 2.50 }
            },
            counties: {
                'bernalillo': { courtCost: 38, techFee: 8 },
                'donaana': { courtCost: 32, techFee: 6 },
                'sandoval': { courtCost: 35, techFee: 7 },
                'santafe': { courtCost: 42, techFee: 9 },
                'valencia': { courtCost: 30, techFee: 5 },
                'sanjuan': { courtCost: 33, techFee: 6 },
                'other': { courtCost: 30, techFee: 5 }
            },
            recordMultiplier: {
                'clean': 1.0,
                '1ticket': 1.15,
                '2tickets': 1.35,
                'suspended': 1.75
            },
            insuranceBase: {
                'minimum': 800,
                'standard': 1200,
                'premium': 1800
            }
        };
        
        // Calculate function
        document.getElementById('calculateButton').addEventListener('click', function() {
            const violation = document.getElementById('violationType').value;
            const county = document.getElementById('county').value;
            const record = document.getElementById('drivingRecord').value;
            const insurance = document.getElementById('insuranceType').value;
            
            // Get base values
            const baseFine = calculatorData.violations[violation].base;
            const statePenalty = baseFine * 0.45; // 45% state assessment
            const courtCosts = calculatorData.counties[county].courtCost + calculatorData.counties[county].techFee;
            const responsibilityFee = baseFine * 0.12 * calculatorData.recordMultiplier[record];
            
            // Calculate totals
            const totalTicket = baseFine + statePenalty + courtCosts + responsibilityFee;
            
            // Calculate insurance impact
            let insuranceBase;
            if (insurance === 'custom') {
                insuranceBase = 1200; // Default if custom not implemented
            } else {
                insuranceBase = calculatorData.insuranceBase[insurance];
            }
            
            const insurMult = calculatorData.violations[violation].insurMult;
            const annualIncrease = (insuranceBase * insurMult) - insuranceBase;
            const threeYearImpact = annualIncrease * 3;
            
            // Update display
            document.getElementById('baseFine').textContent = `$${baseFine.toFixed(2)}`;
            document.getElementById('statePenalty').textContent = `$${statePenalty.toFixed(2)}`;
            document.getElementById('courtCosts').textContent = `$${courtCosts.toFixed(2)}`;
            document.getElementById('responsibilityFee').textContent = `$${responsibilityFee.toFixed(2)}`;
            document.getElementById('totalTicketCost').textContent = `$${totalTicket.toFixed(2)}`;
            document.getElementById('annualIncrease').textContent = `$${annualIncrease.toFixed(0)}`;
            document.getElementById('threeYearImpact').textContent = `$${threeYearImpact.toFixed(0)}`;
            
            // Show results
            document.getElementById('resultsContainer').style.display = 'block';
            
            // Scroll to results
            document.getElementById('resultsContainer').scrollIntoView({ behavior: 'smooth', block: 'nearest' });
        });
        
        // FAQ Toggle Functionality
        document.querySelectorAll('.faq-question').forEach(question => {
            question.addEventListener('click', () => {
                const answer = question.nextElementSibling;
                const item = question.parentElement;
                
                // Close other open FAQs
                document.querySelectorAll('.faq-answer').forEach(ans => {
                    if (ans !== answer && ans.classList.contains('active')) {
                        ans.classList.remove('active');
                        ans.previousElementSibling.parentElement.classList.remove('active');
                    }
                });
                
                // Toggle current FAQ
                answer.classList.toggle('active');
                item.classList.toggle('active');
            });
        });
        
        // Initialize calculator with default values
        window.addEventListener('DOMContentLoaded', () => {
            // Set a default calculation on page load
            setTimeout(() => {
                document.getElementById('calculateButton').click();
            }, 500);
        });
    </script>
]]></content:encoded>
					
					<wfw:commentRss>https://24car-repair.com/new-mexico-traffic-ticket-calculator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
