:root {
    --primary-color: #1a3c6e;
    --secondary-color: #f0a500;
    --text-color: #333;
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --primary-hover-color: #14305a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    padding-top: 80px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--card-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style-type: none;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.btn-secondary, #accountButton, #myReportsButton, #creditBalance {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

#creditBalance i {
    margin-right: 5px;
}

.btn-secondary:hover, #accountButton:hover, #myReportsButton:hover, #creditBalance:hover {
    background-color: var(--primary-hover-color);
}

.hero {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 18px;
    margin-bottom: 40px;
}

.vin-input, .new-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto 20px;
}

#vin, #newVin {
    flex-grow: 1;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
}

.btn-primary {
    padding: 15px 30px;
    font-size: 18px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #d89400;
}

.search-links {
    display: flex;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.link {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.link:hover {
    text-decoration: underline;
}

.vin-feedback {
    font-size: 14px;
    margin-top: 10px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

#results-section {
    background-color: var(--card-background);
    padding: 60px 0;
}

#vehicle-info {
    text-align: center;
    margin-bottom: 40px;
}

#report-options {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.report-card {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 30%;
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.report-card.both-reports {
    background-color: #648ac2;
    color: white;
    position: relative;
    overflow: hidden;
}

.report-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    position: relative;
}

.report-circle svg {
    width: 100%;
    height: 100%;
}

.report-circle-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 10;
}

.report-circle-progress {
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.report-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
}

.discount-banner {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    position: absolute;
    top: 10px;
    right: -30px;
    transform: rotate(45deg);
    width: 150px;
    text-align: center;
}

.trust-message {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.payment-methods img {
    height: 30px;
}

#features-section {
    padding: 60px 0;
}

.button-wrapper {
    margin-top: 15px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    margin-bottom: 10px;
    color: #1a3c6e;
}

.contact-info {
    margin-top: 30px;
    text-align: center;
}

.section {
    padding: 30px 0;
    margin-bottom: 30px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow: auto;
}

.modal-content {
    background-color: var(--card-background);
    margin: 10% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-hover-color);
}

.auth-form-container, .password-reset-container {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.auth-form-container h2, .password-reset-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
}

.auth-form, .password-reset-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: bold;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 60, 110, 0.2);
}

.auth-links {
    margin-top: 20px;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.password-strength-meter {
    height: 4px;
    background-color: #e0e0e0;
    margin-top: 5px;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-meter div {
    height: 100%;
    width: 0;
    transition: width 0.3s ease-in-out;
}

#passwordStrength {
    font-size: 12px;
    margin-top: 5px;
    text-align: right;
}

.very-weak { background-color: #dc3545; }
.weak { background-color: #ffc107; }
.medium { background-color: #fd7e14; }
.strong { background-color: #28a745; }
.very-strong { background-color: #20c997; }

.custom-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 14px;
}

.custom-popup.show {
    opacity: 1;
}

.custom-popup.success {
    background-color: #4CAF50;
    color: white;
}

.custom-popup.error {
    background-color: #F44336;
    color: white;
}

.paypal-button-container {
    width: 100%;
    margin-top: 10px;
}

.credit-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.credit-option {
    background-color: var(--card-background);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.credit-option:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.credit-option h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.purchase-history {
    list-style-type: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.purchase-history-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.purchase-history-item:last-child {
    border-bottom: none;
}

.purchase-history-item p {
    margin: 5px 0;
}

.purchase-history-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.purchase-history-item a:hover {
    text-decoration: underline;
}

.my-reports-search {
    margin-bottom: 20px;
}

.my-reports-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.my-reports-list {
    max-height: 300px;
    overflow-y: auto;
}

.my-reports-item {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    cursor: pointer;
}

.my-reports-item:hover {
    background-color: #f5f5f5;
}

.report-viewer-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.close-btn {
    color: #ff0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1000;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}

.report-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.reports-wrapper {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.3s ease;
}

.report-div {
    flex: 0 0 50%;
    height: 100%;
}

.report-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.slider-container {
    margin-top: 10px;
    text-align: center;
}

.slider {
    width: 100%;
    max-width: 300px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    margin: 5px auto 0;
}

.report-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    header {
        height: auto;
    }

    header .container {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .vin-input, .new-search {
        flex-direction: column;
    }

    #vin, #newVin, .btn-primary {
        width: 100%;
        border-radius: 4px;
    }

    .btn-primary {
        margin-top: 10px;
    }

    .search-links {
        flex-direction: column;
        align-items: center;
    }

    .link {
        margin-bottom: 10px;
    }

    #report-options {
        flex-direction: column;
        align-items: center;
    }

    .report-card {
        width: 100%;
    }

    .credit-options {
        flex-direction: column;
        align-items: center;
    }

    .credit-option {
        width: 100%;
        max-width: 300px;
    }

    .report-viewer-content {
        margin: 0;
        padding: 10px;
        width: 100%;
        height: 100vh;
    }

    .report-container {
        height: calc(100% - 100px);
    }

    .report-actions {
        flex-wrap: wrap;
    }

    .report-actions .btn {
        flex: 1 0 40%;
        font-size: 14px;
        padding: 8px 12px;
    }

    .auth-form-container, .password-reset-container, .modal-content {
        width: 90%;
        padding: 20px;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a:focus, button:focus, input:focus, .btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.error-message {
    color: #d32f2f;
    background-color: #ffeaea;
    border: 1px solid #d32f2f;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.btn:disabled, .btn-primary:disabled, .btn-secondary:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.font-loading {
    font-display: swap;
}

@media print {
    .no-print, .no-print * {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background-color: #fff;
    }

    .report-frame {
        border: none;
    }
}

.services-grid, .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-card, .pricing-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.service-card:hover, .pricing-card:hover {
    transform: translateY(-5px);
}

.service-card.animate, .pricing-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.featured {
    border: 2px solid #f0a500;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f0a500;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.vin-location-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.vin-location-image {
    max-width: 50%;
    border-radius: 8px;
}

.help-email {
    font-size: 1.2em;
    margin: 20px 0;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    margin-bottom: 10px;
    color: #1a3c6e;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vin-location-content {
        flex-direction: column;
    }

    .vin-location-image {
        max-width: 100%;
    }
}

.vin-diagram {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* For mobile devices */
@media (max-width: 480px) {
    .vin-diagram {
        width: 90%;
        max-width: 300px;
    }
}

/* For tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .vin-diagram {
        width: 80%;
        max-width: 400px;
    }
}

/* For small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .vin-diagram {
        width: 70%;
        max-width: 500px;
    }
}

/* For larger desktops */
@media (min-width: 1025px) {
    .vin-diagram {
        width: 60%;
        max-width: 600px;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-links a {
    color: white;
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        font-size: 20px;
        width: 35px;
        height: 35px;
    }
}

/* Icon base styles */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

/* Icon sizes */
.icon-xs { font-size: 0.75em; }
.icon-sm { font-size: 0.875em; }
.icon-lg { font-size: 1.33333em; }
.icon-xl { font-size: 1.5em; }
.icon-2xl { font-size: 2em; }
.icon-3xl { font-size: 3em; }

/* Fixed width */
.icon-fw {
    width: 1.25em;
    text-align: center;
}

#creditBalance .icon {
    width: 1em;
    height: 1em;
    margin-right: 0.25em;
}

/* Feature card icons */
.feature-card .icon {
    font-size: 2.5em;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.feature-card:hover .icon {
    transform: translateY(-5px);
}

/* Social icons */
.social-links .icon {
    font-size: 1.5em;
    width: 2em;
    height: 2em;
    padding: 0.5em;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links .icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Payment icons */
.payment-methods .icon {
    height: 20px;
    width: auto;
    margin: 0 0.5rem;
}

/* Icon animations */
.icon-spin {
    animation: icon-spin 2s infinite linear;
}

@keyframes icon-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.processing-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.processing-message {
    font-size: 1.2em;
    text-align: center;
    max-width: 80%;
    margin-top: 15px;
}

/* Icon colors matching your theme */
.icon-primary { color: var(--primary-color); }
.icon-secondary { color: var(--secondary-color); }