:root {
    --primary: #1e3c72; /* Deep steel blue (used for buttons, icons, etc.) */
    --header-footer-blue: #1E3C72; /* Steel blue for header and footer */
    --secondary: #000000; /* Metallic silver */
    --accent: #1E3C72; /* Fiery red */
    --background: #ffffff; /* White */
    --secondary-background: #f1f5f9; /* Light gray */
    --text: #2d3748; /* Dark gray */
    --success: #34c759; /* Green for success */
    --error: #f56565; /* Red for errors */
}

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Navbar */
.navbar {
    background-color: var(--header-footer-blue); /* Steel blue */
    border-bottom: 2px solid var(--primary); /* Add a subtle deep steel blue border */
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #ffffff !important;
}

.navbar-nav .nav-link {
    transition: color 0.3s ease;
    color: #ffffff !important;
}

    .navbar-nav .nav-link:hover {
        color: var(--secondary) !important; /* Metallic silver on hover */
    }

.btn-outline-light {
    border-radius: 0.375rem;
    color: #ffffff;
    border-color: #ffffff;
}

    .btn-outline-light:hover {
        background-color: var(--secondary);
        color: var(--header-footer-blue);
    }

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #2a4b9b; /* Slightly lighter blue */
        border-color: #2a4b9b;
    }

/* Footer */
.footer {
    flex-shrink: 0;
    background-color: var(--header-footer-blue); /* Steel blue */
    color: #ffffff;
}

    .footer a {
        color: #ffffff;
        transition: color 0.3s ease;
    }

        .footer a:hover {
            color: var(--secondary); /* Metallic silver on hover */
        }

/* VIN Input Form */
.vin-form {
    max-width: 400px;
    margin: 0 auto;
    /* Reserve space for the input and error message */
    min-height: 120px; /* Adjust based on input height (50px) + error message height (approx 30px) + margins */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vin-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.vin-input {
    padding-left: 40px; /* Space for the car icon */
    border: 2px solid var(--primary);
    border-radius: 25px;
    height: 50px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase; /* VINs are typically uppercase */
}

    .vin-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 8px rgba(230, 57, 70, 0.3); /* Fiery red glow */
        outline: none;
    }

    .vin-input:invalid:not(:placeholder-shown) {
        border-color: var(--error);
    }

    .vin-input:valid {
        border-color: var(--success);
    }

    .vin-input.is-invalid {
        border-color: var(--error);
    }

    .vin-input.is-valid {
        border-color: var(--success);
    }

.vin-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1; /* Ensure consistent vertical alignment */
}

.check-vin-btn {
    height: 50px;
    border-radius: 25px;
    font-size: 1.1rem;
    padding: 10px 20px;
    transition: transform 0.3s ease;
}

    .check-vin-btn:hover {
        transform: scale(1.05);
    }

/* Style the error message */
.text-danger {
    font-size: 0.875rem; /* Slightly smaller font for the error message */
    color: var(--error) !important; /* Use the error color variable */
}

/* Responsive Adjustments for VIN Form */
@media (max-width: 576px) {
    .vin-form {
        flex-direction: column;
        gap: 1rem;
    }

    .vin-input-wrapper {
        max-width: 100%;
    }

    .check-vin-btn {
        width: 100%;
        max-width: 400px;
    }
}

/* Hero Section */
.hero-section {
    background: var(--background);
    position: relative;
}

.car-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.car-image {
    border-radius: 10px;
}

.annotation {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

    .annotation::before {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        background: #ffffff;
        border-radius: 50%;
        left: -20px;
    }

    .annotation.accident {
        top: 35%;
        left: 5%;
    }

    .annotation.mileage {
        bottom: 30%;
        right: 0%;
    }

    .annotation.inspection {
        top: 20%;
        right: 1%;
    }

/* Features Section */
.features-section {
    background: var(--background);
}

.feature-item i {
    color: var(--primary);
}

.feature-item h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
}

/* Benefits Section */
.benefits-section {
    background: var(--secondary-background);
}

.benefit-icon {
    width: 80px;
    height: auto;
}

/* Process Section */
.process-section {
    background: var(--background);
    padding-bottom: 4rem; /* Increased space at the bottom */
}

.process-step {
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.process-step h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text);
}

.card-text {
    color: var(--text);
    font-size: 0.9rem;
}

/* Loading Section */
.loading-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner i {
    color: var(--primary);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: var(--secondary-background);
    border-radius: 25px;
    overflow: hidden;
    height: 30px;
    position: relative;
}

.progress-bar {
    background: linear-gradient(to right, var(--primary), var(--header-footer-blue));
    height: 100%;
    transition: width 0.05s linear;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
}

/* Additional Utility Styles */
.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

    .btn-accent:hover {
        background-color: #264B8F; /* Slightly lighter fiery red */
        border-color: #264B8F;
        color: #ffffff;
    }
