/* Apply to the whole page */
html,
body {
    height: 100%;
    margin: 0;
    font-family: "Helvetica", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#ashade-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 10px 40px;
    background-color: #fafafa;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}

/**
    
    PRODEJ STYLING

    **/

#prodej {
    margin-top: 155px;
}

.quick-filters {
    position: fixed; /* Fixes the element in place */
    top: 75px; /* Adjust the distance from the top of the page (you can change this value) */
    left: 0; /* Align it to the left edge */
    width: 100%; /* Make it span the full width of the page */
    z-index: 5000; /* Ensures the filters appear on top of other elements */
    display: flex;
    justify-content: center; /* Centers the filters horizontally */
    flex-wrap: wrap; /* Ensures they stay on one line if possible */
    gap: 25px; /* Adds spacing between filter buttons */
    padding: 10px 0;
    background-color: #f8f8f8; /* Optional: Light background for better visibility */
}

.quick-filters-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px; /* Adjust spacing between filter items */
}

.filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Style the button itself */
.filter-item button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

/* General button image styling */
.filter-item button img {
    width: 80px; /* Default size for images */
    height: 42px;
    transition: transform 0.2s ease-in-out;
}

/* Specific smaller image size for buttons with the class filter-item-smaller */
.filter-item-smaller button img {
    width: 10px !important; /* Size for the smaller image */
    height: 10px !important;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

/* Hover effect on buttons */
.filter-item button:hover img {
    transform: scale(1.1); /* Slight zoom effect on hover */
    filter: drop-shadow(1px 1px 1px rgba(255, 0, 0, 0.5));
}

.filter-label {
    margin-top: 5px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

@media (max-width: 425px) {
    .quick-filters {
        top: 60px; /* Adjust positioning for smaller screens */
        gap: 15px; /* Reduce spacing */
        padding: 5px 0;
    }

    .filter-item button img {
        width: 60px; /* Reduce image size */
        height: 32px;
    }

    .filter-label {
        font-size: 12px; /* Reduce text size */
    }
}

@media (max-width: 375px) {
    .quick-filters {
        top: 60px;
        gap: 10px;
        padding: 5px 0;
    }

    .filter-item button img {
        width: 50px;
        height: 28px;
    }

    .filter-label {
        font-size: 11px;
    }
}

/* Footer stays at bottom */
footer {
    margin-top: auto; /* Push footer to the bottom */
    background-color: #fafafa; /* Footer background color */
    color: black; /* Footer text color */
    text-align: center; /* Center the text */
    padding: 20px;
    width: 100%;
}

/* stylování meny v hlavicce */
.header_menu {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-left: 40px; /* Shift the menu slightly to the right */
}

.header_menu a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.header_menu a:hover {
    color: #d11b1b;
    transform: scale(1.1);
}

/* stylovani html text*/
.html_text {
    margin-left: 20px;
    margin-top: 80px;
    color: blue;
    font-size: 30px;
}

td img {
    height: 50px;
    width: 50px;
}

td p {
    margin: 0; /* remove extra spacing inside table cells */
    padding: 0.5rem; /* optional: add some breathing room */
    font-size: 20px; /* adjust text size */
    color: green; /* text color */
    line-height: 1.4; /* better readability */
}

/* Logo */
.logo_header {
    width: 240px;
    height: auto;
    flex-shrink: 0; /* prevent shrinking */
}

/* Wrap WhatsApp + Flags together on the right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0; /* prevent shrinking */
}

/* WhatsApp section */
.header-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-whatsapp span {
    font-size: 16px;
    font-weight: bold;
}

.whatsapp-icon,
.viber-icon {
    width: 22px;
    height: auto;
}

/* Languages */
.header-langs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-langs img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border: 1px solid black;
    cursor: pointer;
}

.header-phone {
    margin-left: 10px;
}

/**
    
    INDEX STYLING

    **/

#index {
    margin-top: 60px;
}

/** INTRO **/
.index-intro {
    display: flex;
    align-items: center; /* Aligns items vertically */
    justify-content: space-between; /* Pushes H1 left and image right */
    gap: 20px; /* Adds spacing between the text and the map */
    padding: 20px;
}

/* Styling for the heading */
.index-intro h1 {
    font-size: 40px; /* Adjust as needed */
    color: white;
    font-weight: bold;
    max-width: 70%; /* Ensures the text doesn’t stretch too much */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Adds a subtle shadow */
}

/* Styling for the map */
.index-mapa-intro {
    max-width: 250px; /* Ensures the image doesn't take too much space */
    height: auto; /* Maintains aspect ratio */
    margin-right: 50px;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

.index-intro img:hover {
    cursor: pointer;
}

.index-intro-text {
    font-size: 20px;
    line-height: 1.6;
    color: white;
    max-width: 80%; /* Optional: limits the text width */
    margin-top: 5px;
    margin-left: 70px;
}

.index-prodej {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    text-align: center;
    justify-content: center; /* Centers content vertically */
    width: 100%;
    padding: 20px;
}

.index-prodej h2 {
    font-size: 27px;
    margin: auto;
    margin-bottom: 15px;
}

.index-out-link {
    display: flex;
    justify-content: center; /* Centers text horizontally */
    align-items: center; /* Centers text vertically */
    width: 200px;
    height: 40px;
    background-color: red;
    color: white;
    margin-top: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #ff0000;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.index-out-link:hover {
    transform: scale(1.1);
}

.index-prodej {
    background-color: #fafafa;
}

.index-prodej-trucks {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Creates 4 equal columns */
    gap: 25px;
    justify-content: center;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto; /* Center the grid */
}

.truck-card {
    display: flex; /* Allows content to be structured */
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center items */
    justify-content: center;
    width: 100%; /* Make the link take full width */
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit text color */
    border-radius: 20px;
}

/* Container Styling */
.index-prodej-truck-window {
    border: 1px solid #ccc;
    max-width: 275px; /* Prevent it from stretching too much */
    text-align: left; /* Align content to the left */
    background-color: #fff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure the entire link is clickable */
    border-radius: 8px;
    height: 380px; /* Increase the height for a larger container */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: flex-start; /* Align content to the top */
}

/* Image Section */
.truck-image {
    height: 170px; /* Occupy the top half of the container */
    width: 100%;
    overflow: hidden; /* Hide anything that overflows */
    border-radius: 8px 8px 0 0;
}

/* Swiper styles */
.swiper {
    width: 100%;
    height: 100%; /* Adjust based on your layout */
    overflow: hidden;
}

/* Swiper slides */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

/* Left Button - Stick to the left edge */
.swiper-button-prev {
    left: 0px; /* Adjust the distance from the edge */
}

/* Right Button - Stick to the right edge */
.swiper-button-next {
    right: 0px; /* Adjust the distance from the edge */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Pagination */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    background: #ff6600; /* Change to your theme color */
    opacity: 1;
}

.index-prodej-truck-window-truck-name {
    margin-top: 5px;
    font-size: 18px;
    margin-left: 10px;
    margin-bottom: 5px;
    text-align: left;
    text-decoration: none;
}

.index-prodej-truck-window img {
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    object-fit: cover; /* Ensure the image fills the space without distortion */
    transition: transform 0.5s ease-in-out; /* Smooth zoom transition */
}

/* Details Section */
.truck-details {
    height: 30%; /* Occupy the bottom half of the container */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Space between details */
    flex-grow: 1; /* Push the price to the bottom */
}

.truck-details h3 {
    margin: 5px 0 5px;
    font-size: 17px;
    font-weight: bold;
    color: #333;
}

.truck-info {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout */
    gap: 5px;
    font-size: 14px;
    color: #333;
    margin-left: 10px;
    margin-bottom: 5px;
}

/* Style the horizontal line */
.truck-line {
    width: 90%; /* Set the width to 90% */
    border: 0; /* Remove the default border */
    border-top: 1px solid #ccc; /* Add a thin solid line */
    margin: 5px auto; /* Center the line and add some vertical margin */
}

/* Optionally, to ensure all content in the span wraps correctly */
.truck-info span {
    display: block; /* Ensure each piece of data is on its own line */
}

/* Style for each individual piece of information */
.truck-info .truck-label {
    font-weight: bold;
    margin-right: 1px; /* Add some space between label and value */
}

.truck-info .truck-value {
    text-align: left;
}

/* Price Section */
.truck-price {
    color: #444;
    margin-top: auto; /* Push the price to the bottom */
    margin-left: 10px;
    margin-bottom: 5px;
}

/* Styling for the label "Cena" */
.truck-price-label {
    font-size: 16px !important; /* Set a larger font size for the label */
    font-weight: bold !important; /* Make the label bold */
    color: darkgrey !important; /* Set a dark color for the label */
    display: block; /* Make the label display on its own line */
    margin-bottom: 5px; /* Add some space below the label */
}

/* Styling for the price value */
.truck-price-number {
    font-size: 20px !important; /* Set a slightly larger font size for the price */
    color: #e74c3c; /* Use a red color for the price */
    font-weight: bold; /* Make the price bold */
    display: inline-block; /* Ensure the number stays inline */
}

.index-vykup {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    text-align: center;
    background-color: #fafafa;
    margin: 0 auto; /* Centers the container horizontally */
    margin-top: 200px;
    padding: 20px;
}

.index-vykup-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 70%; /* Adjust the width as needed */
    margin-bottom: 20px; /* Adds space below the text */
}

.index-quality-garance {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers everything horizontally */
    text-align: center; /* Centers text */
    background-color: #fafafa;
    width: 100%;
    margin-top: 200px;
    padding: 20px;
}

.index-quality-garance h2 {
    font-size: 30px;
    margin: 10px 0;
}
.index-quality-garance h3 {
    font-size: 22px;
    margin: 10px 0;
}

.index-garance-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px; /* Adds space between the text and next element */
    max-width: 70%; /* Adjust the width as needed */
}

.garance-brands-list {
    display: flex;
    justify-content: center; /* Centers the images horizontally */
    flex-wrap: wrap; /* Wraps images if they exceed the width */
    gap: 25px; /* Adds space between the images */
}

.brand-logo {
    width: 80px; /* Adjust the width of the logos */
    height: auto;
    object-fit: contain; /* Ensures the images maintain their aspect ratio */
    transition: transform 0.5s ease;
}

.brand-logo:hover {
    transform: scale(1.1);
}

.index-kontakty {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    text-align: center;
    background-color: #fafafa;
    margin: 0 auto; /* Centers the container horizontally */
    margin-top: 200px;
    padding: 20px;
}

.index-kontakty-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 70%; /* Adjust the width as needed */
    margin-bottom: 20px; /* Adds space below the text */
}
/* Modal Styles */
.modal-kon {
    display: none;
    position: fixed;
    z-index: 99990 !important;
    inset: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    text-align: center;
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content-kon {
    width: 80vw;
    height: 80vh;
    margin: auto;
    position: relative;
}

.modal-content-kon iframe {
    width: 100%; /* Set to 100% to make it responsive */
    height: 100%; /* Adjust height accordingly */
    border: 0;
}

.close-kon {
    position: absolute;
    top: 90px;
    right: 35px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/**

KONTAKT STYLING

**/

/** KONTAKT STYLING **/
#kontakt {
    flex: 1; /* This will push the prefooter and footer to the bottom */
    margin-top: 75px;
}

/** KONTAKT FORM STYLING **/
.contacts-h2 {
    font-size: 50px;
    color: white;
    margin-top: 450px;
    margin-bottom: 30px;
    margin-left: 50px;
}

.contacts-content-content {
    background-color: white;
    padding-top: 25px;
    padding-bottom: 10px;
}

/* Flexbox for the parent container */
.contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 40px 20px; /* space between windows */
    max-width: 800px;
    margin: 50px auto;
}

.contact-window {
    display: flex; /* Use flex to easily align elements */
    flex-direction: column; /* Stack content vertically inside each window */
    justify-content: center; /* Center the content vertically */
    border: 1px solid transparent;
    padding: 30px;
    width: 300px; /* Set width for each contact window */
    text-align: left;
    background-color: rgba(249, 249, 249, 0.5);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}

.contact-window h3 {
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 15px;
    color: white;
}

.contact-window-text {
    font-weight: bold;
    text-align: center;
    font-size: 17px;
    line-height: 2;
    color: white;
    text-shadow: 0 0 10px grey;
}

.contact-window2 {
    display: flex; /* Use flex to easily align elements */
    flex-direction: column; /* Stack content vertically inside each window */
    justify-content: center; /* Center the content vertically */
    border: 1px solid transparent;
    padding: 30px;
    width: 300px; /* Set width for each contact window */
    text-align: left;
    background-color: rgba(249, 249, 249, 0.5);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}

.contact-window3 {
    display: flex; /* Use flex to easily align elements */
    flex-direction: column; /* Stack content vertically inside each window */
    justify-content: center; /* Center the content vertically */
    border: 1px solid transparent;
    padding: 30px;
    width: 300px; /* Set width for each contact window */
    text-align: left;
    background-color: rgba(249, 249, 249, 0.6);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
}

.contact-window3 h3 {
    text-align: center;
    font-size: 25px;
    margin-bottom: 20px;
    margin-top: 15px;
    color: black;
}

.contact-window2 h3 {
    text-align: center;
    font-size: 25px;
    margin-bottom: 20px;
    margin-top: 15px;
    color: black;
}

.contact-window-text2 {
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    line-height: 2;
    color: black;
    text-shadow: 0 0 10px grey;
}

.contact-mapa-intro {
    max-width: 100%; /* Ensure it doesn't overflow */
    height: auto;
    display: block; /* Ensure it behaves as a block element */
}

.google-mapa {
    width: calc(100% + 70px); /* Extend width beyond padding */
    margin-left: -35px; /* Offset the extra width */
    display: flex;
    justify-content: center;
}

.google-mapa iframe {
    width: 100%; /* Make the iframe responsive */
    height: 300px; /* Adjust the height as needed */
    border: 0;
}

.contacts img {
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

.contacts img:hover {
    cursor: pointer;
}

.con-form {
    max-width: 700px;
    margin: auto;
    margin-top: 50px;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

.con-form h2 {
    margin-bottom: 20px;
}

.con-form input[type="submit"] {
    width: 160px;
    height: 50px;
    background-color: red;
    color: white;
    font-size: 16px;
    border: 1px solid #ff0000;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.con-form input[type="submit"]:hover {
    background-color: white; /* Darker red on hover */
    border-color: white;
    color: red;
}

.errors_message {
    color: red;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

.success_message {
    color: green;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    font-size: 12px;
    margin-left: 10px;
    display: block;
}

.form-group input {
    width: 90%;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 20px;
    font-size: 16px;
    background-color: #f8f9fa;
}

.textarea-group {
    margin-top: 15px;
}

.textarea-group label {
    font-size: 12px;
    margin-left: 10px;
    display: block;
    margin-bottom: 5px;
}

.textarea-group textarea {
    width: 95%;
    height: 120px;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 20px;
    font-size: 16px;
    resize: none;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contacts {
        grid-template-columns: 1fr; /* 1 column on smaller screens */
    }
}

/** For screens with max width of 425px */
@media (max-width: 425px) {
    /* Stack contact windows vertically */
    .contacts {
        flex-direction: column; /* Change layout to vertical stack */
        align-items: center; /* Center the contact windows horizontally */
        gap: 20px; /* Reduce space between contact windows */
    }

    .contact-window,
    .contact-window2,
    .contact-window3 {
        width: 90%; /* Make contact windows narrower */
        padding: 20px; /* Reduce padding */
    }

    .contact-window h3,
    .contact-window2 h3,
    .contact-window3 h3 {
        font-size: 20px; /* Make heading font size smaller */
    }

    .contact-window-text,
    .contact-window-text2 {
        font-size: 15px; /* Reduce font size */
    }

    /* Style the form */
    .con-form {
        width: 95%; /* Reduce form width to 95% */
        margin-top: 30px; /* Adjust top margin */
    }

    .con-form input[type="submit"] {
        width: 150px; /* Reduce submit button width */
        height: 45px; /* Reduce height */
    }

    .form-group {
        grid-template-columns: 1fr; /* Stack the input fields in one column */
    }

    .textarea-group {
        margin-top: 20px;
    }
}

/** For screens with max width of 375px */
@media (max-width: 375px) {
    /* Stack contact windows vertically */
    .contacts {
        flex-direction: column; /* Ensure windows are stacked vertically */
        align-items: center; /* Center contact windows */
        gap: 15px; /* Reduce gap */
    }

    .contact-window,
    .contact-window2,
    .contact-window3 {
        width: 90%; /* Narrow the width further */
        padding: 15px; /* Reduce padding */
    }

    .contact-window h3,
    .contact-window2 h3,
    .contact-window3 h3 {
        font-size: 18px; /* Reduce heading font size more */
    }

    .contact-window-text,
    .contact-window-text2 {
        font-size: 14px; /* Reduce font size */
    }

    /* Adjust form styling */
    .con-form {
        width: 95%; /* Keep form width at 95% */
        margin-top: 25px; /* Adjust margin */
    }

    .con-form input[type="submit"] {
        width: 140px; /* Further reduce button width */
        height: 40px; /* Reduce height */
    }

    .form-group {
        grid-template-columns: 1fr; /* Stack the input fields in one column */
    }

    .textarea-group {
        margin-top: 15px;
    }
}

/**     
SERVICES STYLING     
**/
.sluzby-h22 {
    font-size: 50px;
    color: white;
    margin-top: 250px;
    margin-bottom: 30px;
    margin-left: 50px;
}

.service-content-content {
    padding: 10px 0;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-group:first-of-type {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 larger items per row */
    width: 80%;
    gap: 150px;
    margin-bottom: 40px;
    align-items: center; /* Center vertically */
}

.service-group:last-of-type {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 smaller items per row */
    gap: 30px;
    width: 80%;
    margin-bottom: 40px;
}

.service-window {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

.service-group:first-of-type .service-window {
    height: 500px; /* Larger windows for first group */
    display: flex;
    justify-content: center;
}

.service-group:last-of-type .service-window {
    height: 500px; /* Smaller windows for second group */
}

.service-img {
    width: 100%;
    height: 50%;
    object-fit: cover;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.service-content h2 {
    font-size: 22px;
    margin-top: 5px;
}

.service-text {
    font-size: 16px;
    margin-top: 10px;
}

.service-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.service-link:hover {
    transform: scale(1.1);
}

.service-whatsapp {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.service-whatsapp-flag {
    width: 25px;
    height: auto;
    margin-right: 5px;
    border: 1px solid black;
}

.service-whatsapp span {
    font-size: 18px;
}

/* Make the last image in service-content-content have cursor pointer on hover */
.service-content-content
    .service-group:last-of-type
    .service-window:last-of-type
    .service-img:hover {
    cursor: pointer;
}

@media (max-width: 425px) {
    .sluzby-h22 {
        font-size: 34px;
        color: white;
        margin-top: 150px;
        margin-bottom: 20px;
        margin-left: 30px;
    }

    .service-group:first-of-type {
        display: block; /* Stack all service windows vertically */
        width: 80%; /* Adjust the width to 95% to avoid being too wide */
        margin-bottom: 10px;
        align-items: center;
    }

    .service-group:last-of-type {
        display: block; /* Stack all service windows vertically */
        width: 80%; /* Adjust the width to 95% to avoid being too wide */
        margin-bottom: 10px;
        align-items: center;
    }

    .service-group {
        display: block; /* Stack all service windows vertically */
        width: 80%; /* Adjust the width to 95% to avoid being too wide */
        margin-bottom: 10px;
        align-items: center;
    }

    .service-window {
        width: 100%;
        margin-bottom: 10px; /* Add space between the windows */
    }

    .service-img {
        height: 40%; /* Adjust image height for smaller screens */
    }

    .service-content h2 {
        font-size: 18px; /* Adjust h2 size */
    }

    .service-text {
        font-size: 14px; /* Adjust text size */
    }

    .service-link {
        font-size: 12px; /* Adjust link font size */
    }

    .service-whatsapp span {
        font-size: 16px; /* Adjust WhatsApp text size */
    }
}

@media (max-width: 375px) {
    .sluzby-h22 {
        font-size: 27px;
        color: white;
        margin-top: 100px;
        margin-bottom: 15px;
        margin-left: 20px;
    }

    .service-group:first-of-type {
        display: block; /* Stack all service windows vertically */
        width: 80%; /* Adjust the width to 95% to avoid being too wide */
        margin-bottom: 10px;
        align-items: center;
    }

    .service-group:last-of-type {
        display: block; /* Stack all service windows vertically */
        width: 80%; /* Adjust the width to 95% to avoid being too wide */
        margin-bottom: 10px;
        align-items: center;
    }

    .service-group {
        display: block; /* Stack all service windows vertically */
        width: 80%; /* Adjust the width to 95% to avoid being too wide */
        margin-bottom: 10px;
        align-items: center;
    }

    .service-window {
        width: 100%;
        margin-bottom: 10px; /* Add space between the windows */
    }

    .service-img {
        height: 40%; /* Adjust image height for smaller screens */
    }

    .service-content h2 {
        font-size: 16px; /* Adjust h2 size */
    }

    .service-text {
        font-size: 12px; /* Adjust text size */
    }

    .service-link {
        font-size: 10px; /* Reduce link font size */
    }

    .service-whatsapp span {
        font-size: 14px; /* Adjust WhatsApp text size */
    }
}

/** SERVICES2 STYLING **/

.service-content-content2 {
    padding: 10px 0;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-group2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 items per row */
    gap: 30px; /* Space between items */
    width: 90%;
    max-width: 1400px;
    margin-bottom: 40px;
}

.service-window2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0; /* Remove padding */
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Prevents any extra space */
    width: 100%; /* Ensure it takes the full width of the grid column */
}

.service-window2 img:hover {
    cursor: pointer;
}

.service-img2 {
    width: 100%; /* Make the image stretch to full width */
    height: 45%;
    display: block; /* Remove any extra space below the image */
    object-fit: cover; /* Ensure it covers the container properly */
}

.service-content2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.service-content2 h2 {
    font-size: 22px;
    margin-top: 5px;
}

.service-text2 {
    margin-top: 10px;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 10px;
    font-size: 16px;
}

.service-link2 {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: red;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.service-link2:hover {
    transform: scale(1.1);
}

.service-whatsapp2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.service-whatsapp-flag2 {
    width: 25px;
    height: auto;
    margin-right: 5px;
    border: 1px solid black;
}

.service-whatsapp2 span {
    font-size: 18px;
}

.whatsapp-icon2 {
    margin-left: 1px;
    width: 25px;
    height: auto;
}

/* Swiper styles */
.swiper {
    width: 100%;
    height: 100%; /* Adjust based on your layout */
    overflow: hidden;
}

/* Swiper slides */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}

/* Left Button - Stick to the left edge */
.swiper-button-prev {
    left: 0px; /* Adjust the distance from the edge */
}

/* Right Button - Stick to the right edge */
.swiper-button-next {
    right: 0px; /* Adjust the distance from the edge */
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Pagination */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    background: #ff6600; /* Change to your theme color */
    opacity: 1;
}

/** PRODEJ REST OF THE PAGE STYLING **/
#prodej h2 {
    font-size: 50px;
    color: white;
    margin-top: 150px;
    margin-bottom: 30px;
    margin-left: 50px;
}

.cars-content {
    display: flex;
    background-color: #fafafa;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically (optional) */
    width: 100%;
}

.cars-listed {
    display: flex;
    width: 75%; /* Adjust width as needed */
    max-width: 1000px; /* Prevents it from getting too wide */
}

.cars-desc {
    text-decoration: none; /* Removes any text decoration */
    color: inherit; /* Inherits the color from the parent element (if needed) */
    font-weight: bold; /* Optional: Makes the text bold */
    font-size: 1.1em; /* Optional: Adjusts the font size */
}

/* Left column (filters) */
.cars-filter {
    width: 20%;
    padding: 20px;
    background-color: #f4f4f4;
}

.cars-filter input[type="submit"] {
    font-size: 18px;
    padding: 5px;
    margin-bottom: 20px;
}

.cars-filter h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Right column (categories + car listings) */
.cars-second-column {
    width: 80%;
    padding: 20px;
}

/* cars categories */
.cars-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the items */
    gap: 30px; /* Adds spacing between items */
    margin-bottom: 20px;
}

.cars-categories a {
    display: flex;
    flex-direction: column; /* Ensures the image is on top and text below */
    align-items: center; /* Centers the content */
    text-decoration: none; /* Removes underline from links */
    color: black; /* Default text color */
    font-size: 16px; /* Adjusts text size */
    font-weight: bold;
    transition: transform 0.3s; /* Smooth hover effect */
}

.cars-categories a:hover {
    transform: scale(1.05); /* Slightly enlarges on hover */
}

.cars-categories-img {
    width: 80px; /* Adjust image size */
    height: auto;
}

.cars-categories-name {
    text-align: center;
}

/* Main container - Flexbox layout */
.cars-list-car-window {
    display: flex;
    flex-direction: row; /* Image on left, content on right */
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Adjust width as needed */
    margin-bottom: 20px;
}

/* Image section on the left */
.cars-desc-image {
    width: 350px; /* Adjust the image width */
    height: 250px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0; /* Prevents shrinking */
}

.cars-desc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

/* Zoom effect on hover */
.cars-list-car-window:hover .cars-desc-image img {
    transform: scale(1.03);
}

/* Text content on the right */
.cars-desc {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex-grow: 1; /* Takes up remaining space */
}

/* Car name */
.cars-desc-name {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-bottom: 15px;
}

/* Details section */
.cars-desc-details {
    display: grid;
    grid-template-columns: auto auto;
    gap: 5px 10px;
    font-size: 14px;
    color: #555;
}

.cars-desc-details-label {
    font-weight: bold;
}

/* Separator */
.cars-desc-details-line {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

/* Price section */
/* Price section - pushed to the bottom */
.cars-desc-details-price {
    font-size: 18px;
    font-weight: bold;
    color: #d9534f;
    margin-top: auto; /* Pushes the price to the bottom */
}

.cars-desc-details-price-label {
    font-size: 16px;
    margin-right: 20px;
    color: #777;
}

.cars-desc-details-price-number-x {
    font-size: 14px;
    color: #777;
    font-weight: normal;
}

.cars-price {
    font-size: 20px;
    font-weight: bold;
    color: #d32f2f;
    position: absolute;
    right: 15px;
    bottom: 15px;
}

.hamburger-menu {
    display: none;
}

@media (max-width: 425px) {
    #prodej h2 {
        font-size: 32px;
        color: white;
        margin-top: 120px;
        margin-bottom: 20px;
        margin-left: 30px;
    }
}

@media (max-width: 375px) {
    #prodej h2 {
        font-size: 30px;
        color: white;
        margin-top: 120px;
        margin-bottom: 20px;
        margin-left: 30px;
    }
}

/* Responsive styles for small screens */
@media (max-width: 425px) {
    .cars-listed {
        flex-direction: column;
        width: 90%;
    }

    /* Default hide filters for small screens */
    .cars-filter {
        display: none;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    /* Show filter when active */
    .cars-filter.active {
        display: block;
    }

    /* Hamburger menu */
    .hamburger-menu {
        display: block;
        cursor: pointer;
        font-size: 30px;
        z-index: 1100;
    }

    .cars-second-column {
        width: 100%;
        padding: 10px;
    }

    .cars-list-car-window {
        flex-direction: column; /* Stack items */
        width: 90%; /* Make them 90% width */
        margin: 10px auto; /* Center them */
    }

    .cars-desc-image {
        width: 100%;
        height: 200px; /* Adjust image size */
    }

    .cars-desc {
        padding: 15px;
    }
}

/* Additional tweaks for even smaller screens */
@media (max-width: 375px) {
    .cars-desc-image {
        height: 180px;
    }

    .cars-desc-name {
        font-size: 20px;
    }

    .cars-desc-details-price {
        font-size: 16px;
    }
}

/** 
    
    STYLING CAR DETAILS 
    
    **/
#car {
    margin-top: 60px;
}

.car_details {
    display: flex;
    flex-direction: column;
    max-width: 1300px;
    margin: auto;
    padding: 20px;
}

/* Car Header */
.car_header {
    font-size: 20px;
    margin-left: 50px;
    margin-bottom: 30px;
}

/* Main content layout */
.car_content {
    display: flex;
    justify-content: space-between; /* Space between gallery and info */
    gap: 30px;
    padding: 20px;
    width: 100%; /* Ensure it takes the full available width */
    flex-wrap: wrap; /* Stack on smaller screens */
    box-sizing: border-box;
}

/* Left: Gallery */
.car_gallery {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centering the images */
    gap: 15px;
    width: 60%; /* This ensures it takes up 60% of the space */
    min-width: 300px; /* Prevents the gallery from becoming too narrow */
    flex-grow: 0; /* Do not let it grow */
    flex-shrink: 1; /* Allow it to shrink */
}

/* Right: Prices & Specs */
.car_info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 35%; /* This ensures it takes up 35% of the space */
    min-width: 250px; /* Prevents it from becoming too narrow */
    flex-grow: 0; /* Do not let it grow */
    flex-shrink: 1; /* Allow it to shrink */
}

/* Responsiveness */
@media (max-width: 768px) {
    .car_content {
        flex-direction: column; /* Stack content vertically on smaller screens */
        gap: 20px;
    }

    .car_gallery,
    .car_info {
        width: 100%; /* Ensure both sections take up full width on small screens */
    }
}

/* Main Image with Navigation */
.main-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

#mainImage {
    width: 100%;
    cursor: pointer; /* Cursor to indicate click-to-zoom */
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Navigation Buttons */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
}

.prev {
    left: 0px;
}

.next {
    right: 0px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Modal (Zoomed-In Image) */
.modal {
    margin-top: 60px;
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.close:hover {
    color: #ff6600;
}

/* Modal Navigation Buttons */
.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s;
}

.modal-prev {
    left: 60px;
}

.modal-next {
    right: 60px;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    max-width: 650px;
}

.gallery-thumbnails img {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-thumbnails img:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Right Section - Prices */
.car_prices {
    background-color: #fafafa;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns content to the right */
}

/* PRICES IN DETAIL AUTA */
.car_prices {
    font-family: Arial, sans-serif;
    display: block; /* Ensure that the car_prices container is block-level */
}

.car_info_price_label {
    font-size: 34px;
    font-weight: bold;
    color: darkblue;
    margin-left: 10px;
    margin-bottom: 5px;
    display: block; /* Ensure it's treated as a block-level element */
    text-align: left; /* Left-aligned text */
}

.price_row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-left: 10px;
    margin-bottom: 5px; /* Space between rows */
}

.price_bdph_eur {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-align: left;
    flex: 1;
}

.price_bdpht {
    font-size: 18px;
    font-weight: normal;
    color: #777;
    text-align: left;
    flex: 1;
}

.price_sdph_eur {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: left;
    flex: 1;
}

.price_sdpht {
    font-size: 18px;
    font-weight: normal;
    color: #777;
    text-align: left;
    flex: 1;
}

/* Responsiveness */
@media (max-width: 768px) {
    .car_content {
        flex-direction: column; /* Stack content vertically on smaller screens */
        gap: 20px;
    }

    .car_gallery,
    .car_info {
        width: 100%; /* Ensure both sections take up full width on small screens */
    }
}

/* Car Specs */
.car_specs {
    position: relative; /* Makes it a reference for absolute positioning */
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    line-height: 30px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.car_id {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 17px;
    font-weight: bold;
    color: red;
    padding: 5px;
}

.car_specs h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: darkblue;
}

.car_specs_x {
    font-weight: bold;
    font-size: 18px;
    color: #555;
}

.car_specs_y {
    float: right; /* Keeps the specs values on the right side */
    color: #333;
    font-size: 18px;
}

.car_spec_buy_button {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    margin-top: 30px; /* Adds space above the button */
}

.car_spec_buy_button_btn {
    background-color: red; /* Button color */
    color: white; /* Text color */
    width: 300px;
    height: 70px;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 5px;
    display: flex; /* Enables flexbox inside the button */
    justify-content: center; /* Centers the text horizontally inside the button */
    align-items: center; /* Centers the text vertically inside the button */
    transition: background-color 0.5s ease;
}

.car_spec_buy_button_btn:hover {
    background-color: darkred; /* Darker blue on hover */
    cursor: pointer; /* Change cursor on hover */
}

/* Specifications Details under both gallery and info */
.car_specs_details_frame {
    width: 100%;
    padding: 20px;
    margin-top: 30px;
    background-color: #f8f8f8;
    margin-bottom: 20px;
}

/* Layout for the car_specs_details section */
.car_specs_details {
    width: 80%;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Group the 3 main divs (Dimensions, Technical, Chassis) together */
.car_specs_details_group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap; /* important */
}

/* Styling for the 3 divs (Dimensions, Technical, Chassis) */
.car_specs_details_dimensions,
.car_specs_details_technical,
.car_specs_details_chassis {
    flex: 1; /* each takes equal width */
    min-width: 0; /* allow shrinking so 3 fit */
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Styling for the Other section */
.car_specs_details_other {
    flex: 1 1 100%;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* Section titles (h3) */
.car_specs_details h3 {
    font-size: 20px;
    font-weight: bold;
    color: darkblue;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Each label and value should be inside a flex container to be aligned horizontally */
.car_specs_details_x_y {
    display: flex;
    width: 100%; /* Full width for each pair */
    margin-bottom: 5px; /* Space between each row */
}

.car_specs_details_x {
    font-weight: bold;
    flex: 1; /* 50% of the space */
}

.car_specs_details_y {
    flex: 1; /* 50% of the space */
    padding-left: 10px; /* Space between label and value */
}

/* Optional: Add spacing between each item */
.car_specs_details span {
    display: block;
    margin-bottom: 5px;
}

/* Styling for the "Other" specifications section */
.car_specs_details_other_text {
    font-size: 18px;
}

.error-no-truck {
    margin-top: 80px;
}

@media (max-width: 425px) {
    /* Thumbnails */
    .gallery-thumbnails {
        max-width: 95%;
    }

    .gallery-thumbnails img {
        width: 80px;
        height: 60px;
    }

    .car_info_price_label {
        font-size: 30px;
    }

    .price_bdph_eur {
        font-size: 27px;
    }

    .price_bdpht {
        font-size: 16px;
    }

    .price_sdph_eur {
        font-size: 25px;
    }

    .price_sdpht {
        font-size: 16px;
    }

    .car_id {
        font-size: 15px;
    }

    .car_specs h3 {
        font-size: 21px;
    }

    .car_specs_x {
        font-size: 17px;
    }

    .car_specs_y {
        font-size: 17px;
    }
}

@media (max-width: 375px) {
    /* Thumbnails */
    .gallery-thumbnails {
        max-width: 95%;
    }

    .gallery-thumbnails img {
        width: 80px;
        height: 60px;
    }

    .car_info_price_label {
        font-size: 29px;
    }

    .price_bdph_eur {
        font-size: 26px;
    }

    .price_bdpht {
        font-size: 15px;
    }

    .price_sdph_eur {
        font-size: 24px;
    }

    .price_sdpht {
        font-size: 15px;
    }

    .car_id {
        font-size: 13px;
    }

    .car_specs h3 {
        font-size: 18px;
    }

    .car_specs_x {
        font-size: 15px;
    }

    .car_specs_y {
        font-size: 15px;
    }
}

.pagination {
    margin: 30px auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    padding: 8px 14px;
    border: none;
    background: #ddd;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.2s;
}

.page-btn:hover {
    background: #bbb;
}

.page-btn.active {
    background: #ff6600;
    color: white;
    font-weight: bold;
}

/**
    
    VYKUP STYLING 
    
    **/

#vykup {
    margin-top: 60px;
}

.vykup-window {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers everything horizontally */
    max-width: 900px; /* Prevents it from being too wide */
    margin: auto; /* Centers the form on the page */
    padding: 20px;
}

.vykup-window h2 {
    font-size: 26px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.vykup-window h3 {
    font-size: 20px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.vykup-form {
    width: 75%;
}

/* Remove arrows for Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove arrows for Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.vykup-form-group1 {
    display: block; /* Stack elements vertically */
}

.vykup-form-group1 label {
    font-size: 12px;
    margin-left: 10px;
    display: block;
    margin-top: 15px;
    margin-bottom: 10px;
}

.vykup-form-group1 input {
    width: 95%;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 20px;
    font-size: 16px;
    background-color: #f8f9fa;
}

.vykup-form-group1 .vykup-form-group > div {
    margin-bottom: 10px; /* Add space between the form elements */
}

.vykup-form-group label {
    font-size: 12px;
    margin-left: 10px;
    display: block;
    margin-bottom: 10px;
}

.vykup-form-group input {
    width: 90%;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 20px;
    font-size: 16px;
    background-color: #f8f9fa;
}

/* The second group remains the same */
.vykup-form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.vykup-form-textarea {
    margin-top: 15px;
}

.vykup-form-textarea label {
    font-size: 12px;
    margin-left: 10px;
    display: block;
    margin-bottom: 10px;
}

.vykup-form-textarea textarea {
    width: 95%;
    height: 120px;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 20px;
    font-size: 16px;
    resize: none;
    margin-bottom: 20px;
}

.vykup-form input[type="submit"] {
    width: 160px;
    height: 40px;
    background-color: red;
    color: white;
    font-size: 16px;
    border: 1px solid #ff0000;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.vykup-form input[type="submit"]:hover {
    transform: scale(1.1);
}

/**
    
    OFFER FORM


**/
/* General Layout for the Contact Page */
#offer-contact-form {
    margin-top: 75px;
    display: flex; /* Use flexbox to align the content */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100vh; /* Take the full viewport height */
    padding: 20px; /* Optional padding to avoid content touching the edges */
}

.contact-form-container {
    display: flex;
    width: 70%; /* Set width to 80% */
    gap: 30px; /* Space between the left and right sections */
    margin: 0 auto; /* Center the container horizontally */
}

/* Left Section - Truck Offer */
.offer-form-left {
    flex: 0 0 25%; /* Left section takes 30% of the space */
}

.offer-form-left h2 {
    text-align: left;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.offer-form-truck-window {
    border: 1px solid #ccc;
    text-align: left;
    background-color: #fff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    height: auto; /* Adjust height based on content */
}

.offer-truck-image {
    height: 170px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.offer-form-truck-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-truck-details {
    padding: 10px;
}

.offer-truck-details h3 {
    font-size: 18px;
    margin: 5px 0;
}

.offer-truck-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-size: 14px;
    color: #333;
}

.offer-truck-price {
    margin-top: 20px;
    color: #444;
}

.offer-truck-price-label {
    font-size: 16px;
    font-weight: bold;
    color: darkgrey;
}

.offer-truck-price-number {
    font-size: 20px;
    color: #e74c3c;
    font-weight: bold;
}

/* Right Section - Contact Form */
.offer-form-right {
    flex: 0 0 70%; /* Right section takes 65% of the space */
}

.offer-form {
    max-width: 700px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.offer-form h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.offer-form-form label {
    font-size: 14px;
    margin-left: 10px;
    display: block;
}

.offer-form-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 20px;
    font-size: 16px;
    background-color: #f8f9fa;
    margin-bottom: 15px;
}

.offer-form input[type="submit"] {
    width: 160px;
    height: 50px;
    background-color: red;
    color: white;
    font-size: 16px;
    border: 1px solid #ff0000;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.offer-form input[type="submit"]:hover {
    background-color: white;
    border-color: white;
    color: red;
}

.errors-offer {
    margin-top: 90px;
}

/* Responsive Styles for Small Screens (max-width: 425px) */
@media screen and (max-width: 425px) {
    .contact-form-container {
        flex-direction: column; /* Stack elements vertically */
        width: 90%; /* Increase width for better spacing */
        gap: 20px; /* Reduce gap */
    }

    .offer-form-left {
        order: 1; /* Ensure it comes first */
        flex: 0 0 70%; /* 70% width */
        width: 100%; /* Full width within container */
        text-align: center;
    }

    .offer-truck-image {
        height: 140px; /* Reduce image height */
    }

    .offer-truck-details {
        font-size: 14px;
    }

    .offer-form-right {
        order: 2; /* Comes below */
        flex: 0 0 100%; /* Full width */
        width: 100%;
    }

    .offer-form-form input {
        font-size: 14px; /* Reduce input font size */
        padding: 8px; /* Reduce padding */
    }

    .offer-form input[type="submit"] {
        width: 100%; /* Full width button */
        height: 45px; /* Slightly smaller height */
    }
}

/* Even Smaller Screens (max-width: 375px) */
@media screen and (max-width: 375px) {
    .contact-form-container {
        width: 95%;
        gap: 15px;
    }

    .offer-truck-image {
        height: 120px; /* Further reduce image height */
    }

    .offer-form-left h2 {
        font-size: 20px; /* Slightly smaller font */
    }

    .offer-truck-details h3 {
        font-size: 16px;
    }

    .offer-form-form input {
        font-size: 14px;
        padding: 7px;
    }

    .offer-form input[type="submit"] {
        height: 42px;
        font-size: 14px;
    }
}
