html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    font-family: 'Audi Type', sans-serif;
}

.stockVehicle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 52px;
}

.stockVehicle_search {
    position: relative;
    display: flex;
    align-items: center;
    gap: .2rem;
    justify-content: flex-end; 
}

    .stockVehicle_search input {
        width: 170px;
        padding: 10px 40px 10px 15px;
        border: 1px solid #ddd;
        border-radius: 25px;
        font-size: 14px;
        outline: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: right center; 
    }

        .stockVehicle_search input:focus {
            width: 250px; 
            border-color: #007bff;
            box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
        }

    .stockVehicle_search .search-icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 10;
    }

        .stockVehicle_search .search-icon img {
            width: 16px;
            height: 16px;
            opacity: 0.6;
        }

    .stockVehicle_search p {
        margin: 0;
    }

.stockVehicle_filter {
    width: 100%;
    background-color: black;
}

    .stockVehicle_filter .accordion {
        margin-bottom: 60px;
    }

    .stockVehicle_filter .accordion-item {
        background: none;
    }

        .stockVehicle_filter .accordion-item button {
            width: auto;
            border: none;
            background: transparent;
            color: white;
            gap: .5rem;
            font-size: 21px;
            font-weight: 400;
            padding-left: 89px;
        }

            .stockVehicle_filter .accordion-item button:focus {
                box-shadow: none;
            }

            .stockVehicle_filter .accordion-item button:after {
                filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(0%) hue-rotate(85deg) brightness(109%) contrast(101%);
            }

    .stockVehicle_filter .accordion-body {
        min-height: 209px;
        display: flex;
        align-items: center;
        background: #1A1A1A;
        padding-left: 89px;
    }

.model-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.model-item {
    padding: 0 15px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #FFFFFF;
    white-space: nowrap;
    background-color: #1a1a1a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.logoText img {
width: 69px;
}

.foundData {
    text-align: center;
    align-content: center;
    height: 100%;
}

.stockVehicle_models {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stockVehicle_models_card {
    width: 245px;
    height: 305px;
    background: #F3F1F4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    align-content: space-between;
    padding: 15px;
    cursor: pointer;
}

    .stockVehicle_models_card img {
        width: 100%;
    }

.stockVehicle_stepOne {
    display: none;
}

.model-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .model-card.show {
        opacity: 1;
        transform: translateY(0);
    }

.model-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .model-title.show {
        opacity: 1;
        transform: translateY(0);
    }

.stockVehicle_models_card {
    position: relative;
}

    .stockVehicle_models_card p {
        font-size: 70px;
        font-weight: bold;
        margin: 0;
        line-height: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 120px;
    }

    .stockVehicle_models_card .sub-model {
        position: absolute;
        top: 100px;
        left: 1rem;
        font-size: 45px;
        font-weight: bold;
        text-align: center;
    }

.stockVehicle_stepOne {
    display: none;
}

    .stockVehicle_stepOne h3 {
        font-size: 100px;
    }

    .stockVehicle_stepOne .card-group {
        display: flex;
        gap: 20px;
    }

    .stockVehicle_stepOne .card {
        display: block;
        padding: 20px;
        cursor: pointer;
        text-align: center;
        transition: border-color 0.3s, box-shadow 0.3s;
        user-select: none;
        position: relative;
        height: 420px;
        width: 315px;
        background: #F3F1F4;
        border: none;
        border-right: 0;
        margin-bottom: 1rem;
    }

        
        .stockVehicle_stepOne .card input[type="radio"] {
            appearance: none;
            -webkit-appearance: none;
            width: 30px;
            height: 30px;
            border: 1px solid black;
            border-radius: 50%;
            background-color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            margin: 0 auto;
        }

            
            .stockVehicle_stepOne .card input[type="radio"]::before {
                content: "";
                width: 18px;
                height: 18px;
                background-color: black;
                border-radius: 50%;
                display: none;
            }

            
            .stockVehicle_stepOne .card input[type="radio"]:checked::before {
                display: block;
            }

        .stockVehicle_stepOne .card img {
            width: 100%;
            margin-bottom: 80px;
        }

        .stockVehicle_stepOne .card p {
            font-weight: 400;
            font-size: 24px;
            line-height: 100%;
            text-align: center;
            margin-top: 1rem;
        }

.card select.motor-select {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: none;
    border-bottom: 1px solid;
    font-size: 14px;
    background: none;
}



.stockVehicle_stepOne .card .content {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 10px;
    transition: border-color 0.3s, box-shadow 0.3s;
    position: relative;
}



.stockVehicle_stepOne .card input[type="radio"]:checked + .content .radio-custom {
    border-color: black;
    background-color: black;
}

.stockVehicle_stepOne,
.stockVehicle_stepTwo {
    opacity: 0;
    display: none;
    transition: opacity 0.25s ease;
}

    .stockVehicle_stepOne.show,
    .stockVehicle_stepTwo.show {
        opacity: 1;
        display: block !important; 
    }

.model-card {
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(10px);
}

    .model-card.show {
        opacity: 1;
        transform: translateY(0);
    }

.model-title {
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .model-title.show {
        opacity: 1;
    }


.stockVehicle_stepTwo h3 {
    font-size: 24px;
    font-weight: 700;
}

.back-to-main {
    display: block;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 400;
    text-decoration: none;
    color: #333;
}

.stockVehicle_stepTwo .accordion .accordion-item .accordion-body .list-group {
    overflow-y: scroll;
    max-height: 315px;
    line-height: normal;
}

    .stockVehicle_stepTwo .accordion .accordion-item .accordion-body .list-group .list-group-item {
        border: none;
        cursor: pointer;
    }

        .stockVehicle_stepTwo .accordion .accordion-item .accordion-body .list-group .list-group-item a {
            color: unset;
            text-decoration: none;
        }

.stockVehicle_stepTwo .accordion .accordion-item .accordion-body input {
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

    .stockVehicle_stepTwo .accordion .accordion-item .accordion-body input:focus {
        box-shadow: none;
        border-color: unset;
    }

.stockVehicle_stepTwo .accordion .accordion-item .accordion-body .searchBar {
    position: relative;
}

    .stockVehicle_stepTwo .accordion .accordion-item .accordion-body .searchBar img {
        position: absolute;
        right: 0;
        z-index: 9;
        top: .5rem;
    }

.stockVehicle_stepTwo .accordion .accordion-item {
    border: none;
}

    .stockVehicle_stepTwo .accordion .accordion-item button {
        border: none;
        background: none;
        color: black;
        font-weight: 400;
        font-size: 18px;
    }

        .stockVehicle_stepTwo .accordion .accordion-item button:after {
            filter: brightness(0) saturate(100%)
        }

        .stockVehicle_stepTwo .accordion .accordion-item button:focus {
            box-shadow: none;
        }

.stockVehicle_stepTwo_car {
    background: #F3F1F4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    height: 550px;
}

    .stockVehicle_stepTwo_car img {
        width: 100%;
    }

    .stockVehicle_stepTwo_car p {
        width: 100%;
        font-size: 24px;
        font-weight: 400;
        text-align: center;
    }

.smallText {
    margin-top: 1rem;
    font-size: 14px;
    font-weight: 400;
}

.stockVehicle_stepTwo_navigation_info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

#call-link {
    cursor: pointer;
}

.stockVehicle_stepTwo_navigation_info .map-link {
    display: block;
    cursor: pointer;
}

.stockVehicle_stepTwo_navigation_hour {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    justify-content: space-between;
}

.stockVehicle_stepTwo_navigation_name {
    font-size: 18px;
    font-weight: 700;
}

.reserve, .testDrive {
    height: 50px;
    width: 100%;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 1rem;
    cursor: pointer;
}

    .reserve:hover {
        color: white;
    }

    .testDrive:hover {
        color: white;
    }

.stockVehicle_stepTwo_navigation {
    display: none;
}

.reservation {
    display: none;
}

.testDriving {
    display: none;
}

    .testDriving p {
        margin-top: 1rem;
        font-size: 12px;
        font-weight: 400;
    }
    
    .reservation p{
        margin-top: 1rem;
    }

    .reservation p, .testDriving label {
        font-size: 12px;
        font-weight: 400;
    }

        .reservation p a, .testDriving p a {
            font-size: 12px;
            font-weight: 600;
            color: black;
        }

.reservation .form-check .form-check-label {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 1rem;
}

    .reservation .form-check .form-check-label a {
        font-size: 12px;
        font-weight: 600;
        color: black;
    }
    
    .testDriving .form-check .form-check-label a {
        font-size: 12px;
        font-weight: 600;
        color: black;
    }

.reservation_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .reservation_head p {
        font-size: 24px;
        font-weight: 700;
    }

.reservation_input {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

    .reservation_input label {
        width: 48%;
    }

        .reservation_input label input {
            border-left: 0;
            border-top: 0;
            border-right: 0;
            border-radius: 0;
        }

            .reservation_input label input:focus {
                box-shadow: none;
                border-color: unset;
            }

.reservation .form-check-input:checked {
    background-color: black;
    border-color: black;
}

.reservation .form-check-input:focus {
    box-shadow: none;
    border-color: unset;
}

.reservationButton, .testDriveButton {
    height: 50px;
    width: 315px;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    margin-top: 1rem;
}

    .reservationButton:hover {
        color: white;
    }

    .testDriveButton:hover {
        color: white;
    }


input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.1rem rgba(220, 53, 69, 0.25) !important;
}

.form-check.error .form-check-label {
    color: #dc3545;
}

.form-check.error .form-check-input {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-check .error-message {
    margin-top: 8px;
    margin-left: 0;
}


.message-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.message-popup.show {
    opacity: 1;
    visibility: visible;
}

.message-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.message-popup.show .message-content {
    transform: translateY(0);
}

.message-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.message-popup.success .message-icon {
    color: #28a745;
}

.message-popup.error .message-icon {
    color: #dc3545;
}

.message-text {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #333;
}

.message-close {
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    color: white;
}

.message-popup.success .message-close {
    background: #28a745;
}

.message-popup.success .message-close:hover {
    background: #1e7e34;
}

.message-popup.error .message-close {
    background: #dc3545;
}

.message-popup.error .message-close:hover {
    background: #c82333;
}


.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .success-popup.show {
        opacity: 1;
        visibility: visible;
    }

.success-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.success-popup.show .success-content {
    transform: translateY(0);
}

.success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message {
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #333;
}

.success-close {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .success-close:hover {
        background: #1e7e34;
    }

.init-map #map {
    width: 100%;
    height: 500px;
}

.footer {
    padding: 70px 20px 20px;
    max-width: 1200px;
    margin: auto;
    position: relative !important;
    white-space: normal !important;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1 1 150px;
    min-width: 150px;
}

    .footer-column h3 {
        color: #eee;
        font-weight: 700;
        margin-bottom: 20px;
        font-size: 18px;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
        line-height: normal;
    }

        .footer-column ul li {
            margin-bottom: 8px;
        }

            .footer-column ul li a {
                font-size: 12px;
                color: white;
                text-decoration: none;
            }

                .footer-column ul li a:hover {
                    color: #fff;
                }


.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
    line-height: normal;
    margin-bottom: 1rem;
}

    .footer-social a {
        color: #ccc;
        font-size: 18px;
        display: inline-block;
        width: 24px;
        height: 24px;
    }

        .footer-social a img {
            filter: brightness(0) saturate(100%) invert(97%) sepia(5%) saturate(258%) hue-rotate(37deg) brightness(116%) contrast(100%);
        }

        .footer-social a:hover {
            color: #fff;
        }


.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 15px;
    font-size: 10px;
    color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

    .footer-bottom a {
        color: white !important;
        margin: 0 5px;
        white-space: nowrap;
        text-decoration: none;
    }

        .footer-bottom a:hover {
            color: #ccc;
        }


.footer-texts {
    font-size: 10px;
    color: white;
    margin-top: 40px;
    line-height: 1.4;
}


@media (max-width: 768px) {

    .stockVehicle_models_card .sub-model {
        left: 1rem;
        transform: unset;
    }

    .testDrive {
        margin-bottom: 1rem;
    }

    .reservationButton {
        margin-bottom: 1rem;
    }

    .stockVehicle_stepOne h3 {
        font-size: 50px;
    }

    .stockVehicle_stepOne .card {
        width: auto;
        margin-bottom: 1rem;
    }

    .stockVehicle_models_card p {
        font-size: 55px;
    }

    .stockVehicle_filter .accordion-item button {
        padding-left: 1rem;
    }

    .stockVehicle_filter .accordion-body {
        padding-left: 1rem;
    }

    .stockVehicle_models {
        flex-wrap: wrap;
    }

    .stockVehicle_models_card {
        width: 48%;
        height: auto;
    }

    .footer-top {
        flex-direction: row;
    }

    .footer-social {
        justify-content: center;
        margin-top: 20px;
    }

    .footer-bottom {
        justify-content: center;
        font-size: 9px;
    }

    .footer-column {
        min-width: auto;
    }
}
