/* General Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
}

button:disabled {
    cursor: not-allowed; /* Indicate that the button is not clickable */
    box-shadow: none; /* Remove shadow for a flat, inactive appearance */
    opacity: 0.6; /* Add transparency to indicate a disabled state */
    pointer-events: none; /* Prevent all mouse events */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

/* -------------------------------------------
// HEADER STYLING
 ------------------------------------------- */


/* Remove underline from the logo link */
.navbar a {
    text-decoration: none;
}

/* Ensure the logo behaves like a button/link */
.navbar a:hover {
    text-decoration: none;
}

/* Prevent any color changes on hover for the logo */
.navbar a {
    color: inherit;
}

.logo-container {
    display: flex;
    align-items: center;    
    margin-right: 1em;
    height: 47px;
}

.logo-image {
    max-height: 100%; /* Adjust to fit container height */
    object-fit: contain; /* Keep aspect ratio */
}

.nav-phone{
  display:none;
}

.language-selector {
    margin-left: 15px;
}

/* Language Selector */
#language-switcher {
    padding: 0.3em;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: white;
    color: #1877f2;
    font-size: 1em;
}


/* Basic Hamburger Icon Styling */
.hamburger {
    display: none; /* Hidden by default */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
}

.hamburger span {
    display: block;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: 0.3s ease;
}



/* Main Navigation Bar */
.navbar {
    font-size: 1.2em;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #1877f2; /* Facebook blue */
    padding: 0 0.5em;
    flex-wrap: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1em;
    align-items: center;
    padding-top: 1.3em;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    color: #e7f3ff; /* Light Facebook blue */
}


/* Sub-navigation Bar Styling */
.sub-navbar {
    background-color: #f8f9fa; /* Light grey background */
    padding: 0.6em 0.6em 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.sub-navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.3em;
    flex-wrap: wrap;
}

.sub-navbar a {
    text-decoration: none;
    font-size: 1em;
    color: #1877f2; /* Facebook blue for sub-nav links */
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.sub-navbar a .step {
    font-weight: bold;
    margin-right: 8px;
    color: #1877f2; /* Facebook blue */
}


.sub-navbar a:hover {
    background-color: #145dbf; /* Darker Facebook blue */
    color: white;
}

.sub-navbar a.active {
    background-color: #1877f2; /* Facebook blue for active links */
    color: white;
}


/* -------------------------------------------
// SIGN UP/ IN STYLING
 ------------------------------------------- */

/* Sign-Up Form Styling */
.form-container {
    max-width: 600px;
    margin: 30px auto; /* Center the form vertically and horizontally */
    padding: 20px;
    background-color: #f9f9f9; /* Light grey background */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.form-title {
    font-size: 2em;
    color: #1877f2; /* Facebook blue */
    text-align: center;
    margin-bottom: 30px;
}

.styled-form {
    display: flex;
    flex-direction: column;
}

.form-input {
    width: 80%;
    margin: 0 auto;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    font-size: 1em;
    box-sizing: border-box; /* Ensures padding doesn't break the width */
}

.form-input:focus {
    outline: none;
    border-color: #1877f2; /* Highlighted blue border */
    box-shadow: 0 0 5px rgba(24, 119, 242, 0.5); /* Subtle glow effect */
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #1877f2; /* Facebook blue */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    background-color: #145dbf; /* Darker blue */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Slight shadow on hover */
}

.button-container {
    text-align: center; /* Centers the button */
}

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 1em;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


.signup-option {
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center the content horizontally */
    margin-top: 10px; /* Add some spacing above */
    font-size: 16px; /* Adjust font size */
    color: #333; /* Dark gray text */
    text-align: center; /* Center the text inside */
    gap: 5px; /* Add spacing between text and link */
}

.signup-option p {
    margin: 0; /* Reset any default margins */
    text-align: center; /* Ensure centering */
    margin-top: 10px; /* Add some space above the text */
}

.signup-option p span {
    margin-right: 5px; /* Add spacing after "Нямаш акаунт?" */
}

.signup-link {
    color: #007bff; /* Default blue link color */
    text-decoration: none; /* Remove underline by default */
    font-weight: bold; /* Make the link bold */
}

.signup-link:hover {
    text-decoration: underline; /* Add underline on hover */
    color: #0056b3; /* Darker blue on hover */
}


/* Social Login Section */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}


        .login-message {
            background: #fffae6;
            color: #d9534f;
            padding: 0.5em;
            border: 1px solid #d9534f;
            margin: 1em;
            font-weight: bold;
            text-align: center;
        }

/* Facebook, TikTok, Instagram Buttons - Vertical Alignment */
.social-buttons-vertical {
    display: flex;
    flex-direction: column; /* Align buttons vertically */
    align-items: center; /* Center the buttons horizontally */
    gap: 15px; /* Add spacing between buttons */
    margin-bottom: 20px; /* Add space below these buttons */
}

/* General Button Styling */
.btn-social {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    width: 300px; /* Ensure consistent width for these buttons */
}

/* Individual Button Colors */
.btn-facebook {
    background-color: #4267B2;
}

.btn-facebook:hover {
    background-color: #365899;
}

.btn-tiktok {
    background-color: #000000;
}

.btn-tiktok:hover {
    background-color: #333333;
}

.btn-instagram {
    background-color: #E1306C;
}

.btn-instagram:hover {
    background-color: #C13584;
}

.google-button-wrapper {
    text-align: center; /* Center the Google button */
    margin-top: 10px; /* Add spacing above the button */
    width: 300px; /* Set the same width as other social buttons */
    margin: 0 auto; /* Center horizontally */
}

.g_id_onload, .g_id_signin {
    width: 100%; /* Ensure the Google button matches the wrapper */
}









/* -------------------------------------------
// PROFILE PAGE & DELETE PAGE STYLING
 ------------------------------------------- */

/* Container for the Delete Account Button */
.account-container {
    display: flex;
    justify-content: flex-end; /* Align to the right within the body */
    margin-top: 1em; /* Space below the header */
    margin-right: 1em;
    margin-left: 1em;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}


.logout-button {
    margin-right: 1em;
    background-color: #1877f2;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Delete Account Button */
.delete-account-button {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.delete-account-button:hover {
    background-color: #c0392b;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}


/* Center the entire content */
.center-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    text-align: center; /* Align text within elements */
    margin: 2em 0;
}

        .warning {
            color: #e74c3c;
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 20px;
        }
        .delete-button {
            background-color: #e74c3c;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
        }
        .delete-button:hover {
            background-color: #c0392b;
        }
        .cancel-button {
            background-color: #1877f2;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
        }
        .cancel-button:hover {
            background-color: #2980b9;
        } 
 
 
         .message {
            font-size: 18px;
            color: #2c3e50;
        }
        .home-button {
            background-color: #1877f2;
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 5px;
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
        }
        .home-button:hover {
            background-color: #2980b9;
        }
 
 
 
 
 
 
 
 
 
 
 
 /* -------------------------------------------
// REFERRAL PAGE STYLING
 ------------------------------------------- */
 
 
 /* Tabs Styling */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    margin: 0 5px;
    background-color: #ecf0f1;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.tab.active {
    background-color: #1877f2;
    color: #fff;
}

/* Tab Content */
.tab-content {
    display: none;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

/* Referral Item Card */
.referral-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background-color: #ecf0f1;
    border-radius: 8px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.referral-item img {
    border-radius: 5px;
    object-fit: cover;
}

.referral-item div {
    margin: 0 10px;
}

.referral-item p {
    margin: 5px 0;
    font-size: 14px;
}

.share-buttons button {
    padding: 8px 12px;
    margin: 5px;
    background-color: #1877f2;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.share-buttons button:hover {
    background-color: #2980b9;
}
 
.share-buttons {
    display: flex;
    flex-wrap: wrap;
}

/* Screen Width Less Than 470px: Share Buttons Below Thumbnail */
@media (max-width: 470px) {
    .referral-item {
        flex-direction: column;
        align-items: center;
    }

    .share-buttons {
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }

    .share-buttons button {
        margin: 5px;
    }
}

 
 
 
 
 
/* -------------------------------------------
// SHARE PAGE STYLING
 ------------------------------------------- */
 
/* Centering the container */
.share-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
    margin: 30px auto; /* Add spacing from header and footer, center horizontally */
    position: relative; /* Required if positioning content inside */
}

/* Align "Назад" and "Сподели" buttons on the same line */
.share-container button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4267B2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 10px; /* Add space between buttons */
    display: inline-block; /* Ensure buttons are inline */
}

.share-container button:hover {
    background-color: #365899;
}

/* Spacing for inputs and textarea */
.share-container input, .share-container textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Styling specific for the button container */
.button-container {
    display: flex;
    justify-content: space-between; /* Space between buttons */
    align-items: center; /* Align buttons vertically */
    margin-top: 20px; /* Add space above buttons */
}
 
 
 
/* Parent Container (Red Border) */
#mainView div,
#imagePreviewList div {
    position: relative;
    width: 215px;
    height: 165px;
    margin: 10px;
    overflow: hidden;
    background-color: #f9f9f9;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    padding: 0;
    box-sizing: border-box; /* Include border and padding in dimensions */
}

#mainView img,
#imagePreviewList img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
    max-width: none !important;
    max-height: none;
}



/* Number Label Styling */
#mainView div div,
#imagePreviewList div div {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Delete Button Styling */
#mainView button,
#imagePreviewList button {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}
 
 
 
 
 
 
 
 
 
/* -------------------------------------------
// MAIN PAGE STYLING
 ------------------------------------------- */

/* Hero Container Styling */
.hero-container {
    background: url('images/hero-background.jpg') no-repeat center center/cover;
    position: relative;
    text-align: center;
    color: white;
    padding: 80px 20px;
    margin-bottom: 30px;
    overflow: hidden;
}


/* Background overlay */
.hero-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text contrast */
    z-index: 0; /* Ensure it's behind the text */
    display: block; /* Ensure the pseudo-element renders */
}



/* Hero Heading Styling */
.hero-heading, .hero-subheading {
    position: relative; /* Make sure these are above the overlay */
    z-index: 1; /* Place them above the overlay */
}


/* Hero Heading Styling */
.hero-heading {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 0.6em;
}

/* Hero Subheading Styling */
.hero-subheading {
    font-size: 1em;
    font-weight: 300;
}



.heading-container {
    display: flex;
    justify-content:center;
    align-items: center;
    padding-bottom: 1em;
}

.heading-container h1 {
    font-size: 2em;
    color: #1877f2; /* Facebook blue */
}


.swiper-container {
    overflow: hidden; /* Prevents overflow */
    position: relative;
    width: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    /* Adjust slide styling */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.swiper-slide img {
    width: 100%;
    object-fit: cover;
    height: auto;
    border-radius: 8px;
}

.swiper-slide a {
    text-decoration: none;
    color: inherit; /* Inherit text color */
    display: block; /* Ensure the entire slide is clickable */
}

.swiper-slide a:hover {
    text-decoration: none;
    color: #1877f2; /* Optional: Change color on hover */
}

.swiper-pagination {
    position: relative; /* Ensure it's positioned below the slides */
    bottom: 0;
    text-align: center;
    margin-top: 20px; /* Add spacing above the pagination if needed */
}

.swiper-pagination-bullet {
    background: #1e90ff; /* Customize pagination bullet color */
}


/* Price and Odometer Row Specific to This Page */
.price-odometer-row {
    display: flex;
    justify-content: space-between; /* Space them apart */
    margin: 0.6em 0;
}

.price-text {
    color: #1877f2; /* Blue color for price */
    font-weight: bold;
    margin-left: 1em;
}

.odometer-text {
    color: #333; /* You can adjust the color for odometer */
    font-weight: normal;
    margin-right: 1em;    
}


section {
    border-top: 2px solid #1877f2; /* Facebook blue */
    padding: 20px auto;
    background-color: white; /* Keep a consistent background */
}

.grid-section {
    background-color: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

.grid-section h2 {
    font-size: 2.5em;
    color: #1e90ff;
    margin-bottom: 20px;
}

.grid-section p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
}


/* Step-by-step Process Styling */
.steps {
    margin: 0 auto; /* Center the steps */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 5 equal columns */
    gap: 20px;
}

.steps a {
    display: block;              /* Ensure anchor tag behaves like a block element */
    text-decoration: none;       /* Remove underline from links */
    color: inherit;              /* Inherit text color */
}

/* Individual Step Styling */
.main-step {
    cursor: pointer;
    background-color: white;
    border-radius: 8px;
    padding: 0.5em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    transition: transform 0.3s ease;
}

.main-step:hover {
    transform: scale(1.05); /* Scale up slightly on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Enhance shadow on hover for more depth */
}

/* Icon Styling */
.main-step i {
    font-size: 2.5em; /* Increase the size of the icon */
    color: #1877f2; /* Use your primary brand color (Facebook blue) */
    margin-bottom: 15px; /* Space between icon and heading */
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth hover transitions */
}

/* Add some hover effects for the icons */
.main-step:hover i {
    color: #145dbf; /* Darker blue for icon on hover */
    transform: scale(1.2); /* Slightly enlarge icon on hover */
}

.main-step h3 {
    font-size: 1.5em;
    color: #1877f2; /* Facebook blue for headings */
    margin-bottom: 10px;
}

.main-step p {
    font-size: 1.1em;
    color: #555; /* Softer text color for readability */
    line-height: 1.6;
}






/* -------------------------------------------
// FOOTER STYLING
 ------------------------------------------- */

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  max-width: 800px;
  margin: 0 auto;
  gap: 30px;
  padding: 10px 15px;
}

.footer-col {
  flex: 1 1;
  max-width: 400px;
  text-align: center;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  margin-top: 18px;
  width: 100%;
}

.footer-col ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.footer-col ul li i {
  margin-right: 8px;
  min-width: 20px;
}

.footer-office-img {
  width: 180px;
  height: 80px;
  border-radius: 3%;
  object-fit: cover;
  border: 2px solid #ccc;
  margin: 10px auto 0;
  display: block;
}


.footer-col a {
  color: #0066cc;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding: 10px 0 15px;
  font-size: 0.85rem;
  border-top: 1px solid #ddd;
}

.footer-bottom a {
  margin: 0 6px;
  color: #0066cc;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 10px;
  }

  .footer-col ul li {
    justify-content: center;
  }
}











/* -------------------------------------------
// HOW TO PURCHASE STYLING
 ------------------------------------------- */


/* Steps Wrapper with Arrows */
.steps-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

/* Left and Right Arrows (Visible on Large Screens) */
.left-arrow, .right-arrow {
    display: block;
    background: none;
    border: none;
    font-size: 2em;
    color: #1877f2;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Disabled Arrow Styles */
.carousel-arrow.disabled {
    color: #ccc; /* Gray out the arrow */
    cursor: not-allowed; /* Change the cursor to indicate it's disabled */
    pointer-events: none; /* Prevent clicking */
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Hide Up and Down Arrows on Large Screens */
.up-arrow, .down-arrow {
    display: none;
}

/* Steps Carousel - Only 1 step should be visible at a time */
.purchase-steps-carousel {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Purchase Step */
.purchase-step {
    display: none; /* Hide all steps initially */
    background-color: white;
    border-radius: 8px;
    padding: 1em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 60%; /* Step width */
    transition: transform 0.5s ease;
}

/* Active step should be visible and centered */
.purchase-step.active {
    display: block;
    transform: scale(1.1); /* Slightly enlarge the active step */
}

.purchase-step i {
    font-size: 2.5em;
    color: #1877f2;
    margin-bottom: 15px;
}

.purchase-step h3 {
    font-size: 1.5em;
    color: #1877f2;
}

.purchase-step p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
}







/* -------------------------------------------
// SEARCH OPTIONS STYLING
------------------------------------------- */

/* General styling for the search form */
#car-search-form {
    background-color: #f0f4f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    font-family: 'Roboto', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 30px;
}

/* Full width for sections that should span all columns */
.form-full-width {
    grid-column: span 3;
}

h2 {
    grid-column: span 3; /* Ensure it spans all columns */
    text-align: center;  /* Center align the text */
}

.vin-search-group {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Mobile: stack vertically */
@media (max-width: 600px) {
    .vin-search-group {
        grid-template-columns: 1fr;
    }

    .vin-search-group label {
        margin-bottom: 5px;
    }
}


.vin-search-group label {
    white-space: nowrap;
    font-weight: 500;
}

.vin-search-group input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #f4f4f4;
    transition: border-color 0.2s, background-color 0.2s;
}

.vin-search-group input::placeholder {
    color: #000;
    opacity: 1;
}

.vin-search-group input[type="text"]:hover,
.vin-search-group input[type="text"]:focus {
    border-color: #145dbf;
    background-color: #fff;
    outline: none;
}




/* Type, Make, Model in one row */
.search-type-group {
    grid-column: span 3; /* Ensure it spans the full width of the grid */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on larger screens */
    grid-gap: 20px;
    justify-content: center; /* Center the columns horizontally */
}

/* Year and Odometer in two columns */
.search-year-odometer {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    grid-gap: 20px;
}

/* Buy Now and Condition in two columns */
.search-buy-condition {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    grid-gap: 20px;
    justify-content: center;
}

/* Align the labels and checkboxes in a single row */
.search-buy-condition div {
    display: flex;                /* Use flexbox to align items in a row */
    align-items: center;           /* Vertically align the label and checkbox */
    gap: 10px;                     /* Add some space between checkbox and label */
    justify-content: center;
}

/* Engine Type, Engine Size, and Power in one row */
.search-engine-group {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items in one row */
    grid-gap: 20px;
}



/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
    width: 100%;
    font-size: 1em;
}


.custom-dropdown-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f4f4f4;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;  /* Make sure the font size is consistent */
    display: inline-block;
}

.custom-dropdown-select:hover {
    border-color: #145dbf;
    background-color: #f9f9f9;
}

/* Style for the dropdown open state */
.custom-dropdown.open .custom-dropdown-select {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}


.custom-dropdown-options {
    position: absolute;
    width: 15em;
    padding: 10px;
    border: 1px solid #1877f2;
    background-color: #fff;
    max-height: 250px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    cursor: pointer;
}

/* Show dropdown options when parent has 'open' class */
.custom-dropdown.open .custom-dropdown-options {
    display: block;
}

/* Label and checkbox styling */
.custom-dropdown-options label {
    display: flex; 
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
    text-align: left; /* Ensure the label text is left-aligned */
}

.custom-dropdown-options-sale-date label {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust spacing as needed */
}


/* Checkbox styling */
.custom-dropdown-options input[type="checkbox"] {
    margin-right: 10px; /* Space between checkbox and label text */
}

/* Ensure dropdown labels are also left-aligned */
.custom-dropdown-options-model label {
    text-align: left; /* Specific to models, if necessary */
}

/* Checkboxes Styling */
label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
    text-align: center;
}

input[type="checkbox"] {
    margin-right: 10px;
}

/* Checkbox Group Styling */
.form-checkbox-group {
    grid-column: span 3; /* Full width inside the grid */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two checkboxes side by side */
    gap: 20px;
}

/* Checkbox Container */
.form-checkbox {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
}

/* Checkbox Label */
.form-checkbox label {
    display: flex;
    align-items: center;
    justify-content: center;    
    gap: 10px; /* Space between checkbox and text */
    width: 100%;
    cursor: pointer;
}

/* Checkbox Styling */
.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}


/* Slider container styling */
.slider-container {
    margin: 20px 0;
    text-align: center;
}

/* General Slider Styles */
.range-slider {
    width: 80%;
    margin: 0 auto;
    position: relative;
    height: 30px; /* Increased height to give more space for the slider */
}


.range-slider input[type="range"] {
    position: absolute;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: white;
}



.range-slider input[type="range"]::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: #004080;
    cursor: pointer;
}


.range-slider input[type="range"]::-moz-range-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);    
    background-color: #004080;
    cursor: pointer;
}

.range-slider .track {
    position: absolute;
    height: 10px;
    border-radius: 4px;
    background: #ddd;
    width: 100%;
}

.range-slider .range {
    position: absolute;
    height: 10px;
    border-radius: 4px;
    background: #1877f2;
    width: 100%;
}


/* Container for the search button and extended search link */
.search-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px; /* Add some space from the previous elements */
    grid-column: span 3; 
}

/* Search button */
.btn-primary {
    background-color: #1877f2;
    color: white;
    padding: 12px;
    font-size: 1.2em;
    width: 300px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: #145dbf;
}

/* Center the button and position the link to the right */
.search-btn-container .btn-primary {
    margin-right: 20px; /* Add space between button and link */
}

.extended-search-link {
    display: flex;
    align-items: center; /* Vertically align link with button */
}

.extended-search-link a {
    color: #1877f2;
    cursor: pointer;
    font-size: 14px;
}

.extended-search-link a:hover {
    color: #145dbf;
    text-decoration: underline;
}


/* Extended Search Options */
#extended-search-toggle {
    cursor: pointer;
    font-size: 14px;
}

#extended-search-toggle:hover {
    color: #0059b3;
}

/* Hide the dropdown options by default */
.custom-dropdown-options {
    display: none;
}

#extended-search-options {
    grid-column: span 3; /* Full width inside the grid */
}

/* Show dropdown options when the parent has the 'open' class */
.custom-dropdown.open .custom-dropdown-options {
    display: block;
}

/* Media Queries for mobile responsiveness */
@media (max-width: 768px) {
        form#car-search-form {
        grid-template-columns: 1fr; /* One column layout on mobile */
    }

    .search-type-group, 
    .search-year-odometer, 
    .search-buy-condition, 
    .search-engine-group {
        grid-template-columns: 1fr; /* One column for small screens */
    }
    .search-btn-container {
        flex-direction: column; /* Stack button and link vertically */
        align-items: center;    /* Center both elements */
    }

    .btn-primary {
        width: 100%; /* Full width for the button on smaller screens */
        margin-bottom: 10px; /* Add space below the button */
    }

    .extended-search-link {
        text-align: center; /* Center the link on smaller screens */
        margin-left: 0; /* Remove margin on smaller screens */
    }
    

}






 
/* -------------------------------------------
// SEARCH RESULTS STYLING
------------------------------------------- */

.vehicle-details {
    max-width: 700px;
    margin: 0 auto;
}

.controls-container, .results-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Vehicle card layout */
.vehicle-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.vehicle-card a {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Inherits text color from parent */
    display: block; /* Ensures the full card is clickable */
}

.vehicle-card a:hover {
    text-decoration: none; /* Prevent underline on hover */
}

/* Make, model, year */
.vehicle-header {
    margin-bottom: 5px;
}

/* Thumbnail, Date/Time, and Price in the same row */
.vehicle-thumbnail-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;  /* Aligns date/time with top of image */
}

/* Thumbnail image on the left */
.vehicle-thumbnail img {
    width: 150px;
    height: auto;
    border-radius: 5px;
}

.vehicle-info-right {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the price */
    align-items: center;      /* Horizontally center the price */
    padding-left: 15px;
    flex-grow: 1;
}

/* Date and time aligned at the top */
.auction-date-time {
    display: flex;
    align-items: center;
    font-size: 0.8em;
    color: #2980b9;
    margin-top: 1.0em;
    justify-content: flex-start; /* Aligns it with the start of the right section */
}

.vehicle-price-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin-top: 1.2em;
}

.vehicle-price {
    font-size: 1.6em;
    color: black;
    text-align: left;
}


/* Divider line between price-odometer and vehicle-icons */
.divider-line {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 10px 0;
}

/* Odometer, engine type, transmission, engine size in one row */
.vehicle-icons-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 1em;
    color: #555;
}

.vehicle-icons-row span {
    display: inline-flex;
    align-items: center;
}

.vehicle-icons-row p {
    display: flex;
    align-items: center;
    margin: auto 0.5em;
}

.vehicle-icons-row i {
    margin-right: 5px;
    font-size: 1.2em;
}

.engine-icon {
    width: 20px;
    height: 25px;
    margin-right: 5px;
    object-fit: contain;
    vertical-align: middle;
}


.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-radius: 5px;
}

.price-settings {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-left: 1em;
    flex: 1;
}

.price-settings span, .price-settings i {
    margin-right: 8px;
    cursor: pointer;
}

/* Sort By Container */
.sort-by-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Sort By Button */
.sort-by-button {
    background-color: transparent;
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.sort-by-button i {
    margin-right: 5px;
}

.back-button-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.action-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.action-button i {
    margin-right: 0.5em; /* Add some space between icon and text */
}

.action-button:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

#save-button {
    margin-left: 1em; /* Align save button to the left */
}

#back-button {
    margin-right: 1em; /* Align back button to the right */
}


.back-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.back-button:hover {
    background-color: #0056b3;
}

/* Load More Button */
.load-more-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.load-more-button:hover {
    background-color: #0056b3;
}

/* Disabled State for Load More Button */
.load-more-button:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    border: none;
}

/* Centering the container and adding bottom padding */
#load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding-bottom: 30px; /* Add some bottom padding */
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
}


/* Left-align checkbox labels */
.checkbox-group label {
    display: flex;
    align-items: center;
    padding-left: 10px;             /* Add padding for better spacing */
    font-size: 16px;                /* Match the font size */
    color: #333;                    /* Neutral color */
}

/* Style checkboxes */
input[type="checkbox"] {
    margin-right: 10px;             /* Add space between checkbox and label */
}

/* Adjust the save button */
.save-button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #1877f2;      /* Use Facebook blue to match the theme */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.save-button:hover {
    background-color: #145dbf;      /* Darker blue on hover */
}

.close-modal {
    color: red;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}







 

/* -------------------------------------------
// SEARCH DETAILS STYLING
------------------------------------------- */

#image-loading-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px; /* Set appropriate height */
    flex-direction: column;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-radius: 50%;
    border-top: 6px solid #1877f2;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide spinner once images are loaded */
.hide {
    display: none;
}


/* Swiper Container */
.main-slider {
    width: 100%;
    min-height: 30vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: height 0.5s ease;
    background:#f6f6f6;
}

/* Main Swiper Image Styling */
.main-slider .swiper-slide img {
    width: 100%;   
    height: auto;
    display:block;
    object-fit: cover; /* Ensure the image fits without stretching or overflowing */
}


/* Adjust the Image Controls Container */
.image-controls-container {
    position: absolute;
    top: 1px; /* Adjust distance from the top */    
    left: 0;
    width: 100%; /* Spread across the image */
    z-index: 10; /* Ensure controls are above the image */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1em;
}

/* Custom Pagination (Left-aligned) */
.custom-swiper-pagination {
    color: white;
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent background */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 4.5em;
    text-align: center;
    pointer-events: none; /* Ensure pagination doesn't block interaction */
}

/* Fullscreen Icon (Center-aligned) */
#fullscreen-icon {
    color: white;
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent background */
    padding: 7px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* Allow clicks */
}


/* Thumbnail Slider Row */
#thumbnail-row {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 10px auto;
    position: relative;
    padding: 0 50px;
}

/* Swiper Arrows */
.swiper-button-prev,
.swiper-button-next {
    color: #007bff; /* Customize arrow color */
    width: 14px;
    height: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute; /* Position absolutely within the thumbnail row */
}

/* Thumbnail Slider Thumbnails */
.thumbnail-slider .swiper-slide {
    max-width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure that images do not overflow */
}

.thumbnail-slider .swiper-slide img {
    width: 100%;  /* Make image fill the container's width */
    height: 100%; /* Make image fill the container's height */
    object-fit: cover; /* Ensures image fills the area while keeping aspect ratio */
    border-radius: 4px; /* Optional: Add some rounding for better aesthetics */
}



.vehicle-container {
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

/* Vehicle Header */
.vehicle-make {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vehicle-make-model {
    font-size: 22px;
    font-weight: bold;
}

#buyer-save-button {
   margin-top: -5px; 
}


.vehicle-trim {
    font-size: 16px;
    color: #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;    
}

.calendar-info {
    margin-top: 20px;
    font-size: 14px;
    color: #2980b9;
}


.vehicle-icons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vehicle-icons-wrapper-row {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 1.5em;
    align-items: center;
}

.vehicle-icons-wrapper-row p {
    display: flex;
    font-size: 18px;
    color: #333;
}

.vehicle-icons-wrapper-row i {
    margin-right: 5px;
}

/* 🛠 Engine & Cylinders Adjustments */
.vehicle-icons-wrapper-row span img.engine-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}



.vin {
    display: block;
    text-align: center;
}



/* Fullscreen Image Styling */
img:fullscreen, /* Fullscreen in modern browsers */
img:-webkit-full-screen, /* Fullscreen in Safari */
img:-ms-fullscreen { /* Fullscreen in IE */
    width: 100%;
    height: 100%;
    object-fit: contain; /* Maintain aspect ratio while fitting the screen */
    background-color: black; /* Optional: black background to hide any extra space */
}


.expandable-card {
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
  background-color: #f7f7f7;
  overflow: hidden;
}

.expandable-header {
  position: relative;
  padding: 10px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #f7f7f7;
}

.expandable-header .header-title {
  flex: 1;
  text-align: center;
}

.expandable-header i {
  position: absolute;
  right: 20px;
}

.expandable-content {
    background-color: #f7f7f7;
    display: block; /*none if toggle menu on */
}

.expandable-content.show {
  display: block;
}


/* Technical Details Box */
.vehicle-damage-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* 📌 Left Column: VIN & Seller */
.damage-left {
    width: 50%; /* ✅ Ensures equal width */
    text-align: left;
}

/* 📌 Right Column: Damage & Status */
.damage-right {
    width: 50%; /* ✅ Ensures equal width */
    text-align: left;
}

/* 📌 Ensure Text Styling Consistency */
.vehicle-damage-section span,
.vehicle-damage-section p {
    font-size: 14px;
    margin-bottom: 5px;
}

.vehicle-damage-section strong {
    font-weight: bold;
}

.vehicle-damage-section i {
    margin-right: 5px; /* Space between icon and text */
    color: #007bff; /* Use theme blue for icons */
}

.vehicle-condition-no {
    color: #e74c3c; /* Softer red for NO */
    font-weight: bold;
}

.vehicle-condition-yes {
    color: #27ae60; /* Green for YES */
    font-weight: bold;
}



.price-estimate-box {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin: 24px 0;
}

.price-estimate-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
  color: #222;
}

.price-estimate-box .price-bgn {
  font-size: 28px;
  font-weight: 700;
  color: #1a73e8;
  margin: 0 0 8px;
  text-align: center;
}

.price-estimate-box .price-note {
  font-size: 13px;
  color: #777;
  text-align: center;
  margin-bottom: 20px;
}

.price-estimate-box {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}

.similar-label, .sold-label {
  font-weight: 600;
  font-size: 1em;
  margin: 1em auto;
  text-align: center;
}


.cta-inline {
  margin-top: 1em;
  margin-bottom: 1em;
  text-align: center;
}
.cta-inline .cta-text {
  font-weight: bold;
  margin-bottom: 0.5em;
}
.cta-inline .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0.5em;
}
.cta-inline .cta-btn {
  background: #007bff;
  color: #fff;
  padding: 0.6em 1em;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
}
.cta-inline .cta-btn.phone {
  background: #28a745;
}


.sold-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 10px;
}

.sold-card img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eee;
}

.sold-card .sold-info {
  padding: 10px;
}

.sold-card .sold-info p {
  margin: 0;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.sold-card .sold-info strong {
  display: block;
  margin-top: 0.3em;
  font-size: 1.2em;
  color: #1a73e8;
}

.sold-info .info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 5px;
}

.sold-info .info-row span {
  display: flex;
  align-items: center;
  font-size: 14px;
}


.sold-info .info-row i,
.sold-info .info-row img {
  margin-right: 5px;
  width: 16px;
  height: 16px;
}


.cta-section {
    background: #f9fafb;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 40px;
}

.cta-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #222;
}

.cta-subtext {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.cta-highlight {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 24px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.cta-btn.messenger {
    background: #0084FF;
}

.cta-btn.messenger:hover {
    background: #006fd4;
}

.cta-btn.phone {
    background: #1e293b;
}

.cta-btn.phone:hover {
    background: #111827;
}




/* 📱 Mobile Adjustments */
@media (max-width: 500px) {
    
    .vehicle-damage-section {
        flex-direction: column; 
    }
    
    .damage-left, .damage-right {
        text-align: center;
        width: 100%; 
    }
    
    .vehicle-icons-row {
        grid-template-columns: repeat(2, 1fr);
    }       

    #bid-now-button, #buy-now-button {
        width: 80%;
    }
    
    .sold-card .sold-info strong {
        display: block;
        margin-top: 6px;
        font-size: 1em;
        color: #1a73e8;
    }
}





/* -------------------------------------------
// HOW TO BID PAGE STYLING
------------------------------------------- */


/* Scope everything to this page */
.how-to-bid {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}


.how-to-bid a {
    text-decoration: none; /* Remove default underline */
    font-weight: bold;
    color: #1877f2; /* Facebook blue */
    transition: color 0.3s ease-in-out;
}

.how-to-bid a:hover {
    color: #145dbf; /* Slightly darker blue on hover */
    text-decoration: underline;
}

/* Add icon spacing */
.how-to-bid a i {
    margin-right: 5px;
}


/* Page Header */
.htb-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Remove the blue line above sections */
.how-to-bid .htb-step {
    border-top: none !important;
}

/* Section Styling */
.htb-step {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Lists */
.htb-step ul,
.htb-step ol {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-left: 25px;
    line-height: 1.6;
}

.htb-step li {
    margin-bottom: 8px;
}

/* Buttons */
.htb-btn {
    display: block;
    max-width: 280px;
    margin: 15px auto;
    padding: 12px 20px;
    font-size: 1.1em;
    text-align: center;
    border-radius: 5px;
    background-color: #1877f2;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.htb-btn:hover {
    background-color: #145dbf;
}

/* Headings & Paragraph Spacing */
.htb-step h2 {
    margin-bottom: 12px;
}

.htb-step p {
    margin-bottom: 10px;
}

/* Icons & Headings */
.htb-step h2 i {
    margin-right: 8px;
}






/* -------------------------------------------
// DEPOSIT FORM PAGE STYLING
------------------------------------------- */


/* ✅ Scope styles to deposit page only */
.deposit-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Remove the blue line above sections */
.deposit-page .deposit-form {
    border-top: none !important;
}

/* Header */
.deposit-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Form Section */
.deposit-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Labels & Inputs */
.deposit-form label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

.deposit-form input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}


/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 20px;
    background-color: #1877f2;
    color: white;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #145dbf;
}

/* Success & Error Messages */
.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

/* Info Text */
.info-text {
    background: #f8f9fa;
    padding: 10px;
    border-left: 4px solid #007bff;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Hidden Elements */
.hidden {
    display: none;
}


/* Toggle Switch Container */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-weight: bold;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1877f2;
}

input:checked + .slider::before {
    transform: translateX(26px);
}

/* Round Style */
.slider.round {
    border-radius: 34px;
}


/* Input Group Wrapper */
.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

/* Input Field */
.input-group input {
    width: 100%;
    padding: 10px 40px; /* More padding for icon */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Icon inside Input */
.input-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
}


/* Align checkbox and text perfectly */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Adjust spacing between text and checkbox */
    font-weight: bold;
    font-size: 16px;
}

/* Fix checkbox alignment */
.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    transform: translateY(3px);
    cursor: pointer;
}

/* Adjust text to match checkbox position */
.checkbox-label {
    line-height: 18px; /* Match checkbox height */
}







/* -------------------------------------------
// BUYER DASHBOARD PAGE STYLING
------------------------------------------- */

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}


.account-container a {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
}


/* Tab Navigation */
.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Center the section titles */
.tab-content {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    max-width: 90%;
}


.tab-button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.tab-button.active {
    background-color: #1877f2;
    color: white;
}


.tab-content.active {
    display: block;
}


/* Success Message */
.success-message {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

.hidden {
    display: none;
}

/* Deposit Buttons: Keep aligned and responsive */
.deposit-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
    justify-content: center; /* Center buttons */
    align-items: center; /* Align vertically */
    flex-wrap: wrap; /* Stack on small screens */
    margin-top: 10px;
}

/* Ensure buttons are properly sized */
.deposit-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    flex-grow: 1; /* Make them take equal space */
    max-width: 200px; /* Prevent overly stretched buttons */
    min-width: 150px; /* Ensure buttons remain readable */
}

.btn-secondary {
    background-color: #ffc107;
    color: black;
}

/* Stack buttons on smaller screens */
@media (max-width: 500px) {
    .deposit-buttons {
        flex-direction: column; /* Stack buttons */
    }

    .deposit-buttons button {
        width: 100%; /* Full width on small screens */
    }
}


/* 📜 Contract Box */
.contract-box {
    background: #f8f9fa;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
}

.contract-box h4 {
    margin-bottom: 10px;
}

.contract-link {
    font-size: 16px;
    font-weight: bold;
    color: #1877f2;
    text-decoration: none;
}

.contract-link:hover {
    text-decoration: underline;
}

/* 📄 Invoice List */
.invoice-list {
    list-style: none;
    padding: 0;
}

.invoice-list li {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 5px;
}

.invoice-list li a {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: #1877f2;
}

.invoice-list li span {
    float: right;
    font-weight: bold;
}

/* 🚗 Car Tables */
.car-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.car-table th, .car-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.car-table th {
    background: #f8f9fa;
    font-weight: bold;
}

/* ℹ️ No Data Message */
.no-data {
    text-align: center;
    font-style: italic;
    color: #888;
    margin-top: 10px;
}


/* 📄 Invoice List Styling */
.invoice-list {
    list-style: none;
    padding: 0;
}

.invoice-list li {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 5px;
}

/* 📅 Invoice Date (Left Side) */
.invoice-date {
    color: #555;
    margin-right: 15px; /* Space between date and invoice */
}

/* Invoice Links */
.invoice-list li a {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: #1877f2;
    flex-grow: 1; /* Allow text to take remaining space */
}

/* Invoice Amount (Right Side) */
.invoice-list li span {
    color: #333;
}


/* Car Table Styling */
.car-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.car-table th, .car-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.car-table th {
    background: #f8f9fa;
    font-weight: bold;
}

/* Action Buttons */
button {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Specific Button Styles */
.btn-link {
    background-color: #007bff;
    color: white;
}

.btn-remove {
    background-color: #dc3545;
    color: white;
}

.btn-update {
    background-color: #ffc107;
    color: black;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

/* Button Hover Effects */
button:hover {
    opacity: 0.8;
}


/* 🚗 Default Table Style */
.car-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.car-table th, .car-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.car-table th {
    background: #f8f9fa;
    font-weight: bold;
}

/* 📱 Mobile View: Convert Table to Vertical Layout */
@media (max-width: 500px) {
    .car-table-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .car-table thead {
        display: none; /* Hide table headers */
    }

    .car-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .car-table tr {
        display: flex;
        flex-direction: column;
        padding: 15px;
        border: 1px solid #ddd;
        background: #fff;
        border-radius: 5px;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .car-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5em 3em;
        font-size: 14px;
    }

    .car-table td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #555;
    }


    .car-table td button {
        padding: 0.5em 1.5em;
        font-size: 14px;
    }

}








/* -------------------------------------------
// INVOICE and CONTRACT PAGE STYLING
------------------------------------------- */

/* 📜 Contract Container */
.contract-container {
    margin: 0 auto;
    background: #ffffff;
    padding: 10px;
}

/* 📜 Contract Container */
.invoice-container {
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-left: 8px solid #1877f2;
}

/* 🏆 Titles & Sections */
.contract-container h1, .invocie-container h1,
.contract-container h3 {
    color: #1877f2;
    text-align: center;
    font-weight: bold;
}

/* 📌 Section Titles */
.contract-container .section-title {
    margin-top: 20px;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 2px solid #1877f2;
    padding-bottom: 5px;
    color: #333;
}

/* ✍️ Text & Paragraphs */
.contract-container p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}


        .invoice-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .invoice-logo {
            max-width: 160px;
            height: auto;
        }

        .invoice-details {
            margin-top: 3em;
            display: flex;
            justify-content: space-between;
        }
        .company-details, .client-details {
            width: 45%;
        }
        .details-item {
            margin-bottom: 1.5em;
        }
        .invoice-container table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        .invoice-container table, .invoice-container th, .invoice-container td {
            border: 1px solid #ddd;
        }
        .invoice-container th, .invoice-container td {
            padding: 12px;
            text-align: left;
        }
        .invoice-container th {
            background-color: #0056b3;
            color: white;
        }
        .totals {
            margin-top: 20px;
            text-align: right;
        }
        .totals p {
            margin: 0;
        }
        .bank-info {
            margin-top: 3em;
        }
        .stamp {
            margin-top: 3%;
            font-size: 0.6em;
            display: flex;
            align-items: center;
        }



/* 📱 Responsive Adjustments */
@media (max-width: 875px) {
    .contract-container, .invoice-container {
        width: 90%;
        padding: 15px;
    }

}


@media screen and (max-width: 600px) {
    .invoice-container table,
    .invoice-container thead,
    .invoice-container tbody,
    .invoice-container th,
    .invoice-container td,
    .invoice-container tr {
        display: block;
        width: 100%;
    }

    .invoice-container thead {
        display: none; /* Hide table headers */
    }

    .invoice-container tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
    }

    .invoice-container td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        display: flex;
        justify-content: space-between;
    }

    .invoice-container td::before {
        content: attr(data-label); /* Use the "data-label" attribute to show column headers */
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }
}








/* -------------------------------------------
// AVAILABLE CAR LANDING PAGE STYLING
------------------------------------------- */


/* Title Section */
#vehicle-details-container .title-section {
    text-align: center;
    padding: 20px 0;
    background-color: #f4f4f4;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#vehicle-details-container .vehicle-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    color: #333;
}



/* Toggle Sections */
#vehicle-details-container .toggle-sections {
    margin-top: 20px;
}

/* Toggle Sections */
#vehicle-details-container .toggle-section {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

#vehicle-details-container .toggle-title {
    font-size: 1.2rem;
    background-color: #f9f9f9;
    color: #333;
    padding: 10px 15px;
    margin: 0;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #ddd;
    position: relative; /* For positioning the arrow icon */
}

#vehicle-details-container .toggle-title::after {
    content: "\25BC"; /* Downward arrow */
    font-size: 1rem;
    color: #333;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

#vehicle-details-container .toggle-section.open .toggle-title::after {
    content: "\25B2"; /* Upward arrow */
    transform: translateY(-50%) rotate(180deg); /* Rotates the arrow */
}

#vehicle-details-container .toggle-content {
    padding: 15px;
    display: none; /* Initially hidden */
    font-size: 1rem;
    color: #333;
    background: #f9f9f9;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-in-out;
    justify-content: center;
    align-items: center;
}


#vehicle-details-container .tech-parameters {
    display: flex;
    justify-content: center; /* Center the columns horizontally */
    align-items: center; /* Center the content vertically */
    gap: 3rem; /* Space between left and right columns */
}

#vehicle-details-container .tech-column {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between items in each column */
    align-items: flex-start; /* Align items inside each column */
}

#vehicle-details-container .tech-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    font-size: 1rem;
}


/* Extras Section Styling */
#vehicle-details-container .extras-list , .info-list , .pricing-list {
    list-style: none; /* Remove default bullet points */
    padding: 0;       /* Remove default padding */
    margin: 0;        /* Remove default margin */
    display: flex;
    flex-direction: column;
    gap: 10px;        /* Add space between list items */
}

/* Center the Heading Text */
.contact-heading {
    text-align: center;
    font-weight: bold; /* Bold text */
    margin-bottom: 15px; /* Add space below the heading */
    font-size: 1.1rem;
}

/* Center the Contact Row */
.contact-row {
    display: flex;
    justify-content: center; /* Center the Messenger and Phone */
    align-items: center;     /* Align icons and text vertically */
    gap: 50px;               /* Add space between Messenger and Phone */
}

/* Individual Contact Item */
.contact-item {
    display: flex;
    align-items: center; /* Align icon and text vertically */
    gap: 8px;            /* Space between icon and text */
    font-size: 1rem;
}

/* Icon Styling */
.contact-item i {
    font-size: 1.5rem;   /* Larger icon size for emphasis */
    color: #007bff;      /* Blue color to match the links */
}

/* Link Styling */
.contact-item a {
    color: #007bff;       /* Match icon color */
    text-decoration: none; /* Remove underline */
    font-weight: bold;     /* Bold links for emphasis */
}

.contact-item a:hover {
    text-decoration: underline; /* Add underline on hover */
    color: #0056b3;             /* Slightly darker blue on hover */
}

/* Responsive Adjustment */
@media (max-width: 400px) {
    .contact-row {
        flex-direction: column; /* Stack items vertically on small screens */
        gap: 15px;              /* Reduce space between items */
    }

    .contact-heading {
        font-size: 1rem; /* Adjust heading size for smaller screens */
    }
}


#vehicle-details-container .toggle-section.open .toggle-content {
    display: block; /* Show when section is open */
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}



/* General Adjustments for Responsiveness */
#vehicle-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

@media (max-width: 768px) {
    #vehicle-details-container .vehicle-title {
        font-size: 2rem;
    }

    #vehicle-details-container .toggle-title {
        font-size: 1rem;
        padding: 8px 12px;
    }

    #vehicle-details-container .toggle-content {
        font-size: 0.9rem;
    }

    #vehicle-details-container .swiper-button-prev,
    #vehicle-details-container .swiper-button-next {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
}










/* -------------------------------------------
// PARTNERS PROGRAM STYLING
------------------------------------------- */

h1.page-title {
    text-align: center;
    padding: 20px 0;
    color: #1877f2;
    font-size: 2em;
}

.section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.content h3 {
    color: #1877f2;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3em;
}

ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
}

.highlight {
    text-decoration: underline;
    font-weight: bold;
}

.example::before {
    content: "💡 ";
    font-weight: bold;
    color: #1877f2;
}


/* Call to Action */
.join-button {
    text-align: center;
    margin-top: 20px;
}

.join-button a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1877f2; /* Facebook blue for primary actions */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.join-button a:hover {
    background-color: #145dbf; /* Slightly darker blue for hover */
}


/* Responsiveness */
@media (max-width: 768px) {
    .join-button a {
        padding: 8px 16px; /* Adjust padding for smaller screens */
    }
}


.car-gallery {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 20px;
}
.car-item {
  flex: 1;
  text-align: center;
}

/* Responsive for screens smaller than 768px */
@media (max-width: 768px) {
  .car-gallery {
    flex-direction: column;
    align-items: center;
  }

  .car-item {
    width: 80%;
    margin: 0 auto;
  }
}




/* -------------------------------------------
// SMALL SCREEN STYLING
 ------------------------------------------- */
 
 
@media (max-width: 760px) {

    .logo-container {
        display: flex;
        align-items: center;    
        margin-right: 1em;
        height: 1.2em;
    }

/* Button-like phone pill */
.navbar .nav-phone,
.navbar .nav-phone:link,
.navbar .nav-phone:visited{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:6px;
  background:#fff; color:#1877f2 !important;
  border:1px solid #1877f2;
  font-weight:700; line-height:1; text-decoration:none;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  cursor:pointer;
  transition:transform .06s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.navbar .nav-phone i{ color:inherit; }
    
    .navbar {
        flex-wrap: wrap;
        padding: 0.7em;
    }

    /* Hide navigation links and show hamburger */
    .nav-links {
        display: none; /* Hide links by default on mobile */
        flex-direction: column;
        width: 100%;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .hamburger {
        display: flex; /* Show hamburger on mobile */

    }

    .nav-controls {
    position: absolute;
    right: 0.6em;
    display: flex;
    align-items: center;
    gap: 1em;
    }

    /* Language Selector */
    .language-selector {
        display: none;
    }
    
    .language-selector.active {
        display: none; /* Show when active */
    }

/* Sub Navbar */
.sub-navbar {
    display: none; /* Hide by default */
    width: 100%;
    background-color: #f0f4f8; /* Light background */
    text-align: center; /* Center the text */
    padding: 10px 0; /* Padding for spacing */
    border-top: 2px solid #339af0; /* Blue border on top */
    border-bottom: 2px solid #339af0; /* Blue border on bottom */
}

.sub-navbar.active {
    display: flex;
    justify-content: center; /* Center the grid within the navbar */
}

/* Sub Navbar Links */
.sub-navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout */
    gap: 10px; /* Add space between columns */
}

/* Sub Navbar Link Styling */
.sub-navbar a {
    text-decoration: none;
    font-size: 1em;
    color: #0056b3; /* Dark blue for links */
    padding: 8px;
    background-color: #ffffff; /* Optional: White background for items */
    border-radius: 4px; /* Slightly rounded corners */
    display: block;
}

.sub-navbar a:hover {
    background-color: #0056b3; /* Dark blue on hover */
    color: white;
}

    .steps {
        grid-template-columns: 1fr; /* Make steps full-width on smaller screens */
    }

    /* Adjust nav links spacing */
    .nav-links li {
        margin: 5px 0;
    }
    
        .car-grid {
        grid-template-columns: 1fr; /* Stack each item in one column */
    }

    .car-card img {
        max-width: 90%; /* Reduce the image size on small screens */
    }

    .cta-button {
        font-size: 1em; /* Adjust button size for smaller screens */
        padding: 12px 20px;
    }
    
    /* Ensure vertical stacking on small screens */
    .steps-wrapper {
        display: grid;
        grid-template-rows: auto 1fr auto; /* Up arrow, step, down arrow */
        grid-template-columns: 1fr; /* Single column */
        justify-items: center; /* Center everything horizontally */
        width: 100%;
    }

    /* Hide Left and Right Arrows on Small Screens */
    .left-arrow, .right-arrow {
        display: none;
    }

    /* Show Up and Down Arrows */
    .up-arrow, .down-arrow {
        display: block;
        background: none;
        border: none;
        font-size: 4em;
        color: #1877f2;
        cursor: pointer;
    }

    /* Up Arrow (Top of the Grid) */
    .up-arrow {
        margin-bottom: 15px;
    }

    /* Down Arrow (Bottom of the Grid) */
    .down-arrow {
        margin-top: 15px;
    }

    /* Adjust step layout for mobile */
    .purchase-step {
        width: 90%; /* Take up most of the screen */
        padding: 1.5em; /* Reduce padding */
        margin: 0 auto; /* Center the step */
        grid-row: 2 / 3; /* Place it between the arrows */
    }

    /* Icon size adjustment */
    .purchase-step i {
        font-size: 2em; /* Smaller icon for mobile */
    }

    /* Adjust heading size */
    .purchase-step h3 {
        font-size: 1.5em; /* Adjust heading size */
    }

    /* Adjust paragraph size */
    .purchase-step p {
        font-size: 1em; /* Adjust paragraph size */
    }
    
}