.car-specifications {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 2px solid #ddd;
}

.carousel-inner img {
    width: 100%;
    height: 500px; /* Adjust as needed */
}

.tab-content {
    margin-top: 20px;
}

.tabs-custom .nav-link.active {
    background-color: #c60303;
    color: white;
}

.nav-tabs .nav-link {
    border-radius: 0;
    color: #666;
}

.thumb-gallery img {
    width: 90px;
    height: 60px;
    margin-right: -3px;
    border: 2px solid transparent;
}

.thumb-gallery img.selected {
    border-color: #c60303;
}

.car-specifications {
    display: flex;
    flex-direction: column;
}

.car-specifications h4 {
    margin-bottom: 1rem;
}

.car-specifications strong {
    text-align: left;
}

.car-specifications p {
    display: flex;
    text-align: right;
    justify-content: space-between;
    margin: 0.5rem 0; /* Add some margin between rows */
}

.contact-buttons {
    display: flex;
    margin-top: 1rem;
    gap: 10px; /* Add some spacing between the buttons */
}

.contact-buttons a {
    width: 49%;
}

.contact-section button {
    background: linear-gradient(90deg, #ff6600 0%, #ffdd00 100%);
    border: none;
    padding: 15px;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    background-size: 200% 100%;
    transition: transform 0.3s ease, background-position 0.5s ease;
    border-radius: 25px;
}

.contact-section a {
    color: #fff !important;
}

.contact-section button:hover {
    background-position: 100% 0;
    transform: scale(1.05);
}

.car-slider {
    border-bottom: 2px solid #ddd;
}

.contact-form {
    width: 100%;
}

.contact-form input, .contact-form select {
    height: 50px;
}

.contact-form textarea {
    height: 100px;
}

.worldwide-simple-btn {
    background: linear-gradient(90deg, #ff6600 0%, #ffdd00 100%);
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    border: none;
    width: 220px;
    height: 55px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: unset;
    background-size: 200% 100%;
    transition: transform 0.3s ease, background-position 0.5s ease;
}

.worldwide-simple-btn:hover {
    background-position: 100% 0; /* Shift the gradient position on hover */
    color: #000;
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.bouncing-heading {
    font-weight: bold;
    animation: bounce 2s infinite; /* Apply the bounce animation */
    letter-spacing: 3px;
    color: #c60303;
}

.car-page-form-wrapper {
    background: linear-gradient(135deg, #333333 0%, #c60303 100%);
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 1!important;
    position: absolute; /* Position them absolutely */
    top: 50% !important; /* Center them vertically */
    transform: translateY(-50%); /* Adjust positioning */
    background-color: #c60303!important; /* Red background color */
    color: white; /* White arrow or icon */
    border-radius: 50%; /* Rounded corners */
    width: 50px!important; /* Button width */
    height: 50px!important; /* Button height */
    margin-left: 1vh;
    margin-right: 1vh;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Horizontally center the arrow */
    align-items: center; /* Vertically center the arrow */
    cursor: pointer; /* Pointer cursor on hover */
    z-index: 10; /* Ensure it's on top of other elements */
    transition: background-color 0.3s; /* Smooth background color transition */
}

/* Position adjustments for the prev and next buttons */
.carousel-control-prev {
    left: 15px; /* Distance from the left edge */
}

.carousel-control-next {
    right: 15px; /* Distance from the right edge */
}

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.fullscreen-content {
    margin: auto;
    top: 10%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90%;  /* Ensure the image does not exceed 90% of screen width */
    max-height: 90vh; /* Ensure the image does not exceed 90% of screen height */
}

#fullscreen-image {
    max-width: 90%;
    max-height: 600px;
    width: 90%;
    height: auto;
    margin: auto;
    object-fit: contain;
}

.btn-prev, .btn-next, .fullscreen-close-btn {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;  /* Make the buttons circular */
}

.btn-prev {
    left: 7%;
}

.btn-next {
    left: 88%;
}

.btn-next, .btn-prev {
    position: absolute;
    opacity: 1!important;
    transform: translateY(-50%); /* Adjust positioning */
    background-color: #c60303!important; /* Red background color */
    color: white; /* White arrow or icon */
    border-radius: 50%; /* Rounded corners */
    width: 50px!important; /* Button width */
    height: 50px!important; /* Button height */
    margin-left: 1vh;
    margin-right: 1vh;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Horizontally center the arrow */
    align-items: center; /* Vertically center the arrow */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s; /* Smooth background color transition */
}

.fullscreen-close-btn {
    position: absolute;
    top: 0;
    right: 5%;
    font-size: 40px;  /* Increase size of the close button */
    color: #fff;  /* White color for the "X" */
    background-color: rgba(0, 0, 0, 0.6); /* Dark semi-transparent background */
    border-radius: 50%;  /* Circular button */
    width: 50px;  /* Adjust button size */
    height: 50px;  /* Ensure it stays circular */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;  /* Pointer cursor for click */
    z-index: 10;  /* Ensure it's above other content */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Shadow for better visibility */
    transition: background-color 0.3s, transform 0.3s;  /* Smooth transitions for hover effect */
}

.fullscreen-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darker background on hover */
    transform: scale(1.1);  /* Slight scale effect on hover */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px); /* Bounce up */
    }
    60% {
        transform: translateY(-7px); /* Bounce slightly lower */
    }
}


@media (min-width: 1000px) {
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background-color: #a00202; /* Slightly darker red on hover */
    }

    .contact-form {
        width: 50%;
    }
}

/* Media query for mobile screens below 1000px */
@media (max-width: 768px) {
    .carousel-inner img {
        height: 250px;
    }

    #fullscreen-toggle {
        display: none;
    }

    .fullscreen-modal {
        display: none;
    }
}

@media (max-width: 1100px) {
    .contact-buttons {
        width: 100%;
        flex-direction: column; /* Stack buttons vertically */
        align-items: stretch; /* Make the buttons stretch full width */
    }

    .contact-buttons a {
        width: 100%;
        text-align: center;
    }
}
