<?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 Jersey &#8211; 24 Car Repair</title>
	<atom:link href="https://24car-repair.com/tag/new-jersey/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:58:11 +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>New Jersey Car Sales Tax Calculator</title>
		<link>https://24car-repair.com/new-jersey-car-sales-tax-calculator/</link>
					<comments>https://24car-repair.com/new-jersey-car-sales-tax-calculator/#respond</comments>
		
		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Mon, 29 Dec 2025 09:56:23 +0000</pubDate>
				<category><![CDATA[Calculator]]></category>
		<category><![CDATA[New Jersey]]></category>
		<guid isPermaLink="false">https://24car-repair.com/?p=5113</guid>

					<description><![CDATA[New Jersey Car Sales Tax Calculator &#124; Complete Guide 2026 &#124; 24car-repair.com New Jersey Car Sales Tax Calculator &#038; Complete Guide Detailed analysis of NJ vehicle taxes with interactive calculator. Learn about the 6.625% tax rate, EV exemptions, $20,000 tax cap, and all DMV fees. 1 Understanding New Jersey&#8217;s Car Sales Tax Structure New Jersey&#8217;s [&#8230;]]]></description>
										<content:encoded><![CDATA[

    <title>New Jersey Car Sales Tax Calculator | Complete Guide 2026 | 24car-repair.com</title>
    <meta name="description" content="Detailed guide to New Jersey car sales tax with interactive calculator. Learn about NJ's 6.625% tax rate, EV exemptions, $20,000 tax cap, registration fees, and total cost calculations.">
    <meta name="keywords" content="New Jersey car sales tax calculator, NJ vehicle tax, NJ DMV fees, EV tax exemption NJ, used car tax cap NJ">
    <link rel="canonical" href="https://24car-repair.com/new-jersey-car-sales-tax-calculator">
    
    <style>
        /* Reset & Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        
        :root {
            --primary-blue: #1e40af;
            --secondary-blue: #3b82f6;
            --accent-green: #10b981;
            --warning-yellow: #f59e0b;
            --light-bg: #f8fafc;
            --card-bg: #ffffff;
            --text-dark: #1f2937;
            --text-medium: #4b5563;
            --text-light: #6b7280;
            --border-color: #e5e7eb;
            --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --radius-sm: 6px;
            --radius-md: 10px;
            --radius-lg: 14px;
        }
        
        body {
            background-color: var(--light-bg);
            color: var(--text-dark);
            line-height: 1.6;
            font-size: 16px;
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }
        
        /* Header Styles */
        .site-header {
            text-align: center;
            padding: 30px 0 40px;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 40px;
        }
        
        .site-title {
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 1px;
            color: var(--primary-blue);
            text-transform: uppercase;
            margin-bottom: 8px;
        }
        
        .main-heading {
            font-size: 42px;
            font-weight: 800;
            line-height: 1.2;
            color: var(--text-dark);
            margin-bottom: 15px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .sub-heading {
            font-size: 20px;
            color: var(--text-medium);
            max-width: 700px;
            margin: 0 auto 30px;
            font-weight: 400;
        }
        
        .publish-date {
            display: inline-block;
            background: #f3f4f6;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 14px;
            color: var(--text-light);
            margin-top: 15px;
        }
        
        /* Main Layout */
        .main-content {
            display: flex;
            gap: 40px;
            flex-wrap: wrap;
        }
        
        .article-content {
            flex: 3;
            min-width: 300px;
        }
        
        .sidebar {
            flex: 1;
            min-width: 300px;
        }
        
        /* Content Section Styling */
        .content-section {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: 40px;
            margin-bottom: 40px;
            box-shadow: var(--shadow-md);
        }
        
        .section-heading {
            display: flex;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--border-color);
        }
        
        .section-number {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            background: var(--primary-blue);
            color: white;
            font-size: 22px;
            font-weight: 700;
            border-radius: var(--radius-md);
            margin-right: 20px;
            flex-shrink: 0;
        }
        
        .section-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-dark);
        }
        
        /* Calculator Styles */
        .calculator-container {
            background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-lg);
            padding: 35px;
            margin: 30px 0;
        }
        
        .calculator-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .calculator-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 10px;
        }
        
        .calculator-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
            margin-bottom: 30px;
        }
        
        .form-group {
            margin-bottom: 0;
        }
        
        .form-group.full-width {
            grid-column: 1 / -1;
        }
        
        .form-label {
            display: block;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-dark);
            font-size: 16px;
        }
        
        .form-input, .form-select {
            width: 100%;
            padding: 15px 18px;
            border: 1px solid var(--border-color);
            border-radius: var(--radius-md);
            font-size: 16px;
            transition: all 0.2s;
            background: white;
        }
        
        .form-input:focus, .form-select:focus {
            outline: none;
            border-color: var(--secondary-blue);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        
        .checkbox-container {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 20px 0;
        }
        
        .checkbox-container input {
            width: 20px;
            height: 20px;
        }
        
        .calculate-button {
            background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
            color: white;
            border: none;
            padding: 18px 32px;
            font-size: 18px;
            font-weight: 600;
            border-radius: var(--radius-md);
            cursor: pointer;
            width: 100%;
            transition: all 0.3s;
            margin-top: 10px;
        }
        
        .calculate-button:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }
        
        /* Results Display */
        .results-container {
            background: white;
            border-radius: var(--radius-md);
            padding: 30px;
            margin-top: 35px;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-sm);
        }
        
        .results-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 25px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .result-row {
            display: flex;
            justify-content: space-between;
            padding: 15px 0;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .result-row.total {
            background: #f0f9ff;
            margin: 20px -30px -30px -30px;
            padding: 25px 30px;
            border-bottom: none;
            border-radius: 0 0 var(--radius-md) var(--radius-md);
        }
        
        .result-label {
            font-weight: 500;
            color: var(--text-medium);
        }
        
        .result-value {
            font-weight: 600;
            color: var(--text-dark);
        }
        
        .total .result-label {
            font-size: 18px;
        }
        
        .total .result-value {
            font-size: 28px;
            color: var(--primary-blue);
            font-weight: 700;
        }
        
        /* Table Styles */
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }
        
        .comparison-table th {
            background: var(--primary-blue);
            color: white;
            font-weight: 600;
            text-align: left;
            padding: 18px 20px;
        }
        
        .comparison-table td {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .comparison-table tr:nth-child(even) {
            background: #f9fafb;
        }
        
        .comparison-table tr:hover {
            background: #f3f4f6;
        }
        
        /* Highlight Boxes */
        .highlight-box {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-left: 5px solid var(--warning-yellow);
            border-radius: var(--radius-md);
            padding: 25px;
            margin: 30px 0;
        }
        
        .highlight-title {
            font-weight: 700;
            color: #92400e;
            margin-bottom: 12px;
            font-size: 18px;
        }
        
        .ev-savings-box {
            background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
            border-left: 5px solid var(--accent-green);
        }
        
        .ev-savings-box .highlight-title {
            color: #065f46;
        }
        
        /* Sidebar Components */
        .sidebar-card {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-color);
        }
        
        .sidebar-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .faq-item {
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .faq-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .faq-question {
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 10px;
            font-size: 17px;
        }
        
        .faq-answer {
            color: var(--text-medium);
            line-height: 1.6;
        }
        
        .quick-fact {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 20px;
            padding: 15px;
            background: #f9fafb;
            border-radius: var(--radius-md);
        }
        
        .fact-icon {
            background: var(--primary-blue);
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-weight: 700;
        }
        
        /* Footer */
        .site-footer {
            text-align: center;
            padding: 40px 0 30px;
            margin-top: 60px;
            border-top: 1px solid var(--border-color);
            color: var(--text-light);
            font-size: 15px;
        }
        
        .copyright {
            margin-top: 20px;
            font-size: 14px;
        }
        
        /* Responsive Design */
        @media (max-width: 1024px) {
            .main-content {
                flex-direction: column;
            }
            
            .calculator-grid {
                grid-template-columns: 1fr;
            }
            
            .main-heading {
                font-size: 36px;
            }
        }
        
        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }
            
            .site-header {
                padding: 20px 0 30px;
            }
            
            .main-heading {
                font-size: 32px;
            }
            
            .content-section {
                padding: 25px;
            }
            
            .section-title {
                font-size: 24px;
            }
            
            .calculator-container {
                padding: 25px;
            }
            
            .sidebar-card {
                padding: 25px;
            }
        }
        
        @media (max-width: 480px) {
            .main-heading {
                font-size: 28px;
            }
            
            .section-number {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }
            
            .section-title {
                font-size: 22px;
            }
            
            .content-section {
                padding: 20px;
            }
        }
        
        /* Print Styles */
        @media print {
            .calculate-button,
            .sidebar {
                display: none;
            }
            
            .content-section {
                box-shadow: none;
                border: 1px solid #ddd;
            }
        }
    </style>
    <div class="container">
        <!-- Header -->
        <header class="site-header">
            <h1 class="main-heading">New Jersey Car Sales Tax Calculator &#038; Complete Guide</h1>
            <p class="sub-heading">Detailed analysis of NJ vehicle taxes with interactive calculator. Learn about the 6.625% tax rate, EV exemptions, $20,000 tax cap, and all DMV fees.</p>
        </header>
        
        <div class="main-content">
            <!-- Main Article Content -->
            <div class="article-content">
                <!-- Section 1: Introduction -->
                <section class="content-section">
                    <div class="section-heading">
                        <div class="section-number">1</div>
                        <h2 class="section-title">Understanding New Jersey&#8217;s Car Sales Tax Structure</h2>
                    </div>
                    
                    <p>New Jersey&#8217;s vehicle taxation system represents one of the more consumer-friendly approaches in the Northeastern United States. With a base sales tax rate of 6.625%—significantly lower than neighboring states like New York (8%) and Pennsylvania (6%)—the Garden State offers competitive pricing for vehicle purchases. However, understanding the complete financial picture requires examining several unique provisions that can dramatically affect your final cost.</p>
                    
                    <div class="highlight-box">
                        <div class="highlight-title">Key NJ Tax Advantage</div>
                        <p>New Jersey maintains a uniform 6.625% sales tax rate statewide with <strong>no additional county or municipal taxes</strong> applied to vehicle purchases. This contrasts with many states where local taxes can add 1-3% to your total cost.</p>
                    </div>
                    
                    <p>The state&#8217;s tax structure incorporates three revolutionary provisions that set it apart: a complete exemption for electric vehicles through 2025, a $20,000 taxable value cap for private party used vehicle sales, and full deductibility of trade-in values from the taxable amount. These provisions can create savings scenarios unmatched in most other jurisdictions.</p>
                </section>
                
                <!-- Section 2: Interactive Calculator -->
                <section class="content-section">
                    <div class="section-heading">
                        <div class="section-number">2</div>
                        <h2 class="section-title">Interactive New Jersey Car Sales Tax Calculator</h2>
                    </div>
                    
                    <p>Use the calculator below to determine the exact tax liability and total cost for your specific vehicle purchase scenario in New Jersey. This tool incorporates all NJ-specific provisions including the EV exemption, used car tax cap, and trade-in deductions.</p>
                    
                    <div class="calculator-container">
                        <div class="calculator-header">
                            <h3 class="calculator-title">NJ Vehicle Tax Calculator</h3>
                            <p>Enter your vehicle details for an instant cost breakdown</p>
                        </div>
                        
                        <div class="calculator-grid">
                            <div class="form-group">
                                <label class="form-label">Vehicle Purchase Price ($)</label>
                                <input type="number" id="vehiclePrice" class="form-input" min="0" step="100" placeholder="e.g., 32,500" value="32500">
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">Vehicle Type</label>
                                <select id="vehicleType" class="form-select">
                                    <option value="gas">Gas/Diesel Vehicle</option>
                                    <option value="ev">Electric Vehicle (EV)</option>
                                    <option value="hybrid">Hybrid Vehicle</option>
                                    <option value="plugin">Plug-in Hybrid</option>
                                </select>
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">Sale Type</label>
                                <select id="saleType" class="form-select">
                                    <option value="dealer">Dealer Purchase (New/Used)</option>
                                    <option value="private">Private Party (Used)</option>
                                    <option value="lease">Lease Vehicle</option>
                                    <option value="outofstate">Out-of-State Purchase</option>
                                </select>
                            </div>
                            
                            <div class="form-group">
                                <label class="form-label">Vehicle Weight Class</label>
                                <select id="vehicleWeight" class="form-select">
                                    <option value="light">Under 2,700 lbs</option>
                                    <option value="medium" selected>2,700 &#8211; 3,799 lbs</option>
                                    <option value="heavy">3,800+ lbs</option>
                                    <option value="commercial">Commercial Vehicle</option>
                                </select>
                            </div>
                            
                            <div class="form-group full-width">
                                <label class="form-label">County of Registration</label>
                                <select id="county" class="form-select">
                                    <option value="default">All NJ Counties (No Local Tax)</option>
                                    <option value="bergen">Bergen County</option>
                                    <option value="middlesex">Middlesex County</option>
                                    <option value="essex">Essex County</option>
                                    <option value="monmouth">Monmouth County</option>
                                    <option value="hudson">Hudson County</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="checkbox-container">
                            <input type="checkbox" id="tradeInCheckbox" value="true">
                            <label for="tradeInCheckbox">I have a trade-in vehicle (value reduces taxable amount)</label>
                        </div>
                        
                        <div id="tradeInSection" style="display: none; margin: 20px 0;">
                            <label class="form-label">Trade-in Value ($)</label>
                            <input type="number" id="tradeInValue" class="form-input" min="0" step="100" placeholder="e.g., 8,500">
                        </div>
                        
                        <button id="calculateButton" class="calculate-button">Calculate Total Cost &#038; Tax Liability</button>
                        
                        <div class="results-container" id="resultsContainer" style="display: none;">
                            <h4 class="results-title">📋 Your NJ Vehicle Cost Breakdown</h4>
                            
                            <div class="result-row">
                                <span class="result-label">Vehicle Purchase Price</span>
                                <span class="result-value" id="resultPrice">$32,500.00</span>
                            </div>
                            
                            <div class="result-row" id="tradeInResultRow" style="display: none;">
                                <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">$32,500.00</span>
                            </div>
                            
                            <div class="result-row">
                                <span class="result-label">NJ Sales Tax (6.625%)</span>
                                <span class="result-value" id="resultTax">$2,153.13</span>
                            </div>
                            
                            <div class="result-row" id="evExemptionRow" style="display: none;">
                                <span class="result-label">EV Tax Exemption</span>
                                <span class="result-value" style="color: var(--accent-green);">-$2,153.13</span>
                            </div>
                            
                            <div class="result-row" id="taxCapRow" style="display: none;">
                                <span class="result-label">Used Car Tax Cap Applied</span>
                                <span class="result-value" style="color: var(--accent-green);">-$0.00</span>
                            </div>
                            
                            <div class="result-row">
                                <span class="result-label">Title Fee</span>
                                <span class="result-value">$60.00</span>
                            </div>
                            
                            <div class="result-row">
                                <span class="result-label">Registration Fee</span>
                                <span class="result-value" id="resultRegistration">$59.50</span>
                            </div>
                            
                            <div class="result-row">
                                <span class="result-label">Tire Fee (Environmental)</span>
                                <span class="result-value">$1.50</span>
                            </div>
                            
                            <div class="result-row" id="lemonLawRow">
                                <span class="result-label">Lemon Law Fund Fee</span>
                                <span class="result-value">$1.00</span>
                            </div>
                            
                            <div class="result-row total">
                                <span class="result-label">Total Estimated Cost to Register</span>
                                <span class="result-value" id="resultTotal">$34,775.13</span>
                            </div>
                        </div>
                    </div>
                </section>
                
                <!-- Section 3: NJ Tax Rate Analysis -->
                <section class="content-section">
                    <div class="section-heading">
                        <div class="section-number">3</div>
                        <h2 class="section-title">Detailed Breakdown of New Jersey&#8217;s 6.625% Sales Tax Rate</h2>
                    </div>
                    
                    <p>New Jersey&#8217;s statewide sales tax rate of 6.625% applies uniformly to all vehicle purchases, with no additional local taxes. This rate represents a significant reduction from the previous 7% rate that was in effect until 2018. The tax applies to the net purchase price after allowable deductions but before registration fees.</p>
                    
                    <h3 style="margin: 25px 0 15px; color: var(--text-dark);">3.1 Tax Calculation Formula</h3>
                    <p>The fundamental formula for calculating New Jersey car sales tax is:</p>
                    <div style="background: #f8fafc; padding: 20px; border-radius: var(--radius-md); margin: 20px 0; font-family: monospace;">
                        <strong>Taxable Amount = Purchase Price − Trade-in Value − Applicable Exemptions</strong><br>
                        <strong>Sales Tax = Taxable Amount × 0.06625</strong><br>
                        <strong>Total Cost = Purchase Price + Sales Tax + Registration Fees + Title Fees</strong>
                    </div>
                    
                    <h3 style="margin: 25px 0 15px; color: var(--text-dark);">3.2 Comparative Analysis with Neighboring States</h3>
                    <table class="comparison-table">
                        <thead>
                            <tr>
                                <th>State</th>
                                <th>Base Sales Tax</th>
                                <th>Maximum Local Tax</th>
                                <th>EV Tax Exemption</th>
                                <th>Used Car Tax Cap</th>
                                <th>Trade-in Deductible</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><strong>New Jersey</strong></td>
                                <td>6.625%</td>
                                <td>0%</td>
                                <td>Yes (100%)</td>
                                <td>$20,000</td>
                                <td>Yes</td>
                            </tr>
                            <tr>
                                <td>New York</td>
                                <td>4%</td>
                                <td>4.5%</td>
                                <td>No</td>
                                <td>None</td>
                                <td>Yes</td>
                            </tr>
                            <tr>
                                <td>Pennsylvania</td>
                                <td>6%</td>
                                <td>2%</td>
                                <td>No</td>
                                <td>None</td>
                                <td>Yes</td>
                            </tr>
                            <tr>
                                <td>Delaware</td>
                                <td>0%</td>
                                <td>0%</td>
                                <td>No</td>
                                <td>N/A</td>
                                <td>N/A</td>
                            </tr>
                            <tr>
                                <td>Maryland</td>
                                <td>6%</td>
                                <td>0%</td>
                                <td>Partial</td>
                                <td>None</td>
                                <td>Yes</td>
                            </tr>
                        </tbody>
                    </table>
                    
                    <div class="ev-savings-box highlight-box">
                        <div class="highlight-title">Electric Vehicle Tax Advantage</div>
                        <p>New Jersey offers a <strong>100% sales tax exemption on electric vehicles</strong> through December 31, 2025. This policy, part of the state&#8217;s EV Act of 2020, can save purchasers thousands of dollars. For example, a $50,000 EV would save $3,312.50 in sales tax compared to an equivalent gas-powered vehicle.</p>
                    </div>
                </section>
                
                <!-- Section 4: Fee Structure -->
                <section class="content-content-section">
                    <div class="section-heading">
                        <div class="section-number">4</div>
                        <h2 class="section-title">Complete NJ DMV Fee Schedule &#038; Additional Costs</h2>
                    </div>
                    
                    <p>Beyond sales tax, vehicle registration in New Jersey requires payment of several mandatory fees. These fees are standardized across the state and apply regardless of purchase type (dealer vs. private party).</p>
                    
                    <h3 style="margin: 25px 0 15px; color: var(--text-dark);">4.1 Registration Fee Schedule by Vehicle Weight</h3>
                    <table class="comparison-table">
                        <thead>
                            <tr>
                                <th>Vehicle Weight Class</th>
                                <th>Registration Fee</th>
                                <th>Duration</th>
                                <th>Common Vehicle Examples</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Under 2,700 lbs</td>
                                <td>$46.50</td>
                                <td>4 Years</td>
                                <td>Honda Civic, Toyota Corolla, Mini Cooper</td>
                            </tr>
                            <tr>
                                <td>2,700 &#8211; 3,799 lbs</td>
                                <td>$59.50</td>
                                <td>4 Years</td>
                                <td>Toyota Camry, Honda CR-V, Ford Escape</td>
                            </tr>
                            <tr>
                                <td>3,800+ lbs</td>
                                <td>$71.50</td>
                                <td>4 Years</td>
                                <td>Ford F-150, Chevrolet Tahoe, Large SUVs</td>
                            </tr>
                            <tr>
                                <td>Commercial Vehicles</td>
                                <td>$84.00</td>
                                <td>1 Year</td>
                                <td>Work Trucks, Delivery Vans</td>
                            </tr>
                        </tbody>
                    </table>
                    
                    <h3 style="margin: 25px 0 15px; color: var(--text-dark);">4.2 Additional Required Fees</h3>
                    <ul style="margin: 20px 0 20px 25px; color: var(--text-medium);">
                        <li><strong>Title Fee:</strong> $60 (one-time charge for certificate of ownership)</li>
                        <li><strong>Tire Fee:</strong> $1.50 (environmental fee for tire disposal/recycling)</li>
                        <li><strong>Lemon Law Fee:</strong> $1 (for new vehicles only, funds consumer protection program)</li>
                        <li><strong>License Plate Fee:</strong> Included in registration fee</li>
                        <li><strong>Documentation Fee:</strong> Varies by dealer (typically $300-$500, not state-mandated)</li>
                    </ul>
                    
                    <div class="highlight-box">
                        <div class="highlight-title">Total Fee Calculation Example</div>
                        <p>A midsize vehicle (3,200 lbs) purchased new would incur: <strong>$59.50</strong> (registration) + <strong>$60</strong> (title) + <strong>$1.50</strong> (tire) + <strong>$1</strong> (lemon law) = <strong>$122</strong> in mandatory state fees, plus applicable sales tax on the purchase price.</p>
                    </div>
                </section>
                
                <!-- Section 5: Special Provisions -->
                <section class="content-section">
                    <div class="section-heading">
                        <div class="section-number">5</div>
                        <h2 class="section-title">NJ&#8217;s Unique Tax Provisions: EV Exemption &#038; $20,000 Cap</h2>
                    </div>
                    
                    <h3 style="margin: 25px 0 15px; color: var(--text-dark);">5.1 Electric Vehicle Sales Tax Exemption</h3>
                    <p>New Jersey&#8217;s EV sales tax exemption, established under the &#8220;Electric Vehicle Act&#8221; (P.L.2019, c.362), represents one of the nation&#8217;s most aggressive EV adoption incentives. The exemption applies to:</p>
                    
                    <ul style="margin: 15px 0 20px 25px; color: var(--text-medium);">
                        <li>Battery Electric Vehicles (BEVs) with no gasoline engine</li>
                        <li>Plug-in Hybrid Electric Vehicles (PHEVs) with all-electric range of at least 25 miles</li>
                        <li>Fuel Cell Electric Vehicles (FCEVs)</li>
                    </ul>
                    
                    <p>The exemption is scheduled to expire on December 31, 2025, unless extended by the legislature. Vehicles must be purchased new or used from a licensed dealer—private party EV purchases still qualify for the exemption.</p>
                    
                    <h3 style="margin: 25px 0 15px; color: var(--text-dark);">5.2 $20,000 Taxable Value Cap for Used Cars</h3>
                    <p>For private party sales of used vehicles, New Jersey caps the taxable value at $20,000. This means:</p>
                    
                    <div style="background: #f8fafc; padding: 20px; border-radius: var(--radius-md); margin: 20px 0;">
                        <p><strong>Example Calculation:</strong> A used car purchased privately for $28,000 with a $5,000 trade-in.</p>
                        <p>Taxable Amount = $28,000 &#8211; $5,000 = $23,000<br>
                        <strong>BUT</strong> capped at $20,000 for private party sales<br>
                        Sales Tax = $20,000 × 0.06625 = $1,325 (instead of $1,523.75 without cap)<br>
                        <strong>Savings:</strong> $198.75</p>
                    </div>
                    
                    <p>This cap applies <strong>only</strong> to private party sales. Dealer purchases of used vehicles are taxed on the full purchase price (minus trade-in). The cap was established to encourage private sales and reduce the financial burden on used car buyers.</p>
                </section>
            </div>
            
            <!-- Sidebar -->
            <div class="sidebar">
                <!-- Quick Facts Card -->
                <div class="sidebar-card">
                    <h3 class="sidebar-title">📊 NJ Tax Quick Facts</h3>
                    
                    <div class="quick-fact">
                        <div class="fact-icon">6.625%</div>
                        <div>
                            <strong>State Sales Tax Rate</strong><br>
                            No local taxes added
                        </div>
                    </div>
                    
                    <div class="quick-fact">
                        <div class="fact-icon">$0</div>
                        <div>
                            <strong>EV Tax Through 2025</strong><br>
                            100% exemption for electric vehicles
                        </div>
                    </div>
                    
                    <div class="quick-fact">
                        <div class="fact-icon">$20K</div>
                        <div>
                            <strong>Used Car Tax Cap</strong><br>
                            Private sales taxed on first $20,000 only
                        </div>
                    </div>
                    
                    <div class="quick-fact">
                        <div class="fact-icon">100%</div>
                        <div>
                            <strong>Trade-in Deductible</strong><br>
                            Full value reduces taxable amount
                        </div>
                    </div>
                </div>
                
                <!-- FAQ Card -->
                <div class="sidebar-card">
                    <h3 class="sidebar-title">❓ NJ Car Tax FAQs</h3>
                    
                    <div class="faq-item">
                        <div class="faq-question">Q: Does New Jersey have county sales taxes on vehicles?</div>
                        <div class="faq-answer">A: No. New Jersey has a uniform 6.625% state sales tax with no additional county or municipal taxes applied to vehicle purchases.</div>
                    </div>
                    
                    <div class="faq-item">
                        <div class="faq-question">Q: When does the EV tax exemption expire?</div>
                        <div class="faq-answer">A: The current exemption is scheduled to end on December 31, 2025. However, the legislature has historically extended EV incentives, so check for updates before purchasing.</div>
                    </div>
                    
                    <div class="faq-item">
                        <div class="faq-question">Q: Can I deduct my trade-in from taxes if buying from a private party?</div>
                        <div class="faq-answer">A: Yes. Trade-in values are fully deductible from the taxable amount for both dealer and private party sales in New Jersey.</div>
                    </div>
                    
                    <div class="faq-item">
                        <div class="faq-question">Q: How is the $20,000 tax cap calculated with a trade-in?</div>
                        <div class="faq-answer">A: First subtract your trade-in value from the purchase price. If the remaining amount exceeds $20,000, you only pay tax on $20,000.</div>
                    </div>
                    
                    <div class="faq-item">
                        <div class="faq-question">Q: Are leased vehicles taxed differently?</div>
                        <div class="faq-answer">A: Yes. Leased vehicles are taxed on monthly payments rather than the vehicle price. Each monthly payment includes 6.625% sales tax.</div>
                    </div>
                    
                    <div class="faq-item">
                        <div class="faq-question">Q: What fees are mandatory for all vehicles?</div>
                        <div class="faq-answer">A: All vehicles require: Title fee ($60), Registration fee (varies by weight), Tire fee ($1.50). New vehicles add a $1 Lemon Law fee.</div>
                    </div>
                </div>
                
                <!-- Tax Scenarios Card -->
                <div class="sidebar-card">
                    <h3 class="sidebar-title">📈 Example Tax Scenarios</h3>
                    
                    <div style="margin-bottom: 20px;">
                        <strong>$35,000 Gas SUV (Dealer)</strong><br>
                        Tax: $2,318.75<br>
                        Fees: $122.00<br>
                        <strong>Total: $37,440.75</strong>
                    </div>
                    
                    <div style="margin-bottom: 20px;">
                        <strong>$35,000 EV (Dealer)</strong><br>
                        Tax: $0.00 (Exempt)<br>
                        Fees: $122.00<br>
                        <strong>Total: $35,122.00</strong>
                    </div>
                    
                    <div style="margin-bottom: 20px;">
                        <strong>$25,000 Used Car (Private, No Trade)</strong><br>
                        Tax: $1,325.00 ($20K cap)<br>
                        Fees: $122.00<br>
                        <strong>Total: $26,447.00</strong>
                    </div>
                    
                    <div>
                        <strong>$40,000 Truck (Dealer, $10K Trade)</strong><br>
                        Taxable: $30,000<br>
                        Tax: $1,987.50<br>
                        Fees: $122.00<br>
                        <strong>Total: $32,109.50</strong>
                    </div>
                </div>
                
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // DOM Elements
            const vehiclePriceInput = document.getElementById('vehiclePrice');
            const vehicleTypeSelect = document.getElementById('vehicleType');
            const saleTypeSelect = document.getElementById('saleType');
            const vehicleWeightSelect = document.getElementById('vehicleWeight');
            const tradeInCheckbox = document.getElementById('tradeInCheckbox');
            const tradeInSection = document.getElementById('tradeInSection');
            const tradeInValueInput = document.getElementById('tradeInValue');
            const calculateButton = document.getElementById('calculateButton');
            const resultsContainer = document.getElementById('resultsContainer');
            
            // Registration fee mapping
            const registrationFees = {
                'light': 46.50,
                'medium': 59.50,
                'heavy': 71.50,
                'commercial': 84.00
            };
            
            // Show/hide trade-in section
            tradeInCheckbox.addEventListener('change', function() {
                tradeInSection.style.display = this.checked ? 'block' : 'none';
                if (!this.checked) tradeInValueInput.value = '';
            });
            
            // Calculate button click
            calculateButton.addEventListener('click', calculateTax);
            
            // Perform initial calculation
            setTimeout(calculateTax, 300);
            
            function calculateTax() {
                // Get input values
                const vehiclePrice = parseFloat(vehiclePriceInput.value) || 0;
                const vehicleType = vehicleTypeSelect.value;
                const saleType = saleTypeSelect.value;
                const vehicleWeight = vehicleWeightSelect.value;
                const hasTradeIn = tradeInCheckbox.checked;
                const tradeInValue = hasTradeIn ? (parseFloat(tradeInValueInput.value) || 0) : 0;
                
                // Constants
                const taxRate = 0.06625; // 6.625%
                const titleFee = 60.00;
                const tireFee = 1.50;
                const lemonLawFee = (saleType === 'dealer' || saleType === 'lease') ? 1.00 : 0;
                
                // Get registration fee based on weight
                const registrationFee = registrationFees[vehicleWeight] || 59.50;
                
                // Calculate taxable amount
                let taxableAmount = Math.max(0, vehiclePrice - tradeInValue);
                
                // Apply NJ's used car tax cap for private party sales
                let taxCapApplied = false;
                let taxCapSavings = 0;
                
                if (saleType === 'private' && taxableAmount > 20000) {
                    taxCapApplied = true;
                    taxCapSavings = (taxableAmount - 20000) * taxRate;
                    taxableAmount = 20000;
                }
                
                // Calculate sales tax with EV exemption
                let salesTax = 0;
                let evExemption = false;
                
                if (vehicleType === 'ev' || vehicleType === 'plugin') {
                    evExemption = true;
                    salesTax = 0;
                } else {
                    salesTax = taxableAmount * taxRate;
                }
                
                // Calculate total cost
                const totalCost = vehiclePrice + salesTax + titleFee + registrationFee + tireFee + lemonLawFee - tradeInValue;
                
                // Update results display
                document.getElementById('resultPrice').textContent = formatCurrency(vehiclePrice);
                
                if (hasTradeIn && tradeInValue > 0) {
                    document.getElementById('tradeInResultRow').style.display = 'flex';
                    document.getElementById('resultTradeIn').textContent = '-' + formatCurrency(tradeInValue);
                } else {
                    document.getElementById('tradeInResultRow').style.display = 'none';
                }
                
                document.getElementById('resultTaxable').textContent = formatCurrency(taxableAmount);
                
                if (evExemption) {
                    document.getElementById('resultTax').textContent = '$0.00 (EV Exempt)';
                    document.getElementById('evExemptionRow').style.display = 'flex';
                    document.getElementById('evExemptionRow').querySelector('.result-value').textContent = 
                        '-' + formatCurrency(taxableAmount * taxRate);
                } else {
                    document.getElementById('resultTax').textContent = formatCurrency(salesTax);
                    document.getElementById('evExemptionRow').style.display = 'none';
                }
                
                if (taxCapApplied) {
                    document.getElementById('taxCapRow').style.display = 'flex';
                    document.getElementById('taxCapRow').querySelector('.result-value').textContent = 
                        '-' + formatCurrency(taxCapSavings);
                } else {
                    document.getElementById('taxCapRow').style.display = 'none';
                }
                
                document.getElementById('resultRegistration').textContent = formatCurrency(registrationFee);
                document.getElementById('lemonLawRow').style.display = lemonLawFee > 0 ? 'flex' : 'none';
                document.getElementById('resultTotal').textContent = formatCurrency(totalCost);
                
                // Show results container
                resultsContainer.style.display = 'block';
                
                // Smooth scroll to results on mobile
                if (window.innerWidth < 768) {
                    resultsContainer.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
                }
            }
            
            function formatCurrency(amount) {
                return '$' + amount.toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&#038;,');
            }
        });
    </script>
]]></content:encoded>
					
					<wfw:commentRss>https://24car-repair.com/new-jersey-car-sales-tax-calculator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>New Jersey DMV Practice Test</title>
		<link>https://24car-repair.com/new-jersey-dmv-practice-test/</link>
					<comments>https://24car-repair.com/new-jersey-dmv-practice-test/#respond</comments>
		
		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Mon, 29 Dec 2025 06:48:02 +0000</pubDate>
				<category><![CDATA[DMV Practice Test]]></category>
		<category><![CDATA[New Jersey DMV Practice Test]]></category>
		<category><![CDATA[New Jersey]]></category>
		<guid isPermaLink="false">https://24car-repair.com/?p=5048</guid>

					<description><![CDATA[NJ New Jersey DMV Practice Test Prepare for your New Jersey Driver&#8217;s License Exam Passing Score: 40 correct (80%) 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: [&#8230;]]]></description>
										<content:encoded><![CDATA[
 <style>
        :root {
            --primary-color: #0038A8;
            --secondary-color: #f2f2f2;
            --accent-color: #FFD100;
            --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);
            --nj-blue: #0038A8;
            --nj-yellow: #FFD100;
            --nj-red: #BF0A30;
        }
        
        * {
            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, #f0f8ff, #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(--nj-blue) 0%, #0040C0 100%);
            border-radius: 10px;
            color: white;
        }
        
        h1 {
            color: var(--nj-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,209,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 #e0e9ff;
            background: linear-gradient(135deg, #ffffff 0%, #f8fbff 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(--nj-blue);
        }
        
        .name-input:focus {
            border-color: var(--nj-blue);
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 56, 168, 0.1);
        }
        
        .name-label {
            font-weight: 600;
            color: var(--nj-blue);
        }
        
        .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(--nj-blue);
            color: white;
            border-color: var(--nj-blue);
            box-shadow: 0 4px 12px rgba(0, 56, 168, 0.2);
        }
        
        .test-info {
            background: #f0f8ff;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid var(--nj-blue);
            margin-bottom: 20px;
            text-align: center;
            border: 1px solid #d0e2ff;
        }
        
        .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 #e0e9ff;
        }
        
        .timer {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--nj-blue);
            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 #e0e9ff;
        }
        
        .question-card.active {
            display: block;
        }
        
        .question-number {
            color: var(--nj-blue);
            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(--nj-blue);
            background-color: rgba(0, 56, 168, 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(--nj-blue);
            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(--nj-blue);
            color: white;
        }
        
        .btn-primary:hover {
            background: #00287a;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 56, 168, 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: #333;
        }
        
        .btn-accent:hover {
            background: #e6b800;
            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(--nj-blue);
            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 #e0e9ff;
        }
        
        .results-container.show {
            display: block;
        }
        
        .results-header {
            color: var(--nj-blue);
            margin-bottom: 15px;
            font-size: 2rem;
        }
        
        .tester-name {
            color: var(--nj-blue);
            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 Jersey State Flag Representation -->
            <rect width="100" height="60" fill="#0038A8"/>
            <rect width="100" height="30" fill="#FFD100" y="30"/>
            <polygon points="50,15 65,45 35,45" fill="#BF0A30"/>
            <text x="50" y="40" text-anchor="middle" fill="#0038A8" font-size="8" font-weight="bold">NJ</text>
        </svg>
        <h1 style="color: #fff;">New Jersey DMV Practice Test</h1>
        <div class="subtitle">Prepare for your New Jersey 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: 40 correct (80%)</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 40 correct answers (80%) to pass the New Jersey 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 Jersey
        const TEST_CONFIG = {
            totalQuestions: 100,
            testQuestions: 50, // New Jersey DMV test has 50 questions
            passingScore: 40, // Need 40/50 to pass (80%)
            passingPercent: 80,
            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 Jersey Car questions
        function generateCarQuestions() {
            return [
                {
                    id: 1,
                    category: 'car',
                    question: 'What is the maximum speed limit on New Jersey interstate highways?',
                    options: ['55 mph', '65 mph', '70 mph', '75 mph'],
                    correctAnswer: 1,
                    topic: 'Speed Limits',
                    explanation: 'The maximum speed limit on New Jersey interstates is 65 mph.'
                },
                {
                    id: 2,
                    category: 'car',
                    question: 'When must you use your headlights in New Jersey?',
                    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 Jersey 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 Jersey?',
                    options: ['Slow down to 20 mph', 'Stop until the bus moves', 'Stop at least 25 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 Jersey.'
                },
                {
                    id: 4,
                    category: 'car',
                    question: 'What is the legal blood alcohol concentration (BAC) limit for drivers over 21 in New Jersey?',
                    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 Jersey is 0.08%.'
                },
                {
                    id: 5,
                    category: 'car',
                    question: 'How far ahead should you signal before turning in New Jersey?',
                    options: ['50 feet', '75 feet', 'At least 100 feet', '150 feet'],
                    correctAnswer: 2,
                    topic: 'Turning',
                    explanation: 'New Jersey law requires signaling at least 100 feet before turning.'
                },
                {
                    id: 6,
                    category: 'car',
                    question: 'What is New Jersey\'s "Move Over" law requirement?',
                    options: ['Move over or slow down for stopped emergency vehicles', 'Only move over on highways', 'Only applies to police vehicles', 'No such law in NJ'],
                    correctAnswer: 0,
                    topic: 'Emergency Vehicles',
                    explanation: 'New Jersey\'s Move Over law requires drivers to move over or slow down when approaching stopped emergency vehicles.'
                },
                {
                    id: 7,
                    category: 'car',
                    question: 'What does a solid yellow line on your side of the road mean in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 8,
                    category: 'car',
                    question: 'What should you do when you see a flashing yellow traffic light in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 9,
                    category: 'car',
                    question: 'How long do you have to report an accident to the New Jersey MVC if there is injury, death, or vehicle damage?',
                    options: ['Immediately', '24 hours', '48 hours', '10 days'],
                    correctAnswer: 1,
                    topic: 'Accidents',
                    explanation: 'Accidents involving injury, death, or vehicle damage must be reported within 24 hours in New Jersey.'
                },
                {
                    id: 10,
                    category: 'car',
                    question: 'What is the minimum following distance behind another vehicle in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 11,
                    category: 'car',
                    question: 'When can you legally make a U-turn in New Jersey?',
                    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 Jersey unless specifically prohibited by signs.'
                },
                {
                    id: 12,
                    category: 'car',
                    question: 'What does a red circle with a white horizontal bar mean in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 13,
                    category: 'car',
                    question: 'What should you do if your vehicle starts to skid on icy roads in New Jersey?',
                    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 Jersey?',
                    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 Jersey.'
                },
                {
                    id: 15,
                    category: 'car',
                    question: 'What is the penalty for a first offense of not wearing a seatbelt in New Jersey?',
                    options: ['$46 fine', '$50 fine', '$75 fine', '$100 fine'],
                    correctAnswer: 0,
                    topic: 'Seatbelt Laws',
                    explanation: 'The fine for not wearing a seatbelt in New Jersey is $46 for a first offense.'
                },
                {
                    id: 16,
                    category: 'car',
                    question: 'How close may you park to a fire hydrant in New Jersey?',
                    options: ['5 feet', '10 feet', '15 feet', '20 feet'],
                    correctAnswer: 1,
                    topic: 'Parking',
                    explanation: 'You may not park within 10 feet of a fire hydrant in New Jersey.'
                },
                {
                    id: 17,
                    category: 'car',
                    question: 'What should you do when you see a stopped emergency vehicle with flashing lights in New Jersey?',
                    options: ['Slow down and proceed', 'Move over one lane 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 Jersey.'
                },
                {
                    id: 18,
                    category: 'car',
                    question: 'When driving in heavy snow in New Jersey, 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 Jersey?',
                    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 Jersey.'
                },
                {
                    id: 20,
                    category: 'car',
                    question: 'How old must you be to get an unrestricted driver\'s license in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 21,
                    category: 'car',
                    question: 'What should you do when you hear a siren or see an emergency vehicle approaching in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 22,
                    category: 'car',
                    question: 'What is the speed limit in school zones during school hours in New Jersey?',
                    options: ['15 mph', '20 mph', '25 mph', '30 mph'],
                    correctAnswer: 2,
                    topic: 'Speed Limits',
                    explanation: 'The speed limit in school zones is 25 mph when children are present in New Jersey.'
                },
                {
                    id: 23,
                    category: 'car',
                    question: 'When is it legal to pass on the right in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 24,
                    category: 'car',
                    question: 'What does a yellow, diamond-shaped sign indicate in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 25,
                    category: 'car',
                    question: 'How long is a learner\'s permit valid in New Jersey?',
                    options: ['6 months', '1 year', '2 years', '4 years'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: 'A New Jersey learner\'s permit is valid for 2 years.'
                },
                {
                    id: 26,
                    category: 'car',
                    question: 'What should you do when your car starts to hydroplane on wet roads in New Jersey?',
                    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 Jersey?',
                    options: ['$500 fine', '$1,000 fine', 'Up to $2,500 fine', 'Up to $5,000 fine'],
                    correctAnswer: 2,
                    topic: 'DUI Laws',
                    explanation: 'Maximum fine for first DUI offense in New Jersey is up to $2,500.'
                },
                {
                    id: 28,
                    category: 'car',
                    question: 'When must you stop for a pedestrian at a crosswalk in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 29,
                    category: 'car',
                    question: 'What does a red curb indicate in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 30,
                    category: 'car',
                    question: 'How far must you stay behind an emergency vehicle when it\'s responding to a call in New Jersey?',
                    options: ['100 feet', '200 feet', '300 feet', '500 feet'],
                    correctAnswer: 2,
                    topic: 'Emergency Vehicles',
                    explanation: 'Stay at least 300 feet behind emergency vehicles in New Jersey.'
                },
                {
                    id: 31,
                    category: 'car',
                    question: 'What does a broken yellow line mean in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 32,
                    category: 'car',
                    question: 'When should you dim your high beam headlights in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 33,
                    category: 'car',
                    question: 'What is the minimum age for a learner\'s permit in New Jersey?',
                    options: ['14 years', '15', '16', '17'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: 'Minimum age for learner\'s permit in New Jersey is 16.'
                },
                {
                    id: 34,
                    category: 'car',
                    question: 'When approaching a railroad crossing with flashing lights in New Jersey, 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 Jersey.'
                },
                {
                    id: 35,
                    category: 'car',
                    question: 'What does a red flashing light mean in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 36,
                    category: 'car',
                    question: 'How long do you have to renew your license before it expires in New Jersey?',
                    options: ['30 days', '60 days', '6 months', '1 year'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'You can renew your New Jersey 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 Jersey?',
                    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 Jersey.'
                },
                {
                    id: 38,
                    category: 'car',
                    question: 'What does a green traffic light mean in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 39,
                    category: 'car',
                    question: 'When parking downhill with a curb in New Jersey, 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 Jersey.'
                },
                {
                    id: 40,
                    category: 'car',
                    question: 'What should you do when being passed by another vehicle in New Jersey?',
                    options: ['Speed up', 'Move to left lane', 'Slow down slightly', 'Maintain speed'],
                    correctAnswer: 3,
                    topic: 'Passing',
                    explanation: 'Maintain your speed when being passed in New Jersey.'
                },
                {
                    id: 41,
                    category: 'car',
                    question: 'What is the penalty for passing a stopped school bus in New Jersey?',
                    options: ['$150 fine', '$250 fine', '$500 fine', '$1,000 minimum fine'],
                    correctAnswer: 3,
                    topic: 'School Buses',
                    explanation: 'Penalty for passing stopped school bus is minimum $1,000 fine in New Jersey.'
                },
                {
                    id: 42,
                    category: 'car',
                    question: 'When turning left at an intersection in New Jersey, 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 Jersey.'
                },
                {
                    id: 43,
                    category: 'car',
                    question: 'What does a blue sign indicate in New Jersey?',
                    options: ['Motorist services', 'Warning', 'Regulation', 'Construction'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Blue signs indicate motorist services in New Jersey.'
                },
                {
                    id: 44,
                    category: 'car',
                    question: 'How many hours of driving practice are required for a teen license in New Jersey?',
                    options: ['20 hours', '40 hours', '50 hours', '60 hours'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: '50 hours of practice required for teen license in New Jersey, including 10 at night.'
                },
                {
                    id: 45,
                    category: 'car',
                    question: 'What should you do if you get tired while driving in New Jersey?',
                    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 Jersey?',
                    options: ['School zone', 'Stop ahead', 'Yield', 'No passing'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Pentagon-shaped signs indicate school zones in New Jersey.'
                },
                {
                    id: 47,
                    category: 'car',
                    question: 'When should you use your hazard lights in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 48,
                    category: 'car',
                    question: 'What is the penalty for littering from a vehicle in New Jersey?',
                    options: ['$100 fine', '$250 fine', '$500 fine', '$1,000 fine'],
                    correctAnswer: 3,
                    topic: 'Traffic Laws',
                    explanation: 'Littering fine starts at $1,000 in New Jersey.'
                },
                {
                    id: 49,
                    category: 'car',
                    question: 'When can you drive in a bike lane in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 50,
                    category: 'car',
                    question: 'What does a brown sign indicate in New Jersey?',
                    options: ['Park and recreation areas', 'Hospital', 'Construction', 'Warning'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Brown signs indicate park and recreation areas in New Jersey.'
                },
                {
                    id: 51,
                    category: 'car',
                    question: 'What is the blood alcohol limit for commercial drivers in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 52,
                    category: 'car',
                    question: 'When must you turn on headlights in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 53,
                    category: 'car',
                    question: 'What is the fine for speeding in a construction zone in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 54,
                    category: 'car',
                    question: 'When parking parallel to a curb in New Jersey, how close must you be?',
                    options: ['6 inches', '12 inches', '18 inches', '24 inches'],
                    correctAnswer: 0,
                    topic: 'Parking',
                    explanation: 'Park within 6 inches of curb in New Jersey.'
                },
                {
                    id: 55,
                    category: 'car',
                    question: 'What does a triangular sign mean in New Jersey?',
                    options: ['Stop', 'Yield', 'No entry', 'Warning'],
                    correctAnswer: 1,
                    topic: 'Road Signs',
                    explanation: 'Triangular signs mean yield in New Jersey.'
                },
                {
                    id: 56,
                    category: 'car',
                    question: 'How long is a driver\'s license valid in New Jersey?',
                    options: ['2 years', '4 years', '6 years', '8 years'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'New Jersey driver\'s licenses are valid for 4 years.'
                },
                {
                    id: 57,
                    category: 'car',
                    question: 'What should you do at a yellow light in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 58,
                    category: 'car',
                    question: 'When can you use the center turn lane in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 59,
                    category: 'car',
                    question: 'What is the minimum insurance coverage in New Jersey?',
                    options: ['15/30/5', '25/50/25', '100/300/100', '50/100/50'],
                    correctAnswer: 0,
                    topic: 'Insurance',
                    explanation: 'Minimum insurance in New Jersey is $15,000/$30,000/$5,000.'
                },
                {
                    id: 60,
                    category: 'car',
                    question: 'When should you use your turn signal in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 61,
                    category: 'car',
                    question: 'What does a red sign usually indicate in New Jersey?',
                    options: ['Warning', 'Regulation', 'Guide', 'Service'],
                    correctAnswer: 1,
                    topic: 'Road Signs',
                    explanation: 'Red signs indicate regulatory information in New Jersey.'
                },
                {
                    id: 62,
                    category: 'car',
                    question: 'How many points cause license suspension in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 63,
                    category: 'car',
                    question: 'When must you report an accident in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 64,
                    category: 'car',
                    question: 'What is the speed limit on rural highways in New Jersey?',
                    options: ['55 mph', '60 mph', '65 mph', '70 mph'],
                    correctAnswer: 0,
                    topic: 'Speed Limits',
                    explanation: 'Rural highway speed limit is 55 mph in New Jersey.'
                },
                {
                    id: 65,
                    category: 'car',
                    question: 'When should you check your mirrors in New Jersey?',
                    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 Jersey?',
                    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 Jersey.'
                },
                {
                    id: 67,
                    category: 'car',
                    question: 'How close can you follow emergency vehicles in New Jersey?',
                    options: ['100 feet', '200 feet', '300 feet', '500 feet'],
                    correctAnswer: 2,
                    topic: 'Emergency Vehicles',
                    explanation: 'Stay 300 feet behind emergency vehicles in New Jersey.'
                },
                {
                    id: 68,
                    category: 'car',
                    question: 'When is it legal to drive off pavement to pass in New Jersey?',
                    options: ['Never', 'On two-lane roads', 'When safe', 'In emergencies only'],
                    correctAnswer: 0,
                    topic: 'Passing',
                    explanation: 'Never drive off pavement to pass in New Jersey.'
                },
                {
                    id: 69,
                    category: 'car',
                    question: 'What should you do if traffic signal is out in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 70,
                    category: 'car',
                    question: 'How long must you have learner\'s permit before road test in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 71,
                    category: 'car',
                    question: 'What does orange sign indicate in New Jersey?',
                    options: ['Construction', 'Warning', 'Regulation', 'Guide'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Orange signs indicate construction zones in New Jersey.'
                },
                {
                    id: 72,
                    category: 'car',
                    question: 'When must you yield to funeral procession in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 73,
                    category: 'car',
                    question: 'What is penalty for reckless driving in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 74,
                    category: 'car',
                    question: 'When should you use parking lights in New Jersey?',
                    options: ['When parked', 'When driving', 'In fog', 'Never'],
                    correctAnswer: 0,
                    topic: 'Lighting',
                    explanation: 'Parking lights for parked vehicles only in New Jersey.'
                },
                {
                    id: 75,
                    category: 'car',
                    question: 'What does green sign indicate in New Jersey?',
                    options: ['Guide information', 'Warning', 'Regulation', 'Construction'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Green signs provide guide information in New Jersey.'
                },
                {
                    id: 76,
                    category: 'car',
                    question: 'When must you stop for school bus on divided highways in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 77,
                    category: 'car',
                    question: 'What is legal tint limit on front side windows in New Jersey?',
                    options: ['20%', '30%', '35%', '50%'],
                    correctAnswer: 2,
                    topic: 'Vehicle Equipment',
                    explanation: 'Legal tint limit is 35% VLT on front side windows in New Jersey.'
                },
                {
                    id: 78,
                    category: 'car',
                    question: 'When can you cross double yellow lines in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 79,
                    category: 'car',
                    question: 'What does flashing red arrow mean in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 80,
                    category: 'car',
                    question: 'How long after moving must you get New Jersey license?',
                    options: ['10 days', '30 days', '60 days', '90 days'],
                    correctAnswer: 2,
                    topic: 'Licensing',
                    explanation: 'Get New Jersey license within 60 days of moving.'
                },
                {
                    id: 81,
                    category: 'car',
                    question: 'What should you do if brake fails in New Jersey?',
                    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 Jersey?',
                    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 Jersey.'
                },
                {
                    id: 83,
                    category: 'car',
                    question: 'What does octagon sign mean in New Jersey?',
                    options: ['Stop', 'Yield', 'School', 'Railroad'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Octagon signs mean stop in New Jersey.'
                },
                {
                    id: 84,
                    category: 'car',
                    question: 'How many passengers can teen driver have in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 85,
                    category: 'car',
                    question: 'When should you increase following distance in New Jersey?',
                    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 Jersey?',
                    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 Jersey.'
                },
                {
                    id: 87,
                    category: 'car',
                    question: 'When must you use headlights in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 88,
                    category: 'car',
                    question: 'What is penalty for no insurance in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 89,
                    category: 'car',
                    question: 'When should you slow down in work zone in New Jersey?',
                    options: ['Only when workers present', 'Always', 'During weekdays', 'Never'],
                    correctAnswer: 1,
                    topic: 'Work Zones',
                    explanation: 'Always slow down in work zones in New Jersey.'
                },
                {
                    id: 90,
                    category: 'car',
                    question: 'What does rectangular red sign mean in New Jersey?',
                    options: ['Stop', 'Yield', 'Do not enter', 'Wrong way'],
                    correctAnswer: 2,
                    topic: 'Road Signs',
                    explanation: 'Rectangular red sign means do not enter in New Jersey.'
                },
                {
                    id: 91,
                    category: 'car',
                    question: 'How many feet before turn must you signal in New Jersey?',
                    options: ['50 feet', '100 feet', '200 feet', '300 feet'],
                    correctAnswer: 1,
                    topic: 'Turning',
                    explanation: 'Signal at least 100 feet before turn in New Jersey.'
                },
                {
                    id: 92,
                    category: 'car',
                    question: 'When can you park in handicapped space in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 93,
                    category: 'car',
                    question: 'What does flashing yellow arrow mean in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 94,
                    category: 'car',
                    question: 'How old for graduated license in New Jersey?',
                    options: ['14 years 6 months', '16', '17', '18'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Can get graduated license at 16 in New Jersey.'
                },
                {
                    id: 95,
                    category: 'car',
                    question: 'When should you avoid passing in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 96,
                    category: 'car',
                    question: 'What does blue curb indicate in New Jersey?',
                    options: ['Handicapped parking', 'Loading zone', 'No parking', 'Fire zone'],
                    correctAnswer: 0,
                    topic: 'Parking',
                    explanation: 'Blue curb indicates handicapped parking in New Jersey.'
                },
                {
                    id: 97,
                    category: 'car',
                    question: 'When must headrest be adjusted in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 98,
                    category: 'car',
                    question: 'What does diamond-shaped sign mean in New Jersey?',
                    options: ['Warning', 'Regulation', 'Guide', 'Service'],
                    correctAnswer: 0,
                    topic: 'Road Signs',
                    explanation: 'Diamond-shaped signs are warning signs in New Jersey.'
                },
                {
                    id: 99,
                    category: 'car',
                    question: 'When can you use HOV lane in New Jersey (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 Jersey.'
                },
                {
                    id: 100,
                    category: 'car',
                    question: 'What is New Jersey\'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 Jersey.'
                }
            ];
        }
        
        // Generate 100 New Jersey 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 Jersey?',
                    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 Jersey.'
                },
                {
                    id: 2,
                    category: 'cdl',
                    question: 'How far ahead should a commercial vehicle signal before turning in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 3,
                    category: 'cdl',
                    question: 'What is the maximum driving time allowed before taking a break under New Jersey 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 Jersey.'
                },
                {
                    id: 4,
                    category: 'cdl',
                    question: 'What should you check during a pre-trip inspection of air brakes in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 5,
                    category: 'cdl',
                    question: 'When backing a commercial vehicle in New Jersey, 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 Jersey.'
                },
                {
                    id: 6,
                    category: 'cdl',
                    question: 'What is the minimum following distance for commercial vehicles in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 7,
                    category: 'cdl',
                    question: 'How should you handle a front-wheel skid in a commercial vehicle on New Jersey 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 Jersey.'
                },
                {
                    id: 8,
                    category: 'cdl',
                    question: 'What is the maximum width for a commercial vehicle in New Jersey?',
                    options: ['96 inches', '102 inches', '108 inches', '120 inches'],
                    correctAnswer: 1,
                    topic: 'Vehicle Dimensions',
                    explanation: 'Maximum width for commercial vehicles in New Jersey is 102 inches.'
                },
                {
                    id: 9,
                    category: 'cdl',
                    question: 'When must you use chocks when parking a commercial vehicle in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 10,
                    category: 'cdl',
                    question: 'What is the minimum liability insurance required for commercial vehicles in New Jersey?',
                    options: ['$100,000', '$500,000', '$750,000', '$1,000,000'],
                    correctAnswer: 1,
                    topic: 'Insurance',
                    explanation: 'Minimum liability insurance for commercial vehicles in New Jersey is $500,000.'
                },
                {
                    id: 11,
                    category: 'cdl',
                    question: 'What is the maximum weight allowed on a single axle in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 12,
                    category: 'cdl',
                    question: 'When should you perform a brake check in a commercial vehicle in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 13,
                    category: 'cdl',
                    question: 'What is the minimum age for a CDL in New Jersey for interstate commerce?',
                    options: ['18', '21', '25', 'No minimum'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Minimum age for CDL in New Jersey is 21 for interstate commerce.'
                },
                {
                    id: 14,
                    category: 'cdl',
                    question: 'How often must you check your mirrors while driving in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 15,
                    category: 'cdl',
                    question: 'What does a low air pressure warning indicate in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 16,
                    category: 'cdl',
                    question: 'When must you stop at railroad crossings in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 17,
                    category: 'cdl',
                    question: 'What is the maximum length for a single commercial vehicle in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 18,
                    category: 'cdl',
                    question: 'How should you handle a tire blowout in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 19,
                    category: 'cdl',
                    question: 'What must be checked during coupling inspection in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 20,
                    category: 'cdl',
                    question: 'When is a pre-trip inspection required in New Jersey?',
                    options: ['Before each trip', 'Daily', 'Weekly', 'Monthly'],
                    correctAnswer: 1,
                    topic: 'Vehicle Inspection',
                    explanation: 'Pre-trip inspection required daily in New Jersey.'
                },
                {
                    id: 21,
                    category: 'cdl',
                    question: 'What is the blood alcohol limit for CDL holders in New Jersey?',
                    options: ['0.02%', '0.04%', '0.08%', '0.10%'],
                    correctAnswer: 1,
                    topic: 'DUI Laws',
                    explanation: 'CDL holders have 0.04% BAC limit in New Jersey.'
                },
                {
                    id: 22,
                    category: 'cdl',
                    question: 'How many hours off duty required after 70 hours of driving in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 23,
                    category: 'cdl',
                    question: 'What does anti-lock brake system (ABS) help prevent in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 24,
                    category: 'cdl',
                    question: 'When must you use seat belts in commercial vehicles in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 25,
                    category: 'cdl',
                    question: 'What is the maximum driving time in a 7-day period in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 26,
                    category: 'cdl',
                    question: 'How should cargo be secured for New Jersey 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 Jersey.'
                },
                {
                    id: 27,
                    category: 'cdl',
                    question: 'When should you check tire pressure in New Jersey?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Only when flat'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Check tire pressure daily during pre-trip inspection in New Jersey.'
                },
                {
                    id: 28,
                    category: 'cdl',
                    question: 'What is the purpose of engine retarders in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 29,
                    category: 'cdl',
                    question: 'When must you have a fire extinguisher in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 30,
                    category: 'cdl',
                    question: 'How wide are commercial vehicle mirrors required to show in New Jersey?',
                    options: ['100 feet', '200 feet', '300 feet', '500 feet'],
                    correctAnswer: 1,
                    topic: 'Vehicle Equipment',
                    explanation: 'Mirrors must show 200 feet to rear in New Jersey.'
                },
                {
                    id: 31,
                    category: 'cdl',
                    question: 'What special equipment is required for commercial vehicles in New Jersey 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 Jersey during winter.'
                },
                {
                    id: 32,
                    category: 'cdl',
                    question: 'How should you adjust driving for New Jersey\'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 Jersey\'s winter roads.'
                },
                {
                    id: 33,
                    category: 'cdl',
                    question: 'What is the penalty for violating hours of service in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 34,
                    category: 'cdl',
                    question: 'When should you use hazard lights in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 35,
                    category: 'cdl',
                    question: 'What is the maximum steering wheel play allowed in New Jersey?',
                    options: ['10 degrees', '20 degrees', '30 degrees', '40 degrees'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Maximum steering wheel play is 10 degrees in New Jersey.'
                },
                {
                    id: 36,
                    category: 'cdl',
                    question: 'How should you handle jackknife prevention in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 37,
                    category: 'cdl',
                    question: 'When must you have reflective triangles in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 38,
                    category: 'cdl',
                    question: 'What is the maximum height for commercial vehicles in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 39,
                    category: 'cdl',
                    question: 'How often must log books be updated in New Jersey?',
                    options: ['Daily', 'Weekly', 'Monthly', 'After each trip'],
                    correctAnswer: 0,
                    topic: 'Hours of Service',
                    explanation: 'Log books must be updated daily in New Jersey.'
                },
                {
                    id: 40,
                    category: 'cdl',
                    question: 'When should you check brake adjustment in New Jersey?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Only when problems occur'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Check brake adjustment daily in New Jersey.'
                },
                {
                    id: 41,
                    category: 'cdl',
                    question: 'What is New Jersey\'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 Jersey.'
                },
                {
                    id: 41,
                    category: 'cdl',
                    question: 'What special training is required for transporting hazardous materials in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 42,
                    category: 'cdl',
                    question: 'When must you use engine brake silencers in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 43,
                    category: 'cdl',
                    question: 'What is New Jersey\'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 Jersey.'
                },
                {
                    id: 44,
                    category: 'cdl',
                    question: 'What is the penalty for overweight violations in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 45,
                    category: 'cdl',
                    question: 'When must you have New Jersey State inspection?',
                    options: ['Annually', 'Biennially', 'When requested', 'Never'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Annual State inspection required for certain commercial vehicles in New Jersey.'
                },
                {
                    id: 46,
                    category: 'cdl',
                    question: 'What is required for transporting agricultural products in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 47,
                    category: 'cdl',
                    question: 'How often must you renew medical certificate in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 48,
                    category: 'cdl',
                    question: 'What is New Jersey\'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 Jersey.'
                },
                {
                    id: 49,
                    category: 'cdl',
                    question: 'When must you stop at weigh stations in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 50,
                    category: 'cdl',
                    question: 'What is the maximum gross vehicle weight allowed in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 51,
                    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 Jersey.'
                },
                {
                    id: 52,
                    category: 'cdl',
                    question: 'What is the minimum cargo securement requirement in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 53,
                    category: 'cdl',
                    question: 'When must you have a commercial driver\'s license in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 54,
                    category: 'cdl',
                    question: 'What is the penalty for logbook falsification in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 55,
                    category: 'cdl',
                    question: 'How often must you inspect your fire extinguisher in New Jersey?',
                    options: ['Monthly', 'Quarterly', 'Annually', 'Every 6 months'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Fire extinguisher must be inspected monthly in New Jersey.'
                },
                {
                    id: 56,
                    category: 'cdl',
                    question: 'What is the minimum insurance for passenger-carrying vehicles in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 57,
                    category: 'cdl',
                    question: 'When must you stop for school buses in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 58,
                    category: 'cdl',
                    question: 'What is the maximum tandem axle weight in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 59,
                    category: 'cdl',
                    question: 'How many consecutive days off are required in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 60,
                    category: 'cdl',
                    question: 'What is required for transporting oversized loads in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 61,
                    category: 'cdl',
                    question: 'How far ahead must you signal for lane changes in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 62,
                    category: 'cdl',
                    question: 'What is the penalty for driving without a CDL in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 63,
                    category: 'cdl',
                    question: 'How often must you check wheel nuts on commercial vehicles in New Jersey?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Every 6 months'],
                    correctAnswer: 0,
                    topic: 'Vehicle Inspection',
                    explanation: 'Check wheel nuts daily during pre-trip inspection in New Jersey.'
                },
                {
                    id: 64,
                    category: 'cdl',
                    question: 'What is required for transporting explosives in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 65,
                    category: 'cdl',
                    question: 'How many hours must you be off duty after 14 hours on duty in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 66,
                    category: 'cdl',
                    question: 'What is the minimum tread depth for other tires in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 67,
                    category: 'cdl',
                    question: 'When must you use tire chains in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 68,
                    category: 'cdl',
                    question: 'What is the penalty for hours of service violation in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 69,
                    category: 'cdl',
                    question: 'How many days must you keep logbooks in New Jersey?',
                    options: ['7 days', '14 days', '30 days', '6 months'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Keep logbooks for 6 months in New Jersey.'
                },
                {
                    id: 70,
                    category: 'cdl',
                    question: 'What is required for transporting flammable liquids in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 71,
                    category: 'cdl',
                    question: 'How many hours driving in 8-day period is maximum in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 72,
                    category: 'cdl',
                    question: 'What is the minimum age for intrastate CDL in New Jersey?',
                    options: ['18', '21', '25', 'No minimum'],
                    correctAnswer: 0,
                    topic: 'Licensing',
                    explanation: 'Minimum age for intrastate CDL is 18 in New Jersey.'
                },
                {
                    id: 73,
                    category: 'cdl',
                    question: 'How often must you inspect emergency equipment in New Jersey?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Quarterly'],
                    correctAnswer: 0,
                    topic: 'Safety Equipment',
                    explanation: 'Inspect emergency equipment daily in New Jersey.'
                },
                {
                    id: 74,
                    category: 'cdl',
                    question: 'What is required for transporting radioactive materials in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 75,
                    category: 'cdl',
                    question: 'How many hours off after 60 hours in 7 days in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 76,
                    category: 'cdl',
                    question: 'What is the penalty for defective brakes in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 77,
                    category: 'cdl',
                    question: 'How many hours driving after 34 hours off in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 78,
                    category: 'cdl',
                    question: 'What is required for transporting corrosives in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 79,
                    category: 'cdl',
                    question: 'How many consecutive hours driving maximum in New Jersey?',
                    options: ['8 hours', '10 hours', '11 hours', '12 hours'],
                    correctAnswer: 2,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 11 consecutive hours driving in New Jersey.'
                },
                {
                    id: 80,
                    category: 'cdl',
                    question: 'What is required for tank vehicles in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 81,
                    category: 'cdl',
                    question: 'How many hours on duty in 14-hour period maximum in New Jersey?',
                    options: ['11 hours', '12 hours', '13 hours', '14 hours'],
                    correctAnswer: 3,
                    topic: 'Hours of Service',
                    explanation: 'Maximum 14 consecutive hours on duty in New Jersey.'
                },
                {
                    id: 82,
                    category: 'cdl',
                    question: 'What is required for double/triple trailers in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 83,
                    category: 'cdl',
                    question: 'How many hours driving in 14-hour period maximum in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 84,
                    category: 'cdl',
                    question: 'What is required for passenger vehicles in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 85,
                    category: 'cdl',
                    question: 'How many hours off after 70 hours in 8 days in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 86,
                    category: 'cdl',
                    question: 'What is required for school buses in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 87,
                    category: 'cdl',
                    question: 'How many hours driving after 10 hours off in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 88,
                    category: 'cdl',
                    question: 'What is required for transporting gases in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 89,
                    category: 'cdl',
                    question: 'How many hours off after 8 days maximum in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 90,
                    category: 'cdl',
                    question: 'What is required for transporting poisons in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 91,
                    category: 'cdl',
                    question: 'How many hours on duty in 24-hour period maximum in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 92,
                    category: 'cdl',
                    question: 'What is required for transporting combustibles in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 93,
                    category: 'cdl',
                    question: 'How many hours driving in 24-hour period maximum in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 94,
                    category: 'cdl',
                    question: 'What is required for transporting oxidizers in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 95,
                    category: 'cdl',
                    question: 'How many days must medical certificate be carried in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 96,
                    category: 'cdl',
                    question: 'What is required for transporting organic peroxides in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 97,
                    category: 'cdl',
                    question: 'How often must you renew CDL in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 98,
                    category: 'cdl',
                    question: 'What is required for transporting infectious substances in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 99,
                    category: 'cdl',
                    question: 'What special considerations are needed for driving in New Jersey\'s winter conditions?',
                    options: ['Watch for black ice', 'Beware of sudden snow squalls', 'Carry emergency supplies', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Winter Driving',
                    explanation: 'Watch for black ice, beware of sudden snow squalls, and carry emergency supplies when driving in New Jersey winter conditions.'
                },
                {
                    id: 100,
                    category: 'cdl',
                    question: 'What is the maximum width for agricultural vehicles on New Jersey 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 Jersey.'
                }
            ];
        }
        
        // Generate 100 New Jersey Motorcycle questions
        function generateMotorcycleQuestions() {
            return [
                {
                    id: 1,
                    category: 'motorcycle',
                    question: 'What is the most important factor in motorcycle safety in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 2,
                    category: 'motorcycle',
                    question: 'When should a motorcycle headlight be used in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 3,
                    category: 'motorcycle',
                    question: 'What is the proper way to brake on a motorcycle on New Jersey 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 Jersey.'
                },
                {
                    id: 4,
                    category: 'motorcycle',
                    question: 'What should you do to increase visibility to other drivers in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 5,
                    category: 'motorcycle',
                    question: 'How should you handle a turn on a motorcycle on New Jersey 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 Jersey.'
                },
                {
                    id: 6,
                    category: 'motorcycle',
                    question: 'What is the minimum insurance required for motorcycles in New Jersey?',
                    options: ['15/30/5', '25/50/25', '100/300/100', '50/100/50'],
                    correctAnswer: 0,
                    topic: 'Insurance',
                    explanation: 'Minimum insurance in New Jersey is $15,000/$30,000/$5,000 for motorcycles.'
                },
                {
                    id: 7,
                    category: 'motorcycle',
                    question: 'Is lane splitting legal in New Jersey?',
                    options: ['Legal in New Jersey', 'Illegal in New Jersey', 'Legal only on highways', 'Legal only in traffic'],
                    correctAnswer: 1,
                    topic: 'Lane Positioning',
                    explanation: 'Lane splitting (riding between lanes) is illegal in New Jersey.'
                },
                {
                    id: 8,
                    category: 'motorcycle',
                    question: 'What should you check during a pre-ride inspection in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 9,
                    category: 'motorcycle',
                    question: 'How should you carry a passenger on a motorcycle in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 10,
                    category: 'motorcycle',
                    question: 'What is the best way to handle road hazards like wet leaves or sand on New Jersey 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 Jersey.'
                },
                {
                    id: 11,
                    category: 'motorcycle',
                    question: 'What protective gear should always be worn when riding in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 12,
                    category: 'motorcycle',
                    question: 'When should you increase following distance in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 13,
                    category: 'motorcycle',
                    question: 'What is the proper lane position for visibility in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 14,
                    category: 'motorcycle',
                    question: 'How should you handle wet manhole covers or road markings in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 15,
                    category: 'motorcycle',
                    question: 'When should you check tire pressure in New Jersey?',
                    options: ['Daily', 'Weekly', 'Monthly', 'Only when flat'],
                    correctAnswer: 1,
                    topic: 'Tire Maintenance',
                    explanation: 'Check tire pressure weekly and before long trips in New Jersey.'
                },
                {
                    id: 16,
                    category: 'motorcycle',
                    question: 'What is the minimum age for motorcycle license in New Jersey?',
                    options: ['14', '16', '18', '21'],
                    correctAnswer: 1,
                    topic: 'Licensing',
                    explanation: 'Minimum age for motorcycle license is 16 in New Jersey.'
                },
                {
                    id: 17,
                    category: 'motorcycle',
                    question: 'How should you handle strong crosswinds common in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 18,
                    category: 'motorcycle',
                    question: 'When should you use turn signals in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 19,
                    category: 'motorcycle',
                    question: 'What should you do at intersections in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 20,
                    category: 'motorcycle',
                    question: 'How should you carry cargo on a motorcycle in New Jersey?',
                    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 Jersey.'
                },
                {
                    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 Jersey.'
                },
                {
                    id: 22,
                    category: 'motorcycle',
                    question: 'When should you use high beam headlight in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 23,
                    category: 'motorcycle',
                    question: 'How should you handle oil spills on road in New Jersey?',
                    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 Jersey.'
                },
                {
                    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 Jersey.'
                },
                {
                    id: 25,
                    category: 'motorcycle',
                    question: 'When should you adjust mirrors in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 26,
                    category: 'motorcycle',
                    question: 'What is New Jersey\'s helmet law for motorcycles?',
                    options: ['Helmets required for all riders', 'Only required under 18', 'Only required on highways', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Safety',
                    explanation: 'Helmets required for all riders in New Jersey.'
                },
                {
                    id: 27,
                    category: 'motorcycle',
                    question: 'How should you handle lane positioning safely in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 28,
                    category: 'motorcycle',
                    question: 'What should you do when being passed by a car in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 29,
                    category: 'motorcycle',
                    question: 'How should you approach railroad tracks in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 30,
                    category: 'motorcycle',
                    question: 'What is the penalty for not wearing helmet in New Jersey?',
                    options: ['$20 fine', '$40 fine', '$60 fine', '$100 fine'],
                    correctAnswer: 0,
                    topic: 'Safety',
                    explanation: 'Fine for not wearing helmet is $20 in New Jersey.'
                },
                {
                    id: 31,
                    category: 'motorcycle',
                    question: 'When should you use both brakes in an emergency stop in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 32,
                    category: 'motorcycle',
                    question: 'How should you handle riding in groups in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 33,
                    category: 'motorcycle',
                    question: 'What should you do if you get a flat tire while riding in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 34,
                    category: 'motorcycle',
                    question: 'When is the most dangerous time to ride in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 35,
                    category: 'motorcycle',
                    question: 'How should you adjust speed for curves in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 36,
                    category: 'motorcycle',
                    question: 'What is the minimum tread depth for motorcycle tires in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 37,
                    category: 'motorcycle',
                    question: 'How should you handle riding over bumps or potholes in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 38,
                    category: 'motorcycle',
                    question: 'When should you use your horn in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 39,
                    category: 'motorcycle',
                    question: 'What is the proper way to make a quick stop in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 40,
                    category: 'motorcycle',
                    question: 'How should you dress for riding in New Jersey\'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 Jersey\'s varying weather conditions.'
                },
                {
                    id: 41,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle license in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 42,
                    category: 'motorcycle',
                    question: 'How should you handle night riding in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 43,
                    category: 'motorcycle',
                    question: 'What should you check during pre-ride inspection in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 44,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s frequent thunderstorms.'
                },
                {
                    id: 45,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle endorsement in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 46,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s crosswinds.'
                },
                {
                    id: 47,
                    category: 'motorcycle',
                    question: 'What should you do before changing lanes in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 48,
                    category: 'motorcycle',
                    question: 'How often should you practice emergency braking in New Jersey?',
                    options: ['Regularly', 'Never', 'Only before test', 'Once a year'],
                    correctAnswer: 0,
                    topic: 'Skills Practice',
                    explanation: 'Practice emergency braking regularly to maintain skills in New Jersey.'
                },
                {
                    id: 49,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle registration in New Jersey?',
                    options: ['Title', 'Insurance', 'Safety inspection', 'All of the above'],
                    correctAnswer: 3,
                    topic: 'Registration',
                    explanation: 'Title, insurance, and safety inspection required for registration in New Jersey.'
                },
                {
                    id: 50,
                    category: 'motorcycle',
                    question: 'How should you handle riding on New Jersey\'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 Jersey\'s gravel roads.'
                },
                {
                    id: 51,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle safety course in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 52,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s urban traffic.'
                },
                {
                    id: 53,
                    category: 'motorcycle',
                    question: 'What should you do if headlight fails in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 54,
                    category: 'motorcycle',
                    question: 'How should you handle riding on New Jersey\'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 Jersey\'s bridges.'
                },
                {
                    id: 55,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle insurance in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 56,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s fog.'
                },
                {
                    id: 57,
                    category: 'motorcycle',
                    question: 'What should you do during pre-ride check in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 58,
                    category: 'motorcycle',
                    question: 'How should you handle riding on New Jersey\'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 Jersey\'s wet roads.'
                },
                {
                    id: 59,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle transfer in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 60,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s road construction zones.'
                },
                {
                    id: 61,
                    category: 'motorcycle',
                    question: 'What should you do if throttle sticks in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 62,
                    category: 'motorcycle',
                    question: 'How should you handle riding on New Jersey\'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 Jersey after rain.'
                },
                {
                    id: 63,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle loan in New Jersey?',
                    options: ['Insurance', 'Registration', 'Both A and B', 'Not required'],
                    correctAnswer: 2,
                    topic: 'Financing',
                    explanation: 'Insurance and registration required for motorcycle loan in New Jersey.'
                },
                {
                    id: 64,
                    category: 'motorcycle',
                    question: 'How should you handle riding at dawn/dusk in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 65,
                    category: 'motorcycle',
                    question: 'What should you do if brake fails in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 66,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s heat.'
                },
                {
                    id: 67,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle permit in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 68,
                    category: 'motorcycle',
                    question: 'How should you handle riding on New Jersey\'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 Jersey\'s rural roads.'
                },
                {
                    id: 69,
                    category: 'motorcycle',
                    question: 'What should you do if chain breaks in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 70,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s country roads.'
                },
                {
                    id: 71,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle title in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 72,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey.'
                },
                {
                    id: 73,
                    category: 'motorcycle',
                    question: 'What should you do if engine overheats in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 74,
                    category: 'motorcycle',
                    question: 'How should you handle riding in groups at night in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 75,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle safety inspection in New Jersey?',
                    options: ['Annual', 'Biennial', 'At transfer only', 'Not required'],
                    correctAnswer: 0,
                    topic: 'Safety Inspection',
                    explanation: 'Annual safety inspection required for motorcycles in New Jersey.'
                },
                {
                    id: 76,
                    category: 'motorcycle',
                    question: 'How should you handle riding with passenger in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 77,
                    category: 'motorcycle',
                    question: 'What should you do if electrical system fails in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 78,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s rural areas.'
                },
                {
                    id: 79,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle dealer purchase in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 80,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s sudden thunderstorms.'
                },
                {
                    id: 81,
                    category: 'motorcycle',
                    question: 'What should you do if fuel system fails in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 82,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s hail storms.'
                },
                {
                    id: 83,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle private sale in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 84,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s flash flood warnings.'
                },
                {
                    id: 85,
                    category: 'motorcycle',
                    question: 'What should you do if tire goes flat in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 86,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey.'
                },
                {
                    id: 87,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle insurance claim in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 88,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s winter conditions.'
                },
                {
                    id: 89,
                    category: 'motorcycle',
                    question: 'What should you do if lost control in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 90,
                    category: 'motorcycle',
                    question: 'How should you handle riding after New Jersey 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 Jersey storm.'
                },
                {
                    id: 91,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle custom build in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 92,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s dust from gravel roads.'
                },
                {
                    id: 93,
                    category: 'motorcycle',
                    question: 'What should you do if animals on road in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 94,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s urban traffic.'
                },
                {
                    id: 95,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle import to New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 96,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s severe weather conditions.'
                },
                {
                    id: 97,
                    category: 'motorcycle',
                    question: 'What should you do if objects on road in New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 98,
                    category: 'motorcycle',
                    question: 'How should you handle riding in New Jersey\'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 Jersey\'s high traffic areas.'
                },
                {
                    id: 99,
                    category: 'motorcycle',
                    question: 'What is required for motorcycle export from New Jersey?',
                    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 Jersey.'
                },
                {
                    id: 100,
                    category: 'motorcycle',
                    question: 'What special considerations are needed for riding in New Jersey\'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 Jersey\'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 Jersey DMV 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 Jersey DMV 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 Jersey DMV 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 Jersey DMV exam.</p>
                `;
            } else {
                recommendation.innerHTML = `
                    <h4>Areas for Improvement</h4>
                    <p>Focus on the topics where you missed questions. Study the New Jersey DMV 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-jersey-dmv-practice-test/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>New Jersey Traffic Ticket Calculator: Complete Guide to Fines, Points &#038; Insurance Impact</title>
		<link>https://24car-repair.com/new-jersey-traffic-ticket-calculator/</link>
					<comments>https://24car-repair.com/new-jersey-traffic-ticket-calculator/#respond</comments>
		
		<dc:creator><![CDATA[Robert]]></dc:creator>
		<pubDate>Thu, 25 Dec 2025 14:54:29 +0000</pubDate>
				<category><![CDATA[Calculator]]></category>
		<category><![CDATA[New Jersey]]></category>
		<guid isPermaLink="false">https://24car-repair.com/?p=4657</guid>

					<description><![CDATA[New Jersey Traffic Ticket Calculator 2026 &#124; Estimate Fines, Surcharges &#038; Points &#124; 24Car-Repair.com New Jersey Traffic Ticket Calculator: Complete Guide to Fines, Points &#038; Insurance Impact Getting a traffic ticket in New Jersey involves more than just paying a fine. Our comprehensive NJ Traffic Ticket Calculator and detailed guide help you understand the true [&#8230;]]]></description>
										<content:encoded><![CDATA[

    <title>New Jersey Traffic Ticket Calculator 2026 | Estimate Fines, Surcharges &#038; Points | 24Car-Repair.com</title>
    <meta name="description" content="Complete guide to NJ traffic ticket costs. Use our detailed calculator to estimate fines, surcharges, court costs, insurance increases, and points for all violations. Learn how to fight your ticket.">
    <link rel="canonical" href="https://24car-repair.com/new-jersey-traffic-ticket-calculator">
    <style>
        /* ===== BASE RESET & VARIABLES ===== */
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --success-color: #27ae60;
            --warning-color: #f39c12;
            --light-bg: #f8f9fa;
            --border-color: #e1e8ed;
            --text-color: #333;
            --text-light: #7f8c8d;
            --shadow: 0 5px 15px rgba(0,0,0,0.05);
            --border-radius: 8px;
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: var(--text-color);
            line-height: 1.6;
            padding: 0;
            max-width: 100%;
            overflow-x: hidden;
        }
        
        /* ===== MAIN LAYOUT ===== */
        .container {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            padding: 1rem;
            max-width: 1400px;
            margin: 0 auto;
        }
        
        @media (min-width: 992px) {
            .container {
                grid-template-columns: 1fr 350px;
                padding: 2rem;
            }
        }
        
        /* ===== MAIN CONTENT AREA ===== */
        .main-content {
            background: white;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
        }
        
        /* ===== SIDEBAR ===== */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .sidebar-widget {
            background: white;
            border-radius: var(--border-radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            border-top: 4px solid var(--secondary-color);
        }
        
        .sidebar-widget.warning {
            border-top-color: var(--warning-color);
            background-color: #fff8e1;
        }
        
        /* ===== TYPOGRAPHY WITH NUMBERED HEADINGS ===== */
        h1 {
            color: var(--primary-color);
            font-size: 2rem;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 3px solid var(--secondary-color);
            counter-reset: section;
        }
        
        h2 {
            color: var(--primary-color);
            font-size: 1.6rem;
            margin: 2rem 0 1.2rem 0;
            padding-left: 2.5rem;
            position: relative;
            counter-increment: section;
            counter-reset: subsection;
        }
        
        h2:before {
            content: counter(section) ". ";
            position: absolute;
            left: 0;
            color: var(--secondary-color);
            font-weight: bold;
            font-size: 1.8rem;
        }
        
        h3 {
            color: #2c3e50;
            font-size: 1.3rem;
            margin: 1.8rem 0 1rem 0;
            padding-left: 3.5rem;
            position: relative;
            counter-increment: subsection;
        }
        
        h3:before {
            content: counter(section) "." counter(subsection) ". ";
            position: absolute;
            left: 0.5rem;
            color: var(--secondary-color);
            font-weight: bold;
        }
        
        h4 {
            color: #34495e;
            font-size: 1.1rem;
            margin: 1.2rem 0 0.8rem 0;
            padding-left: 1rem;
            border-left: 3px solid var(--secondary-color);
        }
        
        p {
            margin-bottom: 1.2rem;
            font-size: 1.05rem;
            color: #444;
        }
        
        /* ===== ENHANCED CALCULATOR STYLES ===== */
        .calculator-master {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: var(--border-radius);
            padding: 2rem;
            margin: 2rem 0;
            border: 1px solid var(--border-color);
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
        }
        
        .calculator-header {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .calculator-header h2 {
            padding-left: 0;
            margin-top: 0;
            text-align: center;
        }
        
        .calculator-header h2:before {
            display: none;
        }
        
        .calculator-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        @media (min-width: 768px) {
            .calculator-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        .input-group {
            display: flex;
            flex-direction: column;
        }
        
        .input-group label {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .input-group label i {
            color: var(--secondary-color);
        }
        
        select, input[type="number"] {
            padding: 14px 16px;
            border: 2px solid #bdc3c7;
            border-radius: 6px;
            font-size: 1rem;
            transition: var(--transition);
            background-color: white;
            appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 16px;
        }
        
        select:focus, input[type="number"]:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }
        
        /* ===== RESULTS DISPLAY ===== */
        .results-container {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            margin-top: 1rem;
        }
        
        @media (min-width: 768px) {
            .results-container {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        .result-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            text-align: center;
            border: 2px solid var(--border-color);
            transition: var(--transition);
        }
        
        .result-card.total {
            border-color: var(--success-color);
            background-color: #f0f9f4;
        }
        
        .result-card h4 {
            font-size: 0.9rem;
            color: var(--text-light);
            margin-bottom: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-left: none;
        }
        
        .result-value {
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .result-card.total .result-value {
            color: var(--success-color);
            font-size: 2.5rem;
        }
        
        /* ===== DETAILED BREAKDOWN ===== */
        .detailed-breakdown {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin-top: 2rem;
            border-left: 4px solid var(--secondary-color);
            display: none;
        }
        
        .breakdown-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }
        
        .breakdown-item {
            padding: 0.8rem;
            background: var(--light-bg);
            border-radius: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .breakdown-label {
            font-weight: 500;
            color: var(--text-color);
        }
        
        .breakdown-value {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        /* ===== TABLES ===== */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: 0 0 0 1px var(--border-color);
        }
        
        .data-table th {
            background-color: var(--primary-color);
            color: white;
            font-weight: 600;
            text-align: left;
            padding: 1rem;
            font-size: 0.95rem;
        }
        
        .data-table td {
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
            background-color: white;
        }
        
        .data-table tr:nth-child(even) td {
            background-color: var(--light-bg);
        }
        
        .data-table tr:hover td {
            background-color: #e8f4fc;
        }
        
        .table-note {
            font-size: 0.9rem;
            color: var(--text-light);
            font-style: italic;
            margin-top: 0.5rem;
        }
        
        /* ===== LISTS & FEATURES ===== */
        ul, ol {
            padding-left: 1.8rem;
            margin-bottom: 1.5rem;
        }
        
        li {
            margin-bottom: 0.8rem;
            color: #444;
        }
        
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .feature-card {
            background: var(--light-bg);
            padding: 1.5rem;
            border-radius: var(--border-radius);
            border-left: 4px solid var(--secondary-color);
        }
        
        .feature-card.warning {
            border-left-color: var(--warning-color);
        }
        
        .feature-card.danger {
            border-left-color: var(--accent-color);
        }
        
        /* ===== FAQ SECTION ===== */
        .faq-container {
            margin: 2rem 0;
        }
        
        .faq-item {
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            overflow: hidden;
        }
        
        .faq-question {
            padding: 1.2rem;
            background-color: var(--light-bg);
            font-weight: 600;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
        }
        
        .faq-question:hover {
            background-color: #e9ecef;
        }
        
        .faq-question:after {
            content: '+';
            font-size: 1.5rem;
            color: var(--secondary-color);
            font-weight: 300;
        }
        
        .faq-item.active .faq-question:after {
            content: '−';
        }
        
        .faq-answer {
            padding: 0;
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .faq-item.active .faq-answer {
            padding: 1.2rem;
            max-height: 500px;
        }
        
        /* ===== CTA & DISCLAIMER ===== */
        .cta-box {
            background: linear-gradient(135deg, var(--primary-color) 0%, #1a252f 100%);
            color: white;
            padding: 2rem;
            border-radius: var(--border-radius);
            text-align: center;
            margin: 2rem 0;
        }
        
        .cta-box a.button {
            display: inline-block;
            background-color: var(--accent-color);
            color: white;
            padding: 14px 30px;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            margin-top: 1rem;
            transition: var(--transition);
        }
        
        .cta-box a.button:hover {
            background-color: #c0392b;
            transform: translateY(-2px);
        }
        
        .disclaimer-box {
            background-color: #fff8e1;
            border-left: 4px solid var(--warning-color);
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 0 var(--border-radius) var(--border-radius) 0;
        }
        
        /* ===== FOOTER ===== */
        .site-footer {
            text-align: center;
            margin-top: 3rem;
            padding: 2rem 1rem;
            border-top: 1px solid var(--border-color);
            color: var(--text-light);
            font-size: 0.9rem;
            background-color: white;
            grid-column: 1 / -1;
        }
        
        /* ===== RESPONSIVE ADJUSTMENTS ===== */
        @media (max-width: 768px) {
            h1 { font-size: 1.8rem; }
            h2 { font-size: 1.4rem; padding-left: 2rem; }
            h3 { font-size: 1.2rem; padding-left: 2.5rem; }
            .calculator-master { padding: 1.5rem; }
            .results-container { grid-template-columns: 1fr; }
        }
        
        @media (max-width: 480px) {
            .container { padding: 0.5rem; }
            .main-content, .sidebar-widget { padding: 1.2rem; }
            h2 { padding-left: 1.8rem; }
            h2:before { font-size: 1.5rem; }
            .result-value { font-size: 1.8rem; }
        }
        
        .highlight {
            background-color: #fffacd;
            padding: 2px 6px;
            border-radius: 3px;
            font-weight: 600;
        }
        
        .stat-badge {
            display: inline-block;
            background-color: var(--secondary-color);
            color: white;
            padding: 2px 10px;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 600;
            margin-left: 0.5rem;
        }
    </style>
    <div class="container">
        <main class="main-content">
            <h1>New Jersey Traffic Ticket Calculator: Complete Guide to Fines, Points &#038; Insurance Impact</h1>
            
            <p>Getting a traffic ticket in New Jersey involves more than just paying a fine. Our comprehensive <strong>NJ Traffic Ticket Calculator</strong> and detailed guide help you understand the true cost—including mandatory surcharges, court costs, points on your license, and potential insurance premium increases that can last for years.</p>
            
            <!-- Section 1: Master Calculator -->
            <div class="calculator-master">
                <div class="calculator-header">
                    <h2>NJ Traffic Ticket Total Cost Calculator</h2>
                    <p>Estimate your total financial liability including all NJ mandatory fees</p>
                </div>
                
                <div class="calculator-grid">
                    <div class="input-group">
                        <label><i>📝</i> Select Traffic Violation:</label>
                        <select id="violationType">
                            <option value="">&#8212; Choose Violation Type &#8212;</option>
                            <option value="speeding1-14">Speeding 1-14 mph over limit</option>
                            <option value="speeding15-19">Speeding 15-19 mph over limit</option>
                            <option value="speeding20-24">Speeding 20-24 mph over limit</option>
                            <option value="speeding25-29">Speeding 25-29 mph over limit</option>
                            <option value="speeding30plus">Speeding 30+ mph over limit</option>
                            <option value="cellphone">Using Handheld Cell Phone/Texting</option>
                            <option value="redlight">Running a Red Light / Failure to Stop</option>
                            <option value="stop_sign">Failure to Stop at Stop Sign</option>
                            <option value="unsafe_lane">Unsafe Lane Change</option>
                            <option value="careless">Careless Driving</option>
                            <option value="reckless">Reckless Driving</option>
                            <option value="dui">DUI / DWI (Driving While Intoxicated)</option>
                            <option value="seatbelt_driver">Seat Belt Violation (Driver)</option>
                            <option value="seatbelt_passenger">Seat Belt Violation (Passenger)</option>
                            <option value="expired_reg">Expired Registration (>6 months)</option>
                        </select>
                    </div>
                    
                    <div class="input-group">
                        <label><i>🗺️</i> County of Violation:</label>
                        <select id="county">
                            <option value="standard">Any NJ County (Standard Rates)</option>
                            <option value="bergen">Bergen County</option>
                            <option value="middlesex">Middlesex County</option>
                            <option value="essex">Essex County</option>
                            <option value="monmouth">Monmouth County</option>
                            <option value="ocean">Ocean County</option>
                            <option value="hudson">Hudson County</option>
                            <option value="union">Union County</option>
                            <option value="camden">Camden County</option>
                            <option value="passaic">Passaic County</option>
                        </select>
                    </div>
                    
                    <div class="input-group">
                        <label><i>⚖️</i> Prior Tickets (Last 3 Years):</label>
                        <select id="priorTickets">
                            <option value="0">0 &#8211; First Offense</option>
                            <option value="1">1 Prior Ticket</option>
                            <option value="2">2 Prior Tickets</option>
                            <option value="3">3+ Prior Tickets</option>
                        </select>
                    </div>
                    
                    <div class="input-group">
                        <label><i>🚗</i> Your Insurance Company:</label>
                            <select id="insuranceCompany">
                            <option value="average">Average NJ Rate</option>
                            <option value="allstate">Allstate</option>
                            <option value="statefarm">State Farm</option>
                            <option value="geico">GEICO</option>
                            <option value="progressive">Progressive</option>
                            <option value="njmanufacturers">NJ Manufacturers</option>
                            <option value="libertymutual">Liberty Mutual</option>
                        </select>
                    </div>
                </div>
                
                <!-- Results Display -->
                <div class="results-container">
                    <div class="result-card">
                        <h4>Total Fine &#038; Fees</h4>
                        <div id="totalFines" class="result-value">$0</div>
                        <p style="font-size: 0.9rem; margin-top: 0.5rem;">Payable to Court</p>
                    </div>
                    
                    <div class="result-card">
                        <h4>Points Added</h4>
                        <div id="pointsAdded" class="result-value">0</div>
                        <p style="font-size: 0.9rem; margin-top: 0.5rem;">To Your License</p>
                    </div>
                    
                    <div class="result-card total">
                        <h4>3-Year Insurance Impact</h4>
                        <div id="insuranceImpact" class="result-value">$0</div>
                        <p style="font-size: 0.9rem; margin-top: 0.5rem;">Estimated Increase</p>
                    </div>
                </div>
                
                <!-- Detailed Breakdown -->
                <div id="detailedBreakdown" class="detailed-breakdown">
                    <h4 style="border-left: none; padding-left: 0;">Cost Breakdown</h4>
                    <div class="breakdown-grid">
                        <div class="breakdown-item">
                            <span class="breakdown-label">Base Fine:</span>
                            <span id="breakdownBase" class="breakdown-value">$0</span>
                        </div>
                        <div class="breakdown-item">
                            <span class="breakdown-label">NJ Surcharge:</span>
                            <span id="breakdownSurcharge" class="breakdown-value">$0</span>
                        </div>
                        <div class="breakdown-item">
                            <span class="breakdown-label">Court Costs:</span>
                            <span id="breakdownCourt" class="breakdown-value">$0</span>
                        </div>
                        <div class="breakdown-item">
                            <span class="breakdown-label">Violent Crimes Compensation:</span>
                            <span id="breakdownVcc" class="breakdown-value">$0</span>
                        </div>
                        <div class="breakdown-item">
                            <span class="breakdown-label">Safe Neighborhoods Fee:</span>
                            <span id="breakdownSnf" class="breakdown-value">$0</span>
                        </div>
                        <div class="breakdown-item">
                            <span class="breakdown-label">Municipal Court Automation:</span>
                            <span id="breakdownAuto" class="breakdown-value">$0</span>
                        </div>
                    </div>
                    <p style="margin-top: 1rem; font-size: 0.9rem; color: var(--text-light);"><em>Note: Insurance impact calculated based on average NJ premium increases for violation type. Actual insurance costs may vary.</em></p>
                </div>
                
                <div style="text-align: center; margin-top: 1.5rem;">
                    <button id="calculateBtn" style="padding: 14px 30px; background-color: var(--secondary-color); color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 1rem;">Calculate Total Cost</button>
                </div>
            </div>
            
            <!-- Section 2: NJ Fine Structure -->
            <h2>Understanding New Jersey&#8217;s Traffic Fine Structure</h2>
            
            <p>New Jersey has one of the most complex traffic fine systems in the United States. What appears as a simple fine on your ticket is actually composed of <strong>six separate mandatory components</strong>, each governed by different statutes and regulations.</p>
            
            <h3>Component Breakdown of Every NJ Traffic Ticket</h3>
            
            <table class="data-table">
                <thead>
                    <tr>
                        <th>Component</th>
                        <th>Typical Amount</th>
                        <th>NJ Statute</th>
                        <th>Purpose / Notes</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td><strong>Base Fine</strong></td>
                        <td>$50 &#8211; $500+</td>
                        <td>NJSA 39:4-104</td>
                        <td>Set by municipal court within statutory ranges</td>
                    </tr>
                    <tr>
                        <td><strong>Court Costs</strong></td>
                        <td>$33.00</td>
                        <td>NJSA 22A:3-4</td>
                        <td>Fixed fee for court administration</td>
                    </tr>
                    <tr>
                        <td><strong>NJ Surcharge</strong></td>
                        <td>$50 or $250</td>
                        <td>NJSA 39:5-41.1</td>
                        <td>$250 for speeding 20+ mph over, $50 for most others</td>
                    </tr>
                    <tr>
                        <td><strong>Violent Crimes Compensation</strong></td>
                        <td>$50.00</td>
                        <td>NJSA 2C:43-3.1</td>
                        <td>Mandatory assessment on all moving violations</td>
                    </tr>
                    <tr>
                        <td><strong>Safe Neighborhoods Fee</strong></td>
                        <td>$75.00</td>
                        <td>NJSA 2C:43-3.2</td>
                        <td>Additional mandatory assessment</td>
                    </tr>
                    <tr>
                        <td><strong>Court Automation Fee</strong></td>
                        <td>$1.00</td>
                        <td>NJSA 2B:1-7</td>
                        <td>Technology fund contribution</td>
                    </tr>
                </tbody>
            </table>
            <p class="table-note">Note: The Violent Crimes Compensation and Safe Neighborhoods fees are <strong>NOT waivable</strong> by any judge, even if the base fine is reduced.</p>
            
            <!-- Section 3: Points System -->
            <h2>New Jersey Motor Vehicle Point System Explained</h2>
            
            <p>New Jersey assigns points to your driving record for traffic convictions. Accumulating too many points can lead to additional penalties:</p>
            
            <div class="feature-grid">
                <div class="feature-card">
                    <h4>6+ Points</h4>
                    <p><strong>Driver Responsibility Assessment:</strong> $150 per year for 3 years ($450 total) payable to NJ MVC</p>
                </div>
                <div class="feature-card warning">
                    <h4>12+ Points</h4>
                    <p><strong>License Suspension:</strong> Mandatory license suspension hearing and potential suspension</p>
                </div>
                <div class="feature-card danger">
                    <h4>Insurance Surcharge</h4>
                    <p>Each point can increase premiums 5-20% for 3+ years with most insurers</p>
                </div>
            </div>
            
            <h3>Common Violations and Their Point Values</h3>
            
            <table class="data-table">
                <thead>
                    <tr>
                        <th>Violation</th>
                        <th>NJ Points</th>
                        <th>Typical Base Fine</th>
                        <th>Special Notes</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>Speeding 1-14 mph over</td>
                        <td>2</td>
                        <td>$85</td>
                        <td>Most common violation</td>
                    </tr>
                    <tr>
                        <td>Speeding 15-29 mph over</td>
                        <td>4</td>
                        <td>$140</td>
                        <td>Higher insurance impact</td>
                    </tr>
                    <tr>
                        <td>Speeding 30+ mph over</td>
                        <td>5</td>
                        <td>$220</td>
                        <td>Court appearance required</td>
                    </tr>
                    <tr>
                        <td>Handheld Cell Phone Use</td>
                        <td>2</td>
                        <td>$200-$400</td>
                        <td>Increased 7/1/2026 &#8211; No plea bargains</td>
                    </tr>
                    <tr>
                        <td>Running Red Light</td>
                        <td>2</td>
                        <td>$85</td>
                        <td>Often captured on camera</td>
                    </tr>
                    <tr>
                        <td>Careless Driving</td>
                        <td>2</td>
                        <td>$85-$200</td>
                        <td>Discretionary charge</td>
                    </tr>
                    <tr>
                        <td>Reckless Driving</td>
                        <td>5</td>
                        <td>$50-$200</td>
                        <td>Criminal offense, not traffic</td>
                    </tr>
                    <tr>
                        <td>Failure to Stop at Stop Sign</td>
                        <td>2</td>
                        <td>$85</td>
                        <td>Common in residential areas</td>
                    </tr>
                </tbody>
            </table>
            
            <!-- Section 4: Insurance Impact -->
            <h2>Insurance Premium Increases: The Hidden Cost</h2>
            
            <p>The most expensive part of a traffic ticket is often the <strong>3-year insurance premium increase</strong>. New Jersey insurance companies use a &#8220;surcharge schedule&#8221; approved by the Department of Banking and Insurance.</p>
            
            <h3>Average Annual Premium Increases by Violation</h3>
            
            <table class="data-table">
                <thead>
                    <tr>
                        <th>Violation Type</th>
                        <th>Average Annual Increase</th>
                        <th>3-Year Total</th>
                        <th>Notes</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>2-Point Violation (Speeding 1-14 over)</td>
                        <td>$300 &#8211; $500</td>
                        <td>$900 &#8211; $1,500</td>
                        <td>Most common increase</td>
                    </tr>
                    <tr>
                        <td>4-Point Violation (Speeding 15-29 over)</td>
                        <td>$600 &#8211; $1,000</td>
                        <td>$1,800 &#8211; $3,000</td>
                        <td>Significant impact</td>
                    </tr>
                    <tr>
                        <td>5-Point Violation (Speeding 30+ over)</td>
                        <td>$900 &#8211; $1,500</td>
                        <td>$2,700 &#8211; $4,500</td>
                        <td>Major premium hike</td>
                    </tr>
                    <tr>
                        <td>Cell Phone Violation</td>
                        <td>$400 &#8211; $700</td>
                        <td>$1,200 &#8211; $2,100</td>
                        <td>Distracted driving surcharge</td>
                    </tr>
                    <tr>
                        <td>DUI / DWI</td>
                        <td>$1,500 &#8211; $3,000</td>
                        <td>$4,500 &#8211; $9,000</td>
                        <td>Plus SR-22 requirement</td>
                    </tr>
                </tbody>
            </table>
            
            <!-- FAQ Section -->
            <h2>Frequently Asked Questions</h2>
            <div class="faq-container">
                <div class="faq-item">
                    <div class="faq-question">How accurate is this New Jersey traffic ticket calculator?</div>
                    <div class="faq-answer">
                        <p>Our calculator is based on current NJ statutes, MVC guidelines, and insurance industry data. It provides accurate estimates for standard violations. However, final amounts are determined by the municipal court listed on your ticket, and insurance impacts vary by company and driver profile.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">Can I reduce or dismiss my NJ traffic ticket?</div>
                    <div class="faq-answer">
                        <p>Yes, several options exist: 1) <strong>Plea bargain</strong> to a non-moving violation (0 points), 2) Take a <strong>defensive driving course</strong> for 2-point reduction (once every 5 years), 3) <strong>Fight the ticket</strong> with evidence or legal arguments, 4) Request a <strong>conditional discharge</strong> for first offenses in some municipalities.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">What happens if I ignore my NJ traffic ticket?</div>
                    <div class="faq-answer">
                        <p>Ignoring a ticket leads to: 1) Additional late fees, 2) License suspension, 3) Bench warrant for your arrest, 4) Increased insurance rates, 5) Collection agency involvement. Always respond by the court date on your ticket.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">How long do points stay on my NJ driving record?</div>
                    <div class="faq-answer">
                        <p>Points remain active for <strong>2 years from violation date</strong> but stay on your permanent record. Insurance companies typically look back 3-5 years. Points drop off your active count after 2 years but the violation remains visible.</p>
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question">Should I hire a traffic attorney for my NJ ticket?</div>
                    <div class="faq-answer">
                        <p>Consider an attorney if: 1) License suspension is possible, 2) It&#8217;s a 4+ point violation, 3) You&#8217;re a commercial driver, 4) You have multiple recent violations, 5) The ticket is for DUI/DWI or reckless driving. Many offer free consultations.</p>
                    </div>
                </div>
            </div>
            
            <!-- Disclaimer -->
            <div class="disclaimer-box">
                <p><strong>⚠️ Legal Disclaimer:</strong> This calculator and guide provide estimates and general information only. Fines, fees, and procedures are subject to change by the New Jersey Legislature, Courts, and Motor Vehicle Commission. This is not legal advice. For specific guidance on your traffic ticket, consult the municipal court listed on your citation or a licensed New Jersey attorney. Always verify current fees with official sources.</p>
            </div>
        </main>
        
        <!-- SIDEBAR -->
        <aside class="sidebar">
            <!-- Widget 1: Quick Stats -->
            <div class="sidebar-widget">
                <h3 style="border-left: none; padding-left: 0;">NJ Traffic Ticket Statistics</h3>
                <ul style="padding-left: 1.2rem;">
                    <li><strong>1.2 million+</strong> tickets issued annually in NJ</li>
                    <li><strong>42%</strong> of tickets are for speeding violations</li>
                    <li><strong>$400 million+</strong> collected in fines and fees yearly</li>
                    <li><strong>67%</strong> of contested tickets result in reduced charges</li>
                    <li><strong>14 days</strong> to respond to a ticket without penalty</li>
                </ul>
            </div>
            
            <!-- Widget 2: Cost Comparison -->
            <div class="sidebar-widget">
                <h3 style="border-left: none; padding-left: 0;">Ticket Cost Comparison</h3>
                <div style="margin: 1rem 0;">
                    <div style="display: flex; justify-content: space-between; margin-bottom: 0.5rem;">
                        <span>Speeding 10 over:</span>
                        <span style="font-weight: 600;">$95 &#8211; $168</span>
                    </div>
                    <div style="display: flex; justify-content: space-between; margin-bottom: 0.5rem;">
                        <span>Cell Phone Use:</span>
                        <span style="font-weight: 600;">$283 &#8211; $458</span>
                    </div>
                    <div style="display: flex; justify-content: space-between; margin-bottom: 0.5rem;">
                        <span>Red Light:</span>
                        <span style="font-weight: 600;">$140 &#8211; $298</span>
                    </div>
                    <div style="display: flex; justify-content: space-between; margin-bottom: 0.5rem;">
                        <span>Careless Driving:</span>
                        <span style="font-weight: 600;">$85 &#8211; $358</span>
                    </div>
                </div>
            </div>
            
            <!-- Widget 3: Points Reduction -->
            <div class="sidebar-widget warning">
                <h3 style="border-left: none; padding-left: 0;">Reduce Your Points</h3>
                <p><strong>Defensive Driving Course:</strong> Reduce 2 points from your record. Available once every 5 years. Cost: $50-$100.</p>
                <p><strong>Driver Improvement Program:</strong> For 12+ point suspensions. Can reduce 3 points upon completion.</p>
                <p><strong>Clean Driving:</strong> 1 year without violations/violent offenses = 3 point reduction.</p>
            </div>
            
            <!-- Widget 4: Important Deadlines -->
            <div class="sidebar-widget">
                <h3 style="border-left: none; padding-left: 0;">Critical Deadlines</h3>
                <div style="margin: 1rem 0;">
                    <div style="background: #e8f4fc; padding: 0.8rem; border-radius: 6px; margin-bottom: 0.8rem;">
                        <div style="font-weight: 600; color: var(--primary-color);">Response Deadline</div>
                        <div>14 days from ticket date</div>
                    </div>
                    <div style="background: #e8f4fc; padding: 0.8rem; border-radius: 6px; margin-bottom: 0.8rem;">
                        <div style="font-weight: 600; color: var(--primary-color);">Payment Deadline</div>
                        <div>Typically 30-60 days</div>
                    </div>
                    <div style="background: #e8f4fc; padding: 0.8rem; border-radius: 6px;">
                        <div style="font-weight: 600; color: var(--primary-color);">Appeal Window</div>
                        <div>20 days from conviction</div>
                    </div>
                </div>
            </div>
            
            <!-- Widget 5: Official Resources -->
            <div class="sidebar-widget">
                <h3 style="border-left: none; padding-left: 0;">Official Resources</h3>
                <ul style="padding-left: 1.2rem;">
                    <li><a href="https://www.njcourts.gov/self-help/traffic-tickets" target="_blank" rel="noopener">NJ Courts Ticket Info</a></li>
                    <li><a href="https://www.state.nj.us/mvc/" target="_blank" rel="noopener">NJ Motor Vehicle Commission</a></li>
                    <li><a href="https://www.nj.gov/oag/insurance/" target="_blank" rel="noopener">NJ Dept of Banking &#038; Insurance</a></li>
                    <li><a href="https://www.nj.gov/oag/jjc/" target="_blank" rel="noopener">NJ Judiciary Case Search</a></li>
                </ul>
            </div>
        </aside>
    </div>
    
    <footer class="site-footer">
        <p>©  <a href="https://24car-repair.com/">24Car-Repair.com</a> | This informational resource is designed to help New Jersey drivers understand traffic violations. We are not affiliated with any government agency and do not provide legal services.</p>
    </footer>
    
    <script>
        // Calculator Data Structure
        const violationData = {
            'speeding1-14': { base: 85, surcharge: 50, points: 2, insurance: 350 },
            'speeding15-19': { base: 140, surcharge: 50, points: 4, insurance: 650 },
            'speeding20-24': { base: 180, surcharge: 250, points: 4, insurance: 800 },
            'speeding25-29': { base: 220, surcharge: 250, points: 4, insurance: 950 },
            'speeding30plus': { base: 260, surcharge: 250, points: 5, insurance: 1200 },
            'cellphone': { base: 250, surcharge: 50, points: 2, insurance: 450 },
            'redlight': { base: 85, surcharge: 50, points: 2, insurance: 400 },
            'stop_sign': { base: 85, surcharge: 50, points: 2, insurance: 350 },
            'unsafe_lane': { base: 85, surcharge: 50, points: 2, insurance: 350 },
            'careless': { base: 85, surcharge: 50, points: 2, insurance: 500 },
            'reckless': { base: 200, surcharge: 50, points: 5, insurance: 1500 },
            'dui': { base: 500, surcharge: 250, points: 9, insurance: 2500 },
            'seatbelt_driver': { base: 46, surcharge: 0, points: 0, insurance: 0 },
            'seatbelt_passenger': { base: 46, surcharge: 0, points: 0, insurance: 0 },
            'expired_reg': { base: 100, surcharge: 0, points: 0, insurance: 0 }
        };
        
        // Insurance multiplier based on company
        const insuranceMultipliers = {
            'average': 1.0,
            'allstate': 1.1,
            'statefarm': 0.9,
            'geico': 1.0,
            'progressive': 1.05,
            'njmanufacturers': 0.8,
            'libertymutual': 1.15
        };
        
        // County adjustments
        const countyAdjustments = {
            'standard': 1.0,
            'bergen': 1.15,
            'middlesex': 1.05,
            'essex': 1.2,
            'monmouth': 1.1,
            'ocean': 1.0,
            'hudson': 1.18,
            'union': 1.07,
            'camden': 1.03,
            'passaic': 1.12
        };
        
        // Prior ticket multipliers
        const priorTicketMultipliers = {
            '0': 1.0,
            '1': 1.1,
            '2': 1.25,
            '3': 1.5
        };
        
        // Fixed fees
        const fixedFees = {
            courtCosts: 33,
            vcc: 50,
            snf: 75,
            automation: 1
        };
        
        // Calculate function
        document.getElementById('calculateBtn').addEventListener('click', function() {
            const violationType = document.getElementById('violationType').value;
            const county = document.getElementById('county').value;
            const priorTickets = document.getElementById('priorTickets').value;
            const insuranceCompany = document.getElementById('insuranceCompany').value;
            
            if (!violationType) {
                alert('Please select a violation type');
                return;
            }
            
            const data = violationData[violationType];
            const countyMultiplier = countyAdjustments[county];
            const priorMultiplier = priorTicketMultipliers[priorTickets];
            const insuranceMultiplier = insuranceMultipliers[insuranceCompany];
            
            // Calculate base amounts
            const adjustedBase = Math.round(data.base * countyMultiplier * priorMultiplier);
            const surcharge = data.surcharge;
            
            // Calculate total fines and fees
            const totalFines = adjustedBase + surcharge + fixedFees.courtCosts + 
                              fixedFees.vcc + fixedFees.snf + fixedFees.automation;
            
            // Calculate insurance impact (annual * 3 years * multipliers)
            const baseInsurance = data.insurance;
            const adjustedInsurance = Math.round(baseInsurance * insuranceMultiplier * priorMultiplier);
            const threeYearInsurance = adjustedInsurance * 3;
            
            // Update displays
            document.getElementById('totalFines').textContent = '$' + totalFines.toLocaleString();
            document.getElementById('pointsAdded').textContent = data.points;
            document.getElementById('insuranceImpact').textContent = '$' + threeYearInsurance.toLocaleString();
            
            // Update breakdown
            document.getElementById('breakdownBase').textContent = '$' + adjustedBase.toLocaleString();
            document.getElementById('breakdownSurcharge').textContent = '$' + surcharge.toLocaleString();
            document.getElementById('breakdownCourt').textContent = '$' + fixedFees.courtCosts.toLocaleString();
            document.getElementById('breakdownVcc').textContent = '$' + fixedFees.vcc.toLocaleString();
            document.getElementById('breakdownSnf').textContent = '$' + fixedFees.snf.toLocaleString();
            document.getElementById('breakdownAuto').textContent = '$' + fixedFees.automation.toLocaleString();
            
            // Show breakdown
            document.getElementById('detailedBreakdown').style.display = 'block';
        });
        
        // FAQ Accordion
        document.querySelectorAll('.faq-question').forEach(item => {
            item.addEventListener('click', () => {
                const parent = item.parentNode;
                parent.classList.toggle('active');
            });
        });
        
        // Auto-calculate on dropdown change
        document.querySelectorAll('select').forEach(select => {
            select.addEventListener('change', () => {
                if (document.getElementById('violationType').value) {
                    document.getElementById('calculateBtn').click();
                }
            });
        });
        
        // Initialize with default calculation if a violation is selected
        document.addEventListener('DOMContentLoaded', () => {
            if (document.getElementById('violationType').value) {
                document.getElementById('calculateBtn').click();
            }
        });
    </script>
]]></content:encoded>
					
					<wfw:commentRss>https://24car-repair.com/new-jersey-traffic-ticket-calculator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
