body {
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* Color Palette */
.text-primary { color: #0A3161 !important; } /* Navy Blue */
.text-danger { color: #B31942 !important; }  /* Deep Red */
.bg-primary { background-color: #0A3161 !important; }
.btn-primary { 
    background-color: #0A3161; 
    border-color: #0A3161; 
}
.btn-primary:hover {
    background-color: #062142;
    border-color: #062142;
}

/* Update: Solid Gradient Background (No Image) */
.hero-section {
    background: linear-gradient(135deg, #0A3161 0%, #1a4a8c 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* New: Attractive Form Border */
.custom-form-border {
    border: 5px solid #e4ecf4 !important; /* Soft blue border matching your nav */
    border-radius: 12px;
}

/* Update: Typing Cursor Effect for Inline Sentence */
.typing-container::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: #ffffff;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes blink { 
    50% { opacity: 0; } 
}


/* Form Styling */
.form-card {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.97);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form-select, .form-control {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.form-select:focus, .form-control:focus {
    border-color: #0A3161;
    box-shadow: 0 0 0 0.25rem rgba(10, 49, 97, 0.25);
}

/* General Layout Tweaks */
.list-group-item {
    background-color: transparent;
    border-color: #e9ecef;
    padding: 1rem;
}

/* Custom Navigation Background - Light English Blue */
.custom-nav-bg {
    background-color: #e4ecf4 !important; 
}

/* Enhanced Menu Font Styling */
.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #4a5c73 !important; /* Muted slate for a softer, professional look */
    letter-spacing: 0.5px;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.3s ease;
}

/* Menu Hover & Active States */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-item.dropdown:hover .nav-link {
    color: #0A3161 !important; /* Deep Navy Blue from your primary color */
    transform: translateY(-1px);
}

/* Match Dropdown Menu to Nav Style */
.dropdown-menu {
    background-color: #e4ecf4;
}

.dropdown-item {
    font-weight: 500;
    font-size: 0.9rem;
    color: #4a5c73;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #d1dfed; /* Slightly darker shade on hover */
    color: #0A3161;
}

/* --- Features Section Upgrades --- */
.tracking-wide {
    letter-spacing: 2px;
}

.feature-card {
    background-color: #e4ecf4;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(10, 49, 97, 0.1) !important;
}

/* Circular Background for Icons */
.icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8e8eb; /* Soft red background matching your text-danger */
    transition: background-color 0.4s ease;
}

.feature-icon {
    transition: fill 0.4s ease;
}

/* Invert Colors on Card Hover */
.feature-card:hover .icon-wrapper {
    background-color: #B31942; /* Deep Red */
}

.feature-card:hover .icon-wrapper .feature-icon {
    fill: #ffffff; /* Turns icon white when the circle turns red */
}



/* --- Infinite Text Scroll --- */
.brand-slider {
    width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.brand-slide-track {
    display: flex;
    /* Width: approx number of items * width of card */
    width: calc(180px * 144); 
    animation: scroll 200s linear infinite;
}

.brand-slider:hover .brand-slide-track {
    animation-play-state: paused;
}

.brand-slide {
    width: 180px; /* Fixed width for consistent spacing */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card {
    width: 150px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.brand-card:hover {
    background-color: #0A3161 !important;
    transform: scale(1.1);
}

.brand-card:hover .text-primary {
    color: #ffffff !important;
}

/* Scroll Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    /* Moves the length of one full set of the brands */
    100% { transform: translateX(calc(-180px * 72)); } 
}

/* --- Parts Card Hover Effects --- */
.part-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.part-card:hover {
    background-color: #0A3161 !important; /* Turns Navy Blue on hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(10, 49, 97, 0.15);
}

.part-card:hover .text-primary {
    color: #ffffff !important; /* Turns text white on hover */
}

.part-card:hover .text-danger {
    color: #ffcc00 !important; /* Turns gear icon yellow on hover */
}

/* --- Google Style Testimonials --- */
.testimonial-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hides scrollbar in Firefox */
    -ms-overflow-style: none; /* Hides scrollbar in IE/Edge */
}

/* Hides scrollbar in Chrome/Safari */
.testimonial-track::-webkit-scrollbar {
    display: none; 
}

.testimonial-card {
    width: 350px;
    flex: 0 0 auto;
    scroll-snap-align: start; 
    background-color: #ffffff;
    border-radius: 12px;
}

/* Navigation Buttons Styling */
.slider-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: #0A3161;
    color: white;
}

.avatar {
    width: 45px;
    height: 45px;
    object-fit: cover;
}

.google-stars {
    color: #fbbc04; 
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.text-truncate-multiline {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* --- Footer Styles --- */
.footer-links a {
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: #0A3161 !important; /* General Auto Parts Navy Blue */
    transform: translateX(5px);
}

/* --- Form Updates (Label-Free Design) --- */


/* Style the placeholder text to look consistent and highlight required fields */
::placeholder {
    color: #6c757d;
    opacity: 1; 
}

/* For browsers that support placeholder-shown, we can dim the text */
input:placeholder-shown {
    font-weight: 400;
}

select:invalid {
    color: #6c757d; /* Keeps the 'Select...' text grey like a placeholder */
}

/* --- Mobile Only Adjustments (max-width: 767px) --- */
@media (max-width: 767.98px) {
    
    /* Make sure the fixed footer doesn't hide the absolute bottom of your page content */
    body {
        padding-bottom: 60px; 
    }

    /* Compress the inputs to fit the form on one screen */
    .custom-input-pad {
        padding: 0.5rem 0.75rem !important; /* Overrides the desktop padding */
        font-size: 0.85rem !important;      /* Reduces font size slightly */
        height: auto !important;
    }

    /* Ensure dropdown arrows scale correctly with the smaller padding */
    select.custom-input-pad {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
    }

    /* Shrink the form title slightly */
    .form-card .card-title {
        font-size: 1.25rem;
    }
}

/* Ensure Mobile CTA stays above all other elements */
.mobile-cta {
    z-index: 1050;
    border-top: 2px solid #fff; /* Adds a crisp white line separating it from the page */
}

select:disabled {
    background-color: #e9ecef;
    opacity: 0.7;
    cursor: not-allowed;
}

/* Contact Page Specifics */
.card {
    border-radius: 10px;
}

/* Ensure inputs in the contact form are consistent with the hero form */
.form-control, .form-select {
    border: 1px solid #ced4da;
    padding: 0.75rem;
}

.form-control:focus {
    border-color: #0A3161;
    box-shadow: 0 0 0 0.2rem rgba(10, 49, 97, 0.25);
}

/* Hover Lift Effect for Cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(10, 49, 97, 0.1) !important;
}