* {
    margin: 0;
    padding: 0;
    
}

body {
    font-family: Arial, sans-serif;
    color: #fff;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.contactnav {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1rem;
    background-color: #1f1f2e;
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contactnav a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
}

.contactnav a:hover {
    color: #f7b731;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #ec2027;
    /* opacity: .5; */
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #fff;
    padding: 5px 13px;
    border-radius: 10px;
}

.navbar .logo img{
    height: auto;
    width: 90px;
}

.navbar ul {
    align-items: baseline;
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar ul li a {
    text-decoration: none;
    font-size: 18px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    border: none;
    background: none;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: color;
}

.navbar ul li a:focus,
.navbar ul li a:hover {
    color: #fff;
}

.navbar ul li a:focus:after,
.navbar ul li a:hover:after {
    width: 100%;
    left: 0%;
}

.navbar ul li a:after {
    content: "";
    pointer-events: none;
    bottom: -2px;
    left: 50%;
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-duration: 400ms;
    transition-property: width, left;
}

.navbar ul li button {
    padding: 0.8em 1.8em;
    border: 2px solid #ffffff;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    text-align: center;
    font-size: 16px;
    transition: .3s;
    z-index: 1;
    font-family: inherit;
    color: #ffffff;
}

.navbar ul li button::before {
    content: '';
    width: 0;
    height: 300%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: #ffffff;
    transition: .5s ease;
    display: block;
    z-index: -1;
}

.navbar ul li button:hover::before {
    width: 105%;
}

.navbar ul li button:hover {
    color: #111;
}

.navbar ul li a.active:hover {
    color: #fff;
    background-color: black;
}

.navbar .menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* form */

.book {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    width: 100%;
    background-color: transparent;
}

.book .book-form {
    width: 100%;
    max-width: 30%;
    padding: 2rem;
    background-color: #fbfafa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.book .book-form .book-header {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.book .book-form .book-header .tab-link {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: #fff;
    color: #1f1f2e;
    margin-right: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.book .book-form .book-header .tab-link.active {
    background-color: #ec2027;
    color: #fff;
}

.book .book-form .book-content {
    display: none;
}

.book .book-form .book-content.active {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: center;
}



.book .book-content .form-group {
    margin-bottom: 1rem;
}

.book .book-content .form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #1f1f2e;
    margin-bottom: 0.5rem;
}

.book .book-content .form-group input,
.book .book-content .form-group select {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid rgb(195, 194, 194);
    background-color: #fff;
    color: #1f1f2e;
    
}

.book .book-content .form-group input[type="date"],
.book .book-content .form-group input[type="time"] {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            padding: 0.75rem;
            font-size: 1rem;
            border-radius: 5px;
            border: 1px solid rgb(195, 194, 194);
            background-color: #fff;
            color: #1f1f2e;
        }

.book .book-content .form-group select {
    appearance: none;
}

.book .book-content .form-group .checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.book .book-content .form-group select::-webkit-scrollbar {
    width: 10px;
}

.book .book-content .form-group .day {
    gap: 4rem;
    width: 30%;
    display: flex;
}

.book .book-content .form-group button {
    height: 38px;
    margin-top: 24px;
    width: 70px;
    padding: 0.5rem;
    font-size: 14px;
    background-color: #ec2027;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.book .book-content  button:hover {
    background-color: #f7b731;
    color: #fff;
}

/* .table {
    width: 100%;
    margin-top: 10rem;
    border-collapse: collapse;
    overflow-x: auto;
}

.table .table-cars {
    width: 100%;
    border-collapse: collapse;
}

.table .table-cars th, .table .table-cars td {
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #ececec;
}


.table .table-cars th {
    background-color: #ec2027;
    color: #fff;
}

.table .table-cars td {
    background-color: #fff;
    color: #1f1f2e;
}

.table .table-cars td p{
    background-color: #fff;
    color: #1f1f2e;
}

.table .table-cars td span {
    display: none;
}

.table .table-cars td img {
    width: 120px;
    height: auto;
}


.table .table-cars td button {
    padding: 0.5rem;
    font-size: 1rem;
    background-color: #ec2027;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.table .table-cars td button:hover {
    background-color: #b71c1c;
} */

.car-table {
    width: 100%;
    border-collapse: collapse;
    margin: 130px 0 10px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.car-table th, .car-table td {
    padding: 12px;
    text-align: center;
}

.car-table tr:hover {
    background-color: #f1f1f1;
}

/* Row styling */
.car-tr {
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid #ddd;
}

.car-left {
    text-align: center;
    color: #0f0f16;
    display: flex;
    gap: 10px;
}

.car-tr td {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: #000000;
}

/* Image Styling */
.car-tr img {
    width: 150px;
    height: auto;
    margin-right: 15px;
    border-radius: 8px;
}

.car-tr .car-left span {
    font-weight: bold;
    font-family: 'Poppins', 'sans-serif';
    font-size: 18px;
    color: #0f0f16;
    margin-bottom: 5px;
}

.car-tr .car-left p {
    font-size: 14px;
    color: #555;
}

/* Right Column Styling */
.car-right {
    text-align: center;
}


.car-right .km {
    margin: 5px 0;
    font-size: 14px;
    color: #000000;
}

.car-right td .ru {
    gap: 1rem;
    display: flex;
}

.car-tr td button {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    background-color: #ff0000;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.car-tr td button:hover {
    background-color: #0056b3;
}

/* Footer */

.footer {
    background-color: #1f1f2e;
    color: #fff;
    text-align: center;
    padding: 1rem 1rem;
    margin-top: 2rem;
    display: flex;
}

.footer .footer_box {
    float: left;
    flex: 1;
    justify-content: center;
    align-items: center;
    text-align: left;
    gap: 1rem;
}

.footer .footer_box .contact {
    display: flex;
    gap: 1rem;
}

.footer .footer_box .contact a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer .footer_box .contact a img {
    margin-right: 0.5rem;
    height: 20px;
    width: 20px;
}

.footer .footer_box .contact a:hover {
    color: #1f1f2e;
}

.footer .footer_box_1 {
    float: left;
    flex: 1;
    text-align: left;
    margin-right: auto;
}

.footer .footer_box_1 p {
    font-size: 15px;
    line-height: 22px;
    font-weight: 400;
    text-align: justify;
    margin-right: 20px;
}

.footer .footer_box_1 h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer .footer_box h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer .footer_box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer .footer_box ul li {
    margin-bottom: 0.5rem;
}

.footer .footer_box ul li a {
    font-size: 15px;
    text-decoration: none;
    color: #fff;
}

.footer .footer_box ul li a:hover {
    text-decoration: underline;
}

.footer .footer_box_1 p {
    margin-bottom: 0.5rem;
} 

footer {
    background-color: #0f0f16;
    color: #fff;
    text-align: center;
    padding: 1rem 1rem;
}

footer p {
    font-size: 15px;
    line-height: 22px;
    font-weight: 400;
    text-align: center;
}

/* responsive */

@media (max-width: 768px) {
    body {
        font-size: 14px;
        overflow: auto;
    }

    .navbar .menu-toggle {
        display: block;
    }

    .navbar ul {
        display: none;
    }
    
    .navbar.responsive ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #9a1419;
        color: #ddd;
        padding: 26px;
    }

    .book {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        background-color: transparent;
    }

    .book .book-form {
        width: 100%;
        max-width: 90%;
        padding: 2rem;
        background-color: #fbfafa;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .book .book-form .book-content.active {
        flex-direction: column;
        align-items: baseline;
        gap: 1rem;
    }

    .book .book-form .book-header .tab-link {
        cursor: pointer;
        padding: 0.5rem 0.5rem;
        border-radius: 5px;
        background-color: #fff;
        color: #1f1f2e;
        border: none;
        margin-right: 0.5rem;
    }

    .book .book-form .book-content .form-group {
        width: 130%;
    }



    .book .book-form .book-content .form-group .day {
        gap: 1rem;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .car-tr td {
        flex-direction: column;
        gap: 12px;
        display: flex;
        align-items: start;
        justify-content: center;
    }

    .car-tr td .ru {
        text-align: left;
        display: flex;
        gap: 12px;
    }

    .table .table-cars tbody tr {
        display: flex;
        flex-wrap: wrap;
        border: 1px solid #ececec;
        margin-bottom: 1rem;
    }

    .table .table-cars tbody tr td {
        flex: 1 1 50%;
        text-align: left;
        justify-content: space-between;
        display: flex;
        gap: 1rem;
        padding: 0.5rem;
        border: none;
        border-bottom: 1px solid #ececec;
    }

    .table .table-cars tbody tr td:last-child {
        border-bottom: none;
    }

    .table .table-cars tbody tr td:first-child {
        flex: 1 1 100%;
        text-align: center;
    }

    .table .table-cars tbody tr td img {
        width: 280px;
        height: auto;
        margin: 0 auto;
    }

    .table .table-cars tbody tr td button {
        width: 100%;
    }



    .table .table-cars tbody tr td span {
        font-size: medium;
        font-weight: bold;
        display: block;
    }

    .table .table-cars tbody tr td p {
        font-size: large;
    }

    .table .table-cars th {
        display: none;
    }


    .table .table-cars td {
        background-color: #fff;
        color: #1f1f2e;
    }
    
    .table .table-cars tr {
       display: flex;
    }

    .car-info {
        display: flex;
        align-items: center;
        justify-content: start;
    }
    
    .car-info img {
        width: 100px;
        height: auto;
        margin-right: 1rem;
    }
    
    .car-details {
        text-align: left;
    }

    .footer {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        float: left;
    }


}