/* Modern Styles for Updated Homepage with Consistent Font */

/* Using System Fonts for Better Performance */
:root {
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Override font families ONLY for specific modern sections - EXCLUDE hero, forms, modals */
.trust-bar:not(.hero):not(.modal):not(.auth-form-container), .trust-bar:not(.hero):not(.modal):not(.auth-form-container) *, 
.pricing-section:not(.hero):not(.modal):not(.auth-form-container), .pricing-section:not(.hero):not(.modal):not(.auth-form-container) *,
.how-to-read:not(.hero):not(.modal):not(.auth-form-container), .how-to-read:not(.hero):not(.modal):not(.auth-form-container) *,
.faq-section .faq-grid:not(.hero):not(.modal):not(.auth-form-container), .faq-section .faq-grid:not(.hero):not(.modal):not(.auth-form-container) *,
.modern-pricing-grid:not(.hero):not(.modal):not(.auth-form-container), .modern-pricing-grid:not(.hero):not(.modal):not(.auth-form-container) *,
.modern-pricing-card:not(.hero):not(.modal):not(.auth-form-container), .modern-pricing-card:not(.hero):not(.modal):not(.auth-form-container) *,
.modern-section-title:not(.hero):not(.modal):not(.auth-form-container) {
    font-family: var(--font-family);
}

/* Only apply font smoothing to modern sections to avoid affecting original styles */
.trust-bar, .pricing-section, .how-to-read, .faq-section {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* PRESERVE ORIGINAL STYLES - DO NOT MODIFY */
/* Ensure forms remain completely untouched - but NOT hero */
.modal, .modal *,
.auth-form-container, .auth-form-container *,
.form-group, .form-group *,
.password-reset-container, .password-reset-container * {
    font-family: 'Arial', sans-serif !important;
}

/* CRITICAL: Ensure hero section has NO gradient and uses original flat color */
.hero {
    background: #1a3c6e !important; /* Original flat primary color */
    background-color: #1a3c6e !important;
    background-image: none !important;
}

/* Prevent any child elements from adding gradients */
.hero::before,
.hero::after,
.hero * {
    background-image: none !important;
}

/* Trust Bar */
.trust-bar {
    background: #f9fafb;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.payment-methods {
    display: flex;
    gap: 0.5rem;
}

.payment-methods img {
    height: 30px;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background: #fff;
}

.modern-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
}

.modern-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.modern-pricing-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.modern-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modern-pricing-card.popular {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #3b82f6;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e3a8a;
    margin: 1rem 0;
}

.price-per {
    font-size: 0.9rem;
    color: #6b7280;
}

.pricing-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #4b5563;
}

.pricing-features li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
}

.pricing-btn {
    background: #1e3a8a;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.pricing-btn:hover {
    background: #1e3a8a;
}

/* Pricing Toggle */
.pricing-toggle {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s;
}

.pricing-toggle.active {
    background: white;
    color: #1e3a8a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.price-wrapper {
    min-height: 100px;
}

/* How to Read Section */
.how-to-read {
    background: #f3f4f6;
    padding: 4rem 0;
}

.tabs-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom: 3px solid #3b82f6;
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.report-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.guide-text h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.guide-text ul {
    list-style: none;
}

.guide-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.guide-text li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3b82f6;
}

.guide-image {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

/* Detailed Report Sections */
.report-sections {
    max-width: 900px;
    margin: 0 auto;
}

.report-sections h3 {
    color: #1e3a8a;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

.report-section-detail {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.report-section-detail:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.report-section-detail h4 {
    background: #1e3a8a;
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.2rem;
}

.section-content {
    padding: 1.5rem;
}

.section-content p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.section-content ul {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
}

.section-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #374151;
}

.section-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.pro-tip {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    border-radius: 5px;
    color: #1e40af;
}

.warning-note {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    border-radius: 5px;
    color: #991b1b;
}

/* Visual Example Styles */
.visual-example {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.visual-example-header {
    background: #f3f4f6;
    padding: 0.5rem 1rem;
    margin: -1rem -1rem 1rem -1rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
}

.carfax-example {
    font-family: 'Roboto', sans-serif !important;
}

.carfax-example .header-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.carfax-example .header-row:last-child {
    border-bottom: none;
}

.carfax-example .icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
}

.carfax-example .flagged {
    color: #dc2626;
    font-weight: 600;
}

.autocheck-example {
    font-family: 'Roboto', sans-serif !important;
}

.autocheck-example .score-section {
    text-align: center;
    padding: 1rem;
}

.autocheck-example .score {
    font-size: 3rem;
    font-weight: bold;
    color: #1e3a8a;
    line-height: 1;
}

.autocheck-example .score-range {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.autocheck-example .check-section {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.autocheck-example .check-pass {
    background: #d1fae5;
    color: #065f46;
}

.autocheck-example .check-fail {
    background: #fee2e2;
    color: #991b1b;
}

.autocheck-example .check-icon {
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Responsive Visual Examples */
@media (max-width: 768px) {
    .visual-example {
        font-size: 0.75rem;
    }
    
    .autocheck-example .score {
        font-size: 2rem;
    }
}

/* Download Guide Button */
.download-guide {
    text-align: center;
    margin-top: 2rem;
}

.download-btn {
    background: #10b981;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.download-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: white;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f9fafb;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f3f4f6;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #3b82f6;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Footer */
.footer-section footer {
    background: #1e3a8a;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    line-height: 2;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

.security-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.security-badge {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #1e3a8a;
    font-weight: 600;
}

/* Floating elements */
.floating-trust {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 300px;
    z-index: 100;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.floating-trust-header {
    font-weight: 600;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.floating-trust-text {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .trust-items {
        gap: 1rem;
    }
    
    .modern-pricing-card.popular {
        transform: scale(1);
    }
    
    .report-guide {
        grid-template-columns: 1fr;
    }
    
    .floating-trust {
        display: none;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom: 1px solid #e5e7eb;
        border-left: 3px solid #3b82f6;
    }
    
    /* Make tabs section full width on mobile */
    .how-to-read {
        padding: 2rem 0;
    }
    
    .how-to-read .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .tabs-container {
        max-width: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .modern-section-title {
        padding: 0 1rem;
    }
    
    .section-subtitle {
        padding: 0 1rem;
    }
}

/* Even smaller screens (mobile phones) */
@media (max-width: 480px) {
    .tab-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .tab-content {
        padding: 1rem 0.75rem;
    }
    
    .report-section-detail h4 {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .section-content {
        padding: 1rem;
    }
}

/* Hero Section Updates - REMOVED to preserve original flat color */
/* Gradient removed - hero section should use original styles.css styling */

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search Section Updates */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.search-btn {
    background: #f59e0b;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #d97706;
}

/* Typography Updates - Scoped to modern sections only */
.pricing-section h1, .pricing-section h2, .pricing-section h3, .pricing-section h4, .pricing-section h5, .pricing-section h6,
.how-to-read h1, .how-to-read h2, .how-to-read h3, .how-to-read h4, .how-to-read h5, .how-to-read h6,
.faq-section h1, .faq-section h2, .faq-section h3, .faq-section h4, .faq-section h5, .faq-section h6,
.trust-bar h1, .trust-bar h2, .trust-bar h3, .trust-bar h4, .trust-bar h5, .trust-bar h6 {
    font-weight: 600;
    line-height: 1.2;
}

.pricing-section p, .how-to-read p, .faq-section p, .trust-bar p {
    line-height: 1.6;
}

/* Modern Button Typography */
.modern-button, .pricing-btn, .download-btn {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* ================== CARFAX Original Report Styles ================== */

/* CARFAX Vehicle Information */
.carfax-original-vehicle-info {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-family: 'Roboto', sans-serif !important;
}

.carfax-original-year-make-model {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.carfax-original-vin-line {
    font-size: 0.95rem;
    margin: 0.5rem 0;
    color: #374151;
}

.carfax-original-vin-line span:first-child {
    font-weight: 600;
    color: #6b7280;
}

.carfax-original-specs-line {
    font-size: 0.9rem;
    margin: 0.3rem 0;
    color: #4b5563;
    padding-left: 0.5rem;
}

/* CARFAX History Overview Rows */
.carfax-original-history-overview-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-family: 'Roboto', sans-serif !important;
}

.carfax-original-history-overview-row:hover {
    background: #f9fafb;
}

.carfax-original-history-overview-row.carfax-original-alert {
    background: #fef2f2;
    border-color: #fecaca;
}

.carfax-original-history-overview-cell {
    display: flex;
    align-items: center;
}

.carfax-original-history-overview-icon-cell {
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.carfax-original-history-overview-text-cell {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
}

.carfax-original-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.carfax-original-problem-text {
    color: #dc2626;
    font-weight: 600;
}

/* CARFAX Accident Damage Record */
.carfax-original-accident-damage-record {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
    margin: 1rem 0;
    overflow: hidden;
    font-family: 'Roboto', sans-serif !important;
}

.carfax-original-accident-damage-record-title {
    background: #fef2f2;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #fecaca;
}

.carfax-original-accident-damage-record-title h4 {
    margin: 0;
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 700;
}

.carfax-original-accident-damage-record-content {
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.carfax-original-accident-damage-record-comments {
    flex: 1;
}

.carfax-original-record-comments-groups {
    list-style: none;
    margin: 0;
    padding: 0;
}

.carfax-original-record-comments-group {
    margin-bottom: 1rem;
}

.carfax-original-comments-group-outer-line {
    display: block;
    color: #dc2626;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carfax-original-record-comments-group-inner-lines {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
}

.carfax-original-record-comments-group-inner-line {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0.25rem 0;
    position: relative;
}

.carfax-original-record-comments-group-inner-line::before {
    content: "•";
    color: #dc2626;
    position: absolute;
    left: -0.75rem;
}

.carfax-original-accident-damage-section-severity-and-points-of-impact {
    flex-shrink: 0;
}

.carfax-original-poi-image {
    width: 120px;
    height: 80px;
    position: relative;
}

.carfax-original-poi-image svg {
    width: 100%;
    height: 100%;
}

/* ================== AUTOCHECK Original Report Styles ================== */

/* AutoCheck Summary Box */
.autocheck-original-summary-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif !important;
}

.autocheck-original-box-title-score {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.autocheck-original-score-meter-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.autocheck-original-score-area {
    position: relative;
    flex-shrink: 0;
}

.autocheck-original-gauge-img {
    width: 120px;
    height: 120px;
}

.autocheck-original-mainScore {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e3a8a;
}

.autocheck-original-low-score,
.autocheck-original-high-score {
    position: absolute;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 600;
}

.autocheck-original-low-score {
    bottom: 15px;
    left: 15px;
}

.autocheck-original-high-score {
    bottom: 15px;
    right: 15px;
}

.autocheck-original-score-text {
    flex: 1;
}

.autocheck-original-score-text p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
}

.autocheck-original-inline-high-low span {
    font-weight: 600;
    color: #1e3a8a;
}

/* AutoCheck At a Glance Header */
.autocheck-original-at-glance-header {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

/* AutoCheck Summary Grid */
.autocheck-original-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.autocheck-original-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    font-family: 'Arial', sans-serif !important;
}

.autocheck-original-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.autocheck-original-card-body {
    padding: 1rem;
}

.autocheck-original-media {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.autocheck-original-card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.autocheck-original-media-body {
    flex: 1;
}

.autocheck-original-large-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}

.autocheck-original-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.autocheck-original-font-weight-bold {
    font-weight: 600;
    color: #374151;
}

.autocheck-original-card-footer {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

.autocheck-original-card-footer-icon {
    flex-shrink: 0;
}

.autocheck-original-card-footer-icon-sm {
    width: 16px;
    height: 16px;
}

.autocheck-original-card-footer-text {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

/* AutoCheck Accident Section */
.autocheck-original-accident-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    font-family: 'Arial', sans-serif !important;
}

.autocheck-original-accident-box {
    text-align: center;
}

.autocheck-original-car-img-div {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.autocheck-original-car-img-icons {
    width: 180px;
    height: auto;
}

.autocheck-original-damage-indicator {
    position: absolute;
    width: 16px;
    height: 16px;
}

.autocheck-original-damage-indicator.autocheck-original-left {
    top: 30%;
    left: -5px;
}

.autocheck-original-accident-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    justify-items: center;
}

.autocheck-original-event {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.autocheck-original-event.autocheck-original-active {
    opacity: 1;
}

.autocheck-original-special-icons {
    width: 48px;
    height: 48px;
}

.autocheck-original-accident-type-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

/* Responsive adjustments for report examples */
@media (max-width: 768px) {
    .carfax-original-accident-damage-record-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .autocheck-original-score-meter-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .autocheck-original-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .autocheck-original-accident-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ================== ACTUAL CARFAX CSS STYLES ================== */

/* History-Based Value Report Section */
.history-based-value {
    margin-bottom: 24px;
}

.history-based-value .back-to-top {
    display: none;
}

.history-based-value button {
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

.new-hbv-section .history-based-value-content {
    display: grid;
    grid-template-columns: 50% 50%;
    border: 1px solid #bdbdbd;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    justify-items: center;
}

@media screen and (max-width: 1049px) {
    .new-hbv-section .history-based-value-content {
        display: block;
    }
}

@media screen and (max-width: 719px) {
    .new-hbv-section .history-based-value-content {
        height: auto;
    }
    
    .new-hbv-section .history-based-value-content .arrows-container {
        order: 0;
    }
    
    .new-hbv-section .history-based-value-content .value-container {
        order: 2;
    }
}

.new-hbv-section .history-based-value-content .hbv-badge-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    grid-row: 1/3;
    width: 100%;
    height: 100%;
    background-color: #f3f8fd;
}

@media screen and (max-width: 719px) {
    .new-hbv-section .history-based-value-content .hbv-badge-container {
        background-color: rgba(0,0,0,0);
        grid-row: initial;
        order: 1;
        padding-top: 8px;
    }
}

.new-hbv-section .history-based-value-content.hbv-content-with-badge {
    grid-template-rows: auto auto;
}

@media screen and (max-width: 719px) {
    .new-hbv-section .history-based-value-content.hbv-content-with-badge {
        grid-template-columns: 25% 75%;
        grid-template-rows: min-content min-content min-content;
    }
    
    .new-hbv-section .history-based-value-content.hbv-content-with-badge {
        grid-template-columns: 100%;
        grid-template-rows: min-content min-content min-content;
    }
}

/* Section Header Styles */
.section-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #1976d2;
    border-radius: 4px 4px 0 0;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 57px;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #fff;
}

@media screen and (max-width: 1049px) {
    .section-header {
        border-radius: initial;
    }
}

.section-header-right-side {
    margin-right: 16px;
}

@media screen and (max-width: 719px) {
    .section-header-right-side {
        display: none;
        margin-right: 0;
    }
}

.section-header-right-side a,
.section-header-right-side a:visited {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    text-decoration: underline;
}

.section-header-right-side a:hover {
    color: #fff;
    cursor: pointer;
}

.section-header-title-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-left: 16px;
    margin-right: 16px;
}

@media screen and (max-width: 959px) {
    .section-header-title-block {
        margin-right: 8px;
    }
}

.section-header-title-subtitle-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-header-title-logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.section-header-logo {
    height: 24px;
    width: 128px;
}

@media screen and (max-width: 719px) {
    .section-header-logo {
        display: none;
    }
}

.section-header-title-text {
    font-size: 18px;
    font-weight: 700;
    margin-left: 10px;
    white-space: nowrap;
}

@media screen and (max-width: 719px) {
    .section-header-title-text {
        font-size: 16px;
        margin-left: 0;
    }
}

.section-header-subtitle-text {
    font-weight: 400;
}

@media screen and (max-width: 1049px) {
    .section-header-subtitle-text {
        font-size: 12px;
    }
}

/* CARFAX Prices and Values */
.new-hbv-section .carfax-prices {
    display: flex;
    flex-direction: column;
    padding-top: 24px;
    padding-left: 24px;
    margin-right: 24px;
    margin-bottom: 16px;
}

@media screen and (max-width: 719px) {
    .new-hbv-section .carfax-prices {
        padding-top: 12px;
    }
}

.new-hbv-section .hbv-content-with-badge .badge-values-box {
    height: 32px;
    width: 320px;
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 8px;
    grid-auto-rows: 50%;
}

.new-hbv-section .hbv-content-with-badge .carfax-value-row {
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 719px) {
    .new-hbv-section .hbv-content-with-badge .carfax-value-row {
        font-size: 12px;
    }
}

.new-hbv-section .hbv-content-with-badge .carfax-value-row p {
    margin-right: 4px;
}

.new-hbv-section .carfax-price-text p:first-child,
.new-hbv-section .compared-price-text p:first-child {
    font-size: 32px;
    font-weight: 700;
}

@media screen and (max-width: 719px) {
    .new-hbv-section .carfax-price-text p:first-child,
    .new-hbv-section .compared-price-text p:first-child {
        font-size: 24px;
    }
}

/* Button and Toggle Row */
.new-hbv-section .button-and-toggle-row {
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    margin-bottom: 16px;
}

.new-hbv-section .button-and-toggle-row .hbv-update-trim-and-options-button {
    font-size: 16px;
    height: auto;
}

.new-hbv-section .button-and-toggle-row .radio-group-input[data-vertical] .radio-input {
    font-size: 16px;
    padding: 4px 0;
}

.new-hbv-section .button-and-toggle-row .radio-group-input[data-vertical] .radio-input_circle {
    top: 3px;
}

.new-hbv-section .button-and-toggle-row .hbv-value-toggle {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 16px;
}

@media screen and (max-width: 1049px) {
    .new-hbv-section .button-and-toggle-row {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 719px) {
    .new-hbv-section .button-and-toggle-row {
        justify-content: center;
        padding-top: 16px;
    }
}

/* Radio Group Input Styles */
.radio-group-input {
    border: none;
    display: inline-flex;
    position: relative;
    user-select: none;
}

.radio-group-input[data-vertical] {
    flex-direction: column;
}

.radio-group-input[data-vertical] .radio-input_label:not([data-align-left]) {
    padding-left: 16px;
}

.radio-input {
    color: #212121;
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    padding: 12px 0px;
    position: relative;
    width: auto;
}

.radio-input:not(.radio-input-chip) {
    align-items: flex-start;
    display: flex;
}

.radio-input:hover .radio-input_circle {
    background-color: #e7f1fb;
}

.radio-input[data-checked]:not([data-disabled]):hover .radio-input_circle {
    background-color: #fff;
    border-color: #004789;
}

.radio-input[data-checked]:not([data-disabled]):hover .radio-input_circle:after {
    background-color: #004789;
}

.radio-input[data-checked] .radio-input_circle {
    border-color: #005cb2;
}

.radio-input[data-checked] .radio-input_circle:after {
    background-color: #005cb2;
    opacity: 1;
    transform: scale(1);
}

.radio-input_label {
    flex-grow: 1;
}

.radio-input_circle {
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid #929292;
    flex-shrink: 0;
    height: 18px;
    position: relative;
    top: 2px;
    width: 18px;
}

.radio-input_circle:after {
    border-radius: 50%;
    content: " ";
    display: block;
    height: 10px;
    left: 2px;
    opacity: 0;
    position: absolute;
    top: 2px;
    transform-origin: center;
    transform: scale(0);
    transition: transform .25s, opacity .25s;
    width: 10px;
}

/* Arrows Container */
.arrows-container-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 24px 0;
    border-left: 1px solid #bdbdbd;
}

@media screen and (max-width: 1049px) {
    .arrows-container-wrapper {
        justify-content: flex-start;
        padding: 0 24px;
        border-left: none;
    }
}

.arrows-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 418px;
}

@media screen and (min-width: 720px) and (max-width: 1049px) {
    .arrows-container {
        max-width: 540px;
    }
}

@media screen and (max-width: 719px) {
    .arrows-container {
        max-width: none;
    }
}

.arrows-container-arrows {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 12px;
    width: auto;
}

@media screen and (min-width: 720px) and (max-width: 1049px) {
    .arrows-container-arrows {
        display: grid;
        grid-template-columns: auto auto;
        padding: 0 0 24px 0;
    }
}

@media screen and (max-width: 719px) {
    .arrows-container-arrows {
        padding: 0 0 16px 0;
    }
}

.arrows-container > h3 {
    padding-top: 16px;
    color: #212121;
    font-size: 18px;
    font-weight: 700;
}

@media screen and (min-width: 720px) and (max-width: 1049px) {
    .arrows-container > h3 {
        font-size: 18px;
    }
}

@media screen and (max-width: 719px) {
    .arrows-container > h3 {
        font-size: 14px;
    }
}

.arrows-container-arrow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: auto;
    font-weight: 700;
}

@media screen and (max-width: 719px) {
    .arrows-container-arrow {
        font-size: 12px;
        width: auto;
    }
}

.arrows-container-arrow > p {
    font-weight: 400;
    text-align: left;
}

@media(min-width: 720px) {
    .arrows-container-arrow > p {
        font-size: 16px;
    }
}

@media screen and (max-width: 719px) {
    .arrows-container-arrow > p {
        font-size: 14px;
    }
}

.arrows-container-arrow > * {
    margin-right: 8px;
}

.hbv-up-arrow {
    color: #005005;
}

.hbv-down-arrow {
    color: #e37300;
}

.arrows-container-arrow > img {
    width: 68px;
    height: 40px;
}

@media screen and (max-width: 719px) {
    .arrows-container-arrow > img {
        width: 40px;
        height: 24px;
    }
}

.arrows-container-arrow > svg {
    width: 30px;
    height: 30px;
    padding: 4px 0;
}

@media screen and (max-width: 719px) {
    .arrows-container-arrow > svg {
        display: block;
    }
}

/* Value colors */
.fair-value-text {
    color: #1976d2;
}

.good-value-text {
    color: #2e7d32;
}

.great-value-text {
    color: #005005;
}

/* Summary Section */
#summary-section {
    width: 100%;
    margin-bottom: 16px;
    overflow: hidden;
}

#summary-section-title-bar {
    background-color: #1976d2;
    display: flex;
    height: 64px;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 4px 4px 0 0;
}

.summary-section-logo-text {
    display: flex;
    align-items: center;
    flex: 1;
}

#summary-section-title-logo {
    height: 40px;
    margin: auto 10px auto 16px;
}

@media screen and (max-width: 719px) {
    #summary-section-title-logo {
        height: 18px;
        width: 96px;
    }
}

.summary-section-title-text {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

@media screen and (max-width: 719px) {
    .summary-section-title-text {
        font-size: 16px;
    }
}

.summary-section-content {
    display: flex;
    flex-direction: row;
    position: relative;
    border-left: 1px solid #bdbdbd;
    border-right: 1px solid #bdbdbd;
    border-bottom: 1px solid #bdbdbd;
}

@media screen and (max-width: 959px) {
    .summary-section-content {
        flex-direction: column;
        border-bottom: none;
    }
}

/* Vehicle Information Panel */
#vehicle-information-panel {
    display: flex;
    position: relative;
    background: #fff;
    padding: 8px 16px 4px 16px;
    flex-direction: column;
    width: 28%;
    border-right: 1px solid #bdbdbd;
}

@media screen and (max-width: 959px) {
    #vehicle-information-panel {
        width: auto;
        border-right: none;
        border-bottom: 1px solid #bdbdbd;
        padding: 12px;
        min-height: 100px;
    }
}

.vehicle-information {
    line-height: 16px;
}

@media screen and (max-width: 719px) {
    .vehicle-information {
        max-width: 66%;
    }
}

.vehicle-information label {
    color: #306099;
}

.vehicle-information-year-make-model {
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    margin-bottom: 4px;
}

@media screen and (max-width: 719px) {
    .vehicle-information-year-make-model {
        font-size: 16px;
    }
}

/* History Overview */
#history-overview {
    width: 72%;
    min-height: 200px;
}

@media screen and (max-width: 959px) {
    #history-overview {
        min-height: auto;
        position: relative;
        width: 100%;
        border-bottom: 1px solid #bdbdbd;
    }
}

.history-overview-row {
    display: flex;
}

.history-overview-row,
.history-overview-row:visited,
.history-overview-row:hover {
    color: #212121;
}

.history-overview-row:hover {
    display: flex;
    text-decoration: underline;
    font-weight: 700;
}

.history-overview-row:nth-child(n+1) {
    border-bottom: 1px solid #bdbdbd;
}

.history-overview-cell {
    height: 56px;
    display: flex;
    align-items: center;
}

.history-overview-icon-cell {
    width: 56px;
    justify-content: center;
}

.history-overview-text-cell {
    font-size: 16px;
    width: 100%;
}

@media screen and (max-width: 719px) {
    .history-overview-text-cell {
        font-size: 14px;
    }
}

.history-overview-text-cell strong {
    padding-right: 5px;
}

.scroll-to-link {
    color: #212121;
    text-decoration: none;
}

.scroll-to-link-without-underline {
    text-decoration: none;
}

/* Chevron Right Icon */
.history-overview-chevron-right {
    color: #1976d2;
    font-weight: 700;
}

.cfx-icon__chevronRight {
    fill: currentColor;
}

/* Media Queries for History Overview */
@media(min-width: 960px) {
    .vehicle-information-is-taller .history-overview-row:last-of-type {
        margin-bottom: 50px;
    }
    
    .history-overview-is-taller .history-overview-row:last-of-type .history-overview-cell {
        border-bottom: none;
    }
    
    .history-overview-row .history-overview-text-cell span {
        max-width: 100%;
    }
    
    .history-overview-row:nth-child(4) .history-overview-text-cell span {
        max-width: 74%;
    }
    
    .history-overview-row:nth-child(5) .history-overview-text-cell span {
        max-width: 63%;
    }
    
    .history-overview-row:nth-child(6) .history-overview-text-cell span {
        max-width: 65%;
    }
}

/* Print Styles */
@media print {
    .section-header {
        background-color: #fff;
        color: #212121;
    }
    
    #summary-section-title-bar {
        background-color: #fff;
        border: 1px solid #bdbdbd;
        border-radius: 4px 4px 0 0;
    }
    
    #summary-section-title-bar .summary-section-title-text {
        color: #212121;
    }
    
    .history-overview-cell {
        height: 48px;
    }
    
    .history-overview-chevron-right {
        display: none;
    }
    
    .new-hbv-section .button-and-toggle-row {
        display: none;
    }
}

/* ================== CARFAX TITLE HISTORY TABLE STYLES ================== */

/* Authentic CARFAX Title History Section */
.title-history-section {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dee2e6;
    margin: 1rem 0;
    font-family: var(--font-family);
    border-radius: 8px;
    overflow: hidden;
}

/* Blue Header Section */
.title-history-section .section-header {
    background: #1976d2;
    color: white;
    padding: 1rem;
}

.title-history-section .section-header-title-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.title-history-section .section-header-logo {
    height: 24px;
    width: auto;
    /* Keep the original logo colors, don't invert */
}

.title-history-section .section-header-title-text {
    color: white;
}

/* Column Headers */
.title-history-section .columned-section-column-heading {
    background: #1976d2;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    vertical-align: middle;
    border-right: 1px solid #0d47a1;
}

.title-history-section .columned-section-column-heading:last-child {
    border-right: none;
}

.title-history-section .columned-section-column-heading span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: white;
}

.title-history-section .columned-section-column-heading-owner-icon {
    width: 16px;
    height: 16px;
    fill: white;
}

.title-history-section .columned-section-column-heading-owner-text {
    color: white;
}

/* Table Body */
.title-history-section .common-section-body {
    background: #fff;
}

.title-history-section .common-section-row {
    border-bottom: 1px solid #dee2e6;
}

.title-history-section .common-section-row:last-child {
    border-bottom: none;
}

/* Row Headers */
.title-history-section .common-section-row-heading {
    padding: 1rem;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    vertical-align: top;
    min-width: 300px;
}

.title-history-section .common-section-row-heading span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.title-history-section .info-button {
    background: none;
    border: none;
    color: #1976d2;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
}

.title-history-section .more-information-modal {
    width: 16px;
    height: 16px;
    fill: #1976d2;
}

.title-history-section .row-description {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
    line-height: 1.3;
    margin-top: 0.25rem;
}

/* Data Cells */
.title-history-section td {
    padding: 1rem;
    text-align: center;
    vertical-align: middle;
    background: #fff;
    border-right: 1px solid #dee2e6;
}

.title-history-section td:last-child {
    border-right: none;
}

/* Alert Cells (Red) */
.title-history-section .alert-cell {
    background: #fff;
}

.title-history-section .alert-text {
    color: #d32f2f;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Normal Cells */
.title-history-section .common-section-cell-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-history-section .common-section-cell-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Buyback Guarantee Alert Section */
.buyback-guarantee-alert-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.buyback-guarantee-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 1rem;
}

.buyback-guarantee-alert .alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.buyback-guarantee-alert .alert-text {
    color: #d32f2f;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Title History Timeline Section */
.title-history-timeline {
    margin-top: 1.5rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.timeline-record {
    display: grid;
    grid-template-columns: 100px 80px 1fr 2fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: start;
}

.timeline-record:last-child {
    border-bottom: none;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.timeline-mileage {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.timeline-source {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
}

.timeline-description {
    font-size: 0.9rem;
    color: #333;
}

/* Salvage Record Styling */
.salvage-record {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.salvage-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.timeline-alert-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.salvage-title {
    color: #d32f2f;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-record {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .timeline-date {
        font-weight: 700;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.25rem;
    }
    
    .timeline-mileage {
        font-style: italic;
    }
    
    .timeline-source {
        background: #f8f9fa;
        padding: 0.5rem;
        border-radius: 4px;
    }
}

/* ================== AUTHENTIC CARFAX ACCIDENT/DAMAGE HISTORY STYLES FROM SOURCE ================== */

/* Main Accident/Damage Section */
#accident-damage-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: var(--font-family);
    overflow: hidden;
}

/* Section Header (Blue) */
#accident-damage-section .section-header {
    background: #1976d2;
    color: white;
    padding: 1rem;
}

#accident-damage-section .section-header-title-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

#accident-damage-section .section-header-logo {
    height: 28px;
    width: auto;
}

#accident-damage-section .section-header-subtitle-text {
    font-size: 0.9rem;
    color: white;
    font-weight: normal;
    margin-top: 0.25rem;
    display: block;
    opacity: 0.9;
}

/* Accident Damage Section Content */
.accident-damage-section-content {
    padding: 1.5rem;
}

.accident-damage-initial-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Accident Damage Records */
.accident-damage-record {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
}

.accident-damage-record-title {
    text-align: center;
    margin-bottom: 1rem;
}

.accident-damage-record-title h3 {
    background: #e9ecef;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0;
}

.accident-damage-record-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Record Comments */
.accident-damage-record-comments {
    flex: 1;
}

.accident-damage-record-comments p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

.record-comments-groups {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.record-comments-group {
    margin-bottom: 1rem;
}

.comments-group-outer-line {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.comments-line-alert {
    color: #d32f2f;
    font-weight: 700;
}

.record-comments-group-inner-lines {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1rem;
}

.record-comments-group-inner-line {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.25rem;
}

/* View More Details Link */
.accident-damage-section-view-more-jumplink {
    margin: 1rem 0 0 0;
}

.scroll-to-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1976d2;
    text-decoration: none;
    font-size: 0.9rem;
}

.scroll-to-link:hover {
    text-decoration: underline;
}

.cfx-icon__chevronRight {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Points of Impact Section */
.accident-damage-section-severity-and-points-of-impact {
    flex: 0 0 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.poi-image {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Additional History Table */
#additional-history-section {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #dee2e6;
    margin: 1.5rem 0;
    font-family: var(--font-family);
    border-radius: 8px;
    overflow: hidden;
}

/* Additional History Blue Header */
#additional-history-section .section-header {
    background: #1976d2;
    color: white;
    padding: 1rem;
}

#additional-history-section .section-header-title-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

#additional-history-section .section-header-logo {
    height: 24px;
    width: auto;
}

#additional-history-section .section-header-subtitle-text {
    font-size: 0.9rem;
    color: white;
    font-weight: normal;
    margin-top: 0.25rem;
    display: block;
    opacity: 0.9;
}

/* Additional History Column Headers */
#additional-history-section .columned-section-column-heading {
    background: #1976d2;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    vertical-align: middle;
    border-right: 1px solid #0d47a1;
}

#additional-history-section .columned-section-column-heading:last-child {
    border-right: none;
}

#additional-history-section .columned-section-column-heading span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: white;
}

#additional-history-section .columned-section-column-heading-owner-icon {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Additional History Table Body */
#additional-history-section .common-section-body {
    background: #fff;
}

#additional-history-section .common-section-row {
    border-bottom: 1px solid #dee2e6;
}

#additional-history-section .common-section-row:last-child {
    border-bottom: none;
}

#additional-history-section .common-section-row-heading {
    padding: 1rem;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    vertical-align: top;
    min-width: 300px;
}

#additional-history-section .common-section-row-heading span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

#additional-history-section .more-information-modal {
    width: 16px;
    height: 16px;
    fill: #1976d2;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
}

#additional-history-section .common-section-row-heading div {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
    line-height: 1.3;
}

#additional-history-section td {
    padding: 1rem;
    text-align: center;
    vertical-align: middle;
    background: #fff;
    border-right: 1px solid #dee2e6;
}

#additional-history-section td:last-child {
    border-right: none;
}

#additional-history-section .common-section-cell-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

#additional-history-section .common-section-cell-text {
    font-size: 0.9rem;
    font-weight: 500;
}

#additional-history-section .scroll-to-link {
    color: #1976d2;
    text-decoration: none;
}

#additional-history-section .scroll-to-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .accident-damage-record-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .accident-damage-section-severity-and-points-of-impact {
        flex: none;
        align-self: center;
    }
    
    #additional-history-section .common-section-row-heading {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .accident-damage-section-content {
        padding: 1rem;
    }
    
    .accident-damage-record {
        padding: 1rem;
    }
    
    #additional-history-section .common-section-row-heading,
    #additional-history-section td {
        padding: 0.75rem 0.5rem;
    }
}

/* Responsive design for Title History */
@media (max-width: 768px) {
    .title-history-section {
        font-size: 0.85rem;
    }
    
    .title-history-section .common-section-row-heading,
    .title-history-section .title-history-alert-cell {
        padding: 0.75rem 0.5rem;
    }
    
    .title-history-section .section-header-title-logo-container {
        font-size: 1rem;
    }
    
    .title-history-section .columned-section-column-heading {
        padding: 0.5rem;
    }
    
    .title-history-section .columned-section-column-heading span {
        font-size: 0.8rem;
    }
    
    .title-history-section .description-text {
        font-size: 0.75rem;
    }
    
    .title-history-additional-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .title-history-section {
        border: none;
    }
    
    .title-history-section .common-section-row {
        display: block;
        border: 1px solid #ddd;
        margin-bottom: 0.5rem;
        border-radius: 4px;
    }
    
    .title-history-section .common-section-row-heading,
    .title-history-section .title-history-alert-cell {
        display: block;
        width: 100%;
        border: none;
        border-bottom: 1px solid #eee;
    }
    
    .title-history-section .title-history-alert-cell:last-child {
        border-bottom: none;
    }
    
    .title-history-section .columned-section-column-heading {
        display: none;
    }
}

/* Print styles for Title History */
@media print {
    .title-history-section {
        break-inside: avoid;
        border: 1px solid #000;
    }
    
    .title-history-section .section-header {
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .title-history-section .flagged {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .title-history-section .alert-content,
    .title-history-section .alert-text,
    .title-history-section .alert-label {
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .title-history-section .title-history-alert-icon {
        filter: grayscale(1);
    }
}

/* ================== CARFAX OWNERSHIP HISTORY TABLE STYLES ================== */

/* Ownership History Section */
.ownership-history-section {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif !important;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    overflow: hidden;
}

.ownership-history-section caption {
    display: none;
}

/* Columned Section Header */
.columned-section-header {
    background: #fff;
}

.columned-section-header tr {
    border: none;
}

.section-header-cell {
    background: #fff;
    padding: 0;
    border: none;
    vertical-align: top;
}

/* Column Headings */
.columned-section-column-heading {
    background: #f3f4f6;
    padding: 16px 12px;
    text-align: center;
    border-left: 1px solid #bdbdbd;
    border-bottom: 1px solid #bdbdbd;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    vertical-align: middle;
}

.columned-section-column-heading:first-child {
    border-left: none;
}

.columned-section-column-heading span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.columned-section-column-heading-owner-icon {
    width: 24px;
    height: 24px;
    fill: #1976d2;
}

.columned-section-column-heading-owner-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.two-data-columns {
    width: 25%;
}

/* Table Body */
.common-section-body {
    background: #fff;
}

.common-section-row {
    border-bottom: 1px solid #e5e7eb;
}

.common-section-row:last-child {
    border-bottom: none;
}

.common-section-row th {
    background: #f9fafb;
    padding: 16px 12px;
    text-align: left;
    border-right: 1px solid #bdbdbd;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    vertical-align: middle;
    width: 25%;
}

.common-section-row td {
    padding: 16px 12px;
    text-align: center;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    vertical-align: middle;
    background: #fff;
}

.common-section-row td:last-child {
    border-right: none;
}

.common-section-row-heading {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.common-section-row-heading span {
    font-weight: 600;
    color: #374151;
}

.common-section-cell-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
}

.common-section-cell-text {
    font-size: 14px;
    color: #374151;
    text-align: center;
}

/* Person Icon Styling */
.cfx-icon__person {
    fill: #1976d2;
}

/* Responsive Design for Ownership History */
@media screen and (max-width: 959px) {
    .ownership-history-section {
        font-size: 14px;
    }
    
    .columned-section-column-heading,
    .common-section-row th,
    .common-section-cell-text {
        font-size: 12px;
    }
    
    .columned-section-column-heading,
    .common-section-row th,
    .common-section-row td {
        padding: 12px 8px;
    }
    
    .common-section-cell-content,
    .common-section-row-heading {
        min-height: 40px;
    }
}

@media screen and (max-width: 719px) {
    .ownership-history-section {
        border: none;
        border-radius: 0;
    }
    
    .columned-section-column-heading {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .columned-section-column-heading-owner-icon {
        width: 18px;
        height: 18px;
    }
    
    .common-section-row th,
    .common-section-row td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .common-section-cell-content,
    .common-section-row-heading {
        min-height: 32px;
    }
    
    .two-data-columns {
        width: auto;
    }
}

/* CARFAX Mileage History Section Styles */
#mileage-history-section {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#mileage-history-section .section-header {
    background: #1976d2;
    color: white;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
}

#mileage-history-section .section-header-title-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

#mileage-history-section .section-header-logo {
    height: 32px;
    width: auto;
}

#mileage-history-section .section-header-title-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

#mileage-history-section .section-header-subtitle {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    font-weight: 400;
}

.mileage-history-section-content {
    padding: 1.5rem;
}

.mileage-records-container {
    margin-bottom: 2rem;
}

.mileage-record {
    display: grid;
    grid-template-columns: 120px 100px 1fr 200px;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: start;
}

.mileage-record:last-child {
    border-bottom: none;
}

.mileage-date {
    font-weight: 600;
    color: #1976d2;
    font-size: 0.95rem;
}

.mileage-reading {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.mileage-reading::after {
    content: " mi";
    font-weight: 400;
    font-size: 0.9rem;
    color: #666;
}

.mileage-source {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.mileage-type {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.mileage-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.mileage-summary-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.mileage-summary-stat:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: #666;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

/* Responsive Design for Mileage History */
@media screen and (max-width: 1023px) {
    .mileage-record {
        grid-template-columns: 100px 80px 1fr 150px;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .mileage-date,
    .mileage-reading,
    .mileage-source,
    .mileage-type {
        font-size: 0.85rem;
    }
    
    .mileage-reading {
        font-size: 1rem;
    }
}

@media screen and (max-width: 767px) {
    .mileage-record {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
        border-left: 4px solid #1976d2;
        margin-bottom: 1rem;
        background: #f8f9fa;
        border-radius: 8px;
        border-bottom: none;
    }
    
    .mileage-record:last-child {
        margin-bottom: 0;
    }
    
    .mileage-date {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .mileage-reading {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .mileage-source,
    .mileage-type {
        font-size: 0.9rem;
    }
    
    .mileage-summary {
        padding: 1rem;
    }
    
    .mileage-summary-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 479px) {
    .mileage-history-section-content {
        padding: 1rem;
    }
    
    #mileage-history-section .section-header {
        padding: 0.75rem;
    }
    
    #mileage-history-section .section-header-title-logo-container {
        font-size: 1.25rem;
    }
    
    #mileage-history-section .section-header-title-text {
        font-size: 1.25rem;
    }
    
    .mileage-record {
        padding: 0.75rem;
    }
    
    .mileage-summary {
        padding: 0.75rem;
    }
}

/* ================== EXTRACTED CARFAX ACCIDENT/DAMAGE SECTION STYLES ================== */

/* Enhanced Section Header Styles */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    background: #1976d2;
    color: white;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
}

.section-header-title-logo-container {
    display: flex;
    align-items: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.section-header-logo {
    height: 32px;
    margin-right: 8px;
}

.section-header-title-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.section-header-subtitle-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
    margin-top: 4px;
    display: block;
}

/* Enhanced Accident/Damage Section Styles */
#accident-damage-section {
    margin-bottom: 32px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.accident-damage-section-content {
    padding: 24px;
}

.accident-damage-initial-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.accident-damage-record {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background-color: #fafafa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.accident-damage-record-title h3 {
    color: #1976d2;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 8px;
}

.accident-damage-record-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.accident-damage-record-comments {
    flex: 1;
}

.accident-damage-record-comments p {
    font-weight: 700;
    color: #1976d2;
    margin: 0 0 12px 0;
    font-size: 16px;
}

.record-comments-groups {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.record-comments-group {
    margin-bottom: 12px;
}

.comments-group-outer-line {
    color: #212121;
    font-weight: 700;
    font-size: 16px;
}

.comments-line-alert {
    color: #d32f2f;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}

.record-comments-group-inner-lines {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 20px;
}

.record-comments-group-inner-line {
    color: #616161;
    font-size: 14px;
    margin-bottom: 4px;
    position: relative;
}

.record-comments-group-inner-line:before {
    content: "•";
    color: #1976d2;
    margin-right: 8px;
    font-weight: bold;
}

.accident-damage-section-view-more-jumplink {
    margin: 16px 0 0 0;
}

.accident-damage-section-view-more-jumplink a {
    color: #1976d2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    padding: 8px 12px;
    border: 1px solid #1976d2;
    border-radius: 4px;
    transition: all 0.2s;
}

.accident-damage-section-view-more-jumplink a:hover {
    background-color: #1976d2;
    color: white;
    text-decoration: none;
}

/* Enhanced Damage Diagram Styles - AUTHENTIC CARFAX */
.accident-damage-section-severity-and-points-of-impact {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* AUTHENTIC CARFAX POI IMAGE STYLING - EXACT FROM SOURCE */
.poi-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    background-color: #f3f8fd;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    height: 120px;
    width: 179px;
}

/* CARFAX damage area visibility control - EXACT FROM SOURCE */
.poi-image.front .front,
.poi-image.left-side .left-side,
.poi-image.right-side .right-side,
.poi-image.rear .rear,
.poi-image .roof,
.poi-image.left-front .left-front,
.poi-image.right-front .right-front,
.poi-image.left-rear .left-rear,
.poi-image.right-rear .right-rear {
    display: none;
}

.poi-image.roof .roof {
    display: block;
}

.poi-image svg {
    overflow: hidden;
    transform: rotate(270deg) scale(0.74);
}

/* Responsive design - EXACT FROM SOURCE */
@media screen and (min-width: 720px) and (max-width: 1049px) {
    .poi-image {
        height: 157px;
        width: 254px;
    }
    .poi-image svg {
        transform: rotate(270deg) scale(1);
    }
}

@media screen and (max-width: 719px) {
    .poi-image {
        height: 157px;
        width: 100%;
    }
    .poi-image svg {
        transform: rotate(270deg) scale(1);
    }
}

/* Enhanced Additional History Table Styles */
.additional-history-section {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.columned-section-header {
    background-color: #1976d2;
}

.columned-section-header th {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.section-header-cell {
    background-color: #1976d2;
}

.section-header-cell .section-header {
    background: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.columned-section-column-heading {
    background-color: #1976d2;
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.columned-section-column-heading-owner-icon {
    margin-right: 6px;
    fill: white;
}

.columned-section-column-heading-owner-text {
    color: white;
}

.common-section-body tr {
    border-bottom: 1px solid #e0e0e0;
}

.common-section-body tr:nth-child(even) {
    background-color: #f9f9f9;
}

.common-section-body tr:hover {
    background-color: #f0f8ff;
}

.common-section-row th,
.common-section-row td {
    padding: 16px;
    vertical-align: top;
}

.common-section-row th {
    background-color: #f5f5f5;
    font-weight: 700;
    color: #212121;
    border-right: 1px solid #e0e0e0;
}

.common-section-row-heading strong {
    color: #1976d2;
    font-size: 16px;
    font-weight: 700;
}

.more-information-modal {
    background: none;
    border: none;
    color: #616161;
    cursor: pointer;
    margin-left: 8px;
    padding: 2px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.more-information-modal:hover {
    background-color: rgba(25, 118, 210, 0.1);
    color: #1976d2;
}

.common-section-cell-content a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
}

.common-section-cell-content a:hover {
    text-decoration: underline;
    color: #005cb2;
}

.common-section-cell-text {
    color: #212121;
    font-size: 14px;
}

/* Enhanced Color Scheme */
:root {
    --carfax-blue: #1976d2;
    --carfax-blue-hover: #005cb2;
    --carfax-red: #d32f2f;
    --carfax-red-hover: #b12525;
    --text-primary: #212121;
    --text-secondary: #616161;
    --background-primary: #ffffff;
    --background-secondary: #f5f5f5;
    --border-color: #e0e0e0;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .accident-damage-record-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .accident-damage-section-content {
        padding: 16px;
    }
    
    .accident-damage-record {
        padding: 16px;
    }
    
    .accident-damage-record-title h3 {
        font-size: 16px;
    }
    
    .poi-image {
        padding: 12px;
    }
    
    .poi-image svg {
        width: 100px;
        height: 150px;
    }
    
    .additional-history-section {
        font-size: 12px;
    }
    
    .columned-section-column-heading {
        display: none;
    }
    
    .common-section-row td {
        display: block;
        border-bottom: none;
        padding: 12px 16px 8px;
    }
    
    .common-section-row td:before {
        content: attr(data-label);
        font-weight: 700;
        display: block;
        margin-bottom: 4px;
        color: #1976d2;
        font-size: 12px;
    }
    
    .accident-damage-section-view-more-jumplink a {
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 12px;
    }
    
    .section-header-title-logo-container {
        font-size: 18px;
    }
    
    .section-header-logo {
        height: 24px;
    }
    
    .accident-damage-initial-group {
        gap: 16px;
    }
    
    .accident-damage-record-comments p {
        font-size: 14px;
    }
    
    .comments-group-outer-line {
        font-size: 14px;
    }
    
    .comments-line-alert {
        font-size: 16px;
    }
}

/* Print Styles for Ownership History */
@media print {
    .ownership-history-section {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
    
    .section-header {
        background: #fff !important;
        color: #000 !important;
    }
    
    .section-header-title-text {
        color: #000 !important;
    }
    
    .columned-section-column-heading {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .common-section-row th {
        background: #f8f8f8 !important;
        color: #000 !important;
    }
    
    .cfx-icon__person,
    .columned-section-column-heading-owner-icon {
        fill: #000 !important;
    }
}

/* Additional History Section Styles */
.additional-history-section {
    margin-bottom: 24px;
    width: 100%;
}

@media screen and (max-width: 719px) {
    .additional-history-section {
        margin: 16px auto auto;
    }
}

.additional-history-section thead {
    background-color: #1976d2;
    color: #fff;
}

.additional-history-section thead th:not(:last-of-type) {
    border-right: 1px solid #bdbdbd;
}

.additional-history-section thead th:first-child {
    border-top-left-radius: 4px;
}

@media screen and (max-width: 1049px) {
    .additional-history-section thead th:first-child {
        border-top-left-radius: 0;
    }
}

.additional-history-section thead th:last-child {
    border-top-right-radius: 4px;
}

@media screen and (max-width: 1049px) {
    .additional-history-section thead th:last-child {
        border-top-right-radius: 0;
    }
}

@media screen and (max-width: 719px) {
    .additional-history-section thead th:not(:last-of-type) {
        border-right: none;
    }
}

.additional-history-section tbody tr:last-of-type td {
    border-bottom: 1px solid #bdbdbd;
}

.additional-history-section tbody th,
.additional-history-section tbody td:first-child {
    border-left: 1px solid #bdbdbd;
    text-align: left;
}

.additional-history-section tbody th,
.additional-history-section tbody td {
    border-right: 1px solid #bdbdbd;
    border-bottom: 1px solid #bdbdbd;
    border-top: 0;
    min-height: 50px;
    padding: 12px 16px;
    vertical-align: top;
}

.additional-history-section tbody tr:last-child > td:last-child {
    border-bottom-right-radius: 4px;
}

@media screen and (max-width: 1049px) {
    .additional-history-section tbody tr:last-child > td:last-child {
        border-bottom-right-radius: 0;
    }
}

.additional-history-section tbody tr:last-child > th,
.additional-history-section tbody tr:last-child > td:first-child {
    border-bottom-left-radius: 4px;
}

@media screen and (max-width: 1049px) {
    .additional-history-section tbody tr:last-child > th,
    .additional-history-section tbody tr:last-child > td:first-child {
        border-bottom-left-radius: 0;
    }
}

@media screen and (max-width: 719px) {
    .additional-history-section tbody tr:last-child > td:last-child {
        border-bottom-right-radius: initial;
    }
    .additional-history-section tbody tr:last-child > th,
    .additional-history-section tbody tr:last-child > td:first-child {
        border-bottom-left-radius: initial;
    }
}

/* Common Section Cell Content */
.common-section-cell-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.common-section-cell-text {
    color: #212121;
    font-size: 14px;
    line-height: 1.4;
}

.common-section-cell-text-with-icon {
    color: #212121;
    font-size: 14px;
    line-height: 1.4;
}

.common-section-cell-icon {
    flex-shrink: 0;
}

.common-section-row-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.common-section-row-heading > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.common-section-row-heading button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

.common-section-row-heading button:hover {
    opacity: 0.7;
}

.common-section-row-heading > div {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Scroll to Link Styling */
.scroll-to-link {
    color: #1976d2;
    text-decoration: none;
}

.scroll-to-link:hover {
    text-decoration: underline;
}

/* Column Heading Styles */
.columned-section-column-heading {
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.columned-section-column-heading > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.columned-section-column-heading-owner-icon {
    flex-shrink: 0;
}

.columned-section-column-heading-owner-text {
    font-weight: 500;
}

.two-data-columns {
    width: auto;
    min-width: 120px;
}

/* Section Header Styles */
.section-header-cell {
    padding: 16px 20px;
}

.section-header-title-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.section-header-logo {
    height: 24px;
    width: auto;
}

.section-header-title-text {
    color: inherit;
    font-weight: inherit;
}

.section-header-subtitle-text {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
    display: block;
}

/* Visually Hidden Content */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* More Information Modal Button */
.more-information-modal {
    color: #666;
    transition: color 0.2s ease;
}

.more-information-modal:hover {
    color: #333;
}

/* CARFAX Icon Styles */
.cfx-icon {
    display: inline-block;
    vertical-align: middle;
}

.cfx-icon__person {
    fill: currentColor;
}

.cfx-icon__infoCircleOutline {
    fill: currentColor;
}

.cfx-icon__checkmarkSquareColor {
    /* Colors already defined in SVG paths */
}

/* Print Styles for Additional History */
@media print {
    .additional-history-section {
        margin: 12px auto auto;
    }
    
    .additional-history-section thead {
        background-color: #fff;
        color: #212121;
    }
    
    .additional-history-section thead th {
        border-top: 1px solid #bdbdbd;
        border-bottom: 1px solid #bdbdbd;
        border-right: 1px solid #bdbdbd;
    }
    
    .additional-history-section thead th:first-child {
        border-top-left-radius: 4px;
        border-left: 1px solid #bdbdbd;
    }
    
    .additional-history-section thead th:last-child {
        border-top-right-radius: 4px;
    }
    
    .more-information-modal {
        display: none;
    }
}

/* Additional Language Support */
.additional-history-section .section-header-subtitle-text:lang(es) {
    font-size: 11px;
}

/* Responsive Column Widths */
.additional-history-section tr td:nth-child(2):nth-last-child(4) .common-section-cell-content > span > div,
.additional-history-section tr td:nth-child(2):nth-last-child(4) ~ td .common-section-cell-content > span > div {
    width: 68px;
}

/* Screenshot Imitation Styles - Matching Accident-2.png and Accident-3.png */

/* Accident-2.png Screenshot Imitation - Detailed Damage Section */
.screenshot-damage-section {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin: 20px 0;
    padding: 0;
}

.damage-event-header {
    background: #f9fafb;
    border-bottom: 1px solid #d1d5db;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.event-date-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-date {
    font-weight: 700;
    color: #374151;
    font-size: 14px;
}

.damage-report-header {
    font-weight: 700;
    color: #374151;
    font-size: 16px;
}

.damage-content-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 30px;
    padding: 20px;
}

.damage-description-col {
    flex: 1;
}

.accident-description {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.damage-list-items {
    list-style: none;
    padding: 0;
    margin: 8px 0 15px 0;
}

.damage-list-items li {
    color: #374151;
    font-size: 14px;
    margin: 3px 0;
}

.carfax-tips {
    margin-top: 15px;
}

.carfax-tips-link {
    color: #2563eb;
    text-decoration: underline;
    font-size: 14px;
}

.carfax-tips-link:hover {
    color: #1d4ed8;
}

.damage-location-col {
    text-align: center;
}

.damage-location-header {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    margin-bottom: 15px;
}

.vehicle-damage-diagram {
    position: relative;
}

.vehicle-shape {
    position: relative;
    width: 120px;
    height: 160px;
    margin: 0 auto;
    border: 2px solid #374151;
    border-radius: 15px 15px 5px 5px;
    background: #f9fafb;
}

.damage-zone {
    position: absolute;
}

.front-damage {
    top: -2px;
    left: 20%;
    width: 60%;
    height: 25px;
    background: repeating-linear-gradient(
        45deg,
        #2563eb,
        #2563eb 2px,
        transparent 2px,
        transparent 5px
    );
    border-radius: 13px 13px 0 0;
}

.left-damage {
    top: 20px;
    left: -2px;
    width: 25px;
    height: 100px;
    background: repeating-linear-gradient(
        45deg,
        #2563eb,
        #2563eb 2px,
        transparent 2px,
        transparent 5px
    );
}

.vehicle-body {
    width: 100%;
    height: 100%;
    border-radius: 15px 15px 5px 5px;
}

.zone-labels {
    position: absolute;
    inset: -25px;
}

.label {
    position: absolute;
    font-size: 9px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
}

.front-label {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.left-label {
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.right-label {
    right: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.rear-label {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* CARFAX Message Section (replacing mascot) */
.carfax-message-section {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin: 20px 0;
    padding: 25px;
}

.carfax-superiority-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.carfax-icon-placeholder {
    flex-shrink: 0;
}

.carfax-message-text h3 {
    color: #2563eb;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Total Loss Event */
.total-loss-event {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin: 20px 0;
    padding: 20px;
}

.event-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.total-loss-icon {
    flex-shrink: 0;
}

.total-loss-date {
    font-weight: 700;
    color: #374151;
    font-size: 14px;
}

.total-loss-text {
    color: #dc2626;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.total-loss-description {
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.total-loss-description p {
    margin: 0 0 10px 0;
}

.learn-more-link {
    color: #2563eb;
    text-decoration: underline;
    font-size: 14px;
}

.learn-more-link:hover {
    color: #1d4ed8;
}

/* Accident-3.png Screenshot Imitation - Title Records */
.title-records-section {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin: 20px 0;
}

.title-record-row {
    display: grid;
    grid-template-columns: 20px 90px 60px 1fr;
    gap: 15px;
    align-items: start;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.title-record-row:first-child {
    grid-template-columns: 90px 1fr;
    gap: 20px;
}

.title-record-row:last-child {
    border-bottom: none;
}

.salvage-row {
    background: #fef2f2;
}

.salvage-icon {
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.record-date-col {
    font-weight: 700;
    color: #374151;
}

.record-mileage-col {
    font-weight: 700;
    color: #374151;
}

.record-content-col {
    display: flex;
    gap: 20px;
}

.record-source {
    color: #374151;
    min-width: 140px;
    font-size: 14px;
}

.record-source strong {
    font-weight: 700;
}

.title-id {
    font-family: 'Courier New', monospace;
    color: #6b7280;
    font-size: 12px;
}

.record-event {
    color: #374151;
    font-size: 14px;
}

.record-event strong {
    font-weight: 700;
}

.salvage-title-text {
    color: #dc2626;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .damage-content-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carfax-superiority-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .title-record-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .title-record-row:first-child {
        grid-template-columns: 1fr;
    }
    
    .record-content-col {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-date-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* FINAL OVERRIDES - Place at end to ensure highest specificity */
/* Absolutely ensure hero section has NO gradients */
body .hero,
#search-section.hero,
section.hero,
.hero.section,
section#search-section.hero {
    background: #1a3c6e !important;
    background-color: #1a3c6e !important;
    background-image: none !important;
    background-attachment: initial !important;
    background-position: initial !important;
    background-repeat: initial !important;
    background-size: initial !important;
}

/* Remove any possible overlay or pseudo-element gradients */
body .hero::before,
body .hero::after,
.hero > *::before,
.hero > *::after {
    background: transparent !important;
    background-image: none !important;
    content: none !important;
}
}