.home-tyre-search-container {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

@media (min-width: 992px) {
    .home-tyre-search-container {
        position: relative;
        width: 90%;
        max-width: 1080px;
        margin: -90px auto 0;
    }
}

.home-tyre-search-tabs {
    border-bottom: 1px solid var(--bs-light-gray);
}

.home-tyre-search-tab-button {
    color: var(--bs-dark);
    font-weight: 600;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.5rem;
    background-color: transparent;
    transition: all 0.2s;
    margin-right: 0.5rem;
    text-align: center;
}

.home-tyre-search-tab-button.active {
    background-color: white;
    color: var(--bs-orange-custom);
    border-bottom: 3px solid var(--bs-orange-custom);
    margin-bottom: -1px;
}

.home-tyre-search-form-content {
    padding: 2rem;
}

.home-tyre-search-form-content .tab-pane {
    min-height: 240px;
}

.home-tyre-search-group-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.home-tyre-search-select {
    border: 1px solid #ced4da;
    border-radius: 4px;
    height: 48px;
    padding: 0.375rem 0.75rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.65em 0.65em;
}

.home-tyre-search-vehicle-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 48px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    background-color: var(--bs-light-gray);
}

.home-tyre-search-vehicle-button:hover,
.home-tyre-search-vehicle-input:checked + .home-tyre-search-vehicle-button {
    border-color: var(--bs-orange-custom);
    background-color: var(--bs-ultralight-orange-custom);
}

.home-tyre-search-vehicle-input {
    display: none;
}

.home-tyre-search-vehicle-icon {
    width: 28px;
    height: 28px;
    fill: #6c757d;
}

.home-tyre-search-vehicle-input:checked + .home-tyre-search-vehicle-button .home-tyre-search-vehicle-icon {
    fill: var(--bs-orange-custom);
}

.home-tyre-search-season-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--bs-dark);
}

.home-tyre-search-season-icon-container {
    width: 50px;
    height: 50px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
    transition: all 0.2s;
}

.home-tyre-search-season-input {
    display: none;
}

.home-tyre-search-season-input:checked + .home-tyre-search-season-icon-container {
    border-color: var(--bs-orange-custom);
    background-color: var(--bs-ultralight-orange-custom);
}

.home-tyre-search-season-icon {
    width: 24px;
    height: 24px;
    fill: var(--bs-orange-custom);
}

.home-tyre-search-btn {
    background-color: var(--bs-dark);
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    min-width: 150px;
    transition: background-color 0.2s;
}

.home-tyre-search-btn:hover {
    background-color: #000000;
    color: white;
}

@media (max-width: 991.98px) {
    .home-tyre-search-container {
        border-radius: 0;
    }

    .home-tyre-search-form-content {
        padding: 1rem;
    }
    .home-tyre-search-form-content .tab-pane {
        min-height: 300px;
    }
    
    .home-tyre-search-tabs {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .home-tyre-search-tab-button {
        flex-grow: 1;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        margin-right: 0;
        border-radius: 0;
    }
    
    .home-tyre-search-tab-button:first-child {
         border-radius: 8px 0 0 0;
    }
     .home-tyre-search-tab-button:last-child {
         border-radius: 0 8px 0 0;
    }

    .home-tyre-search-ebat-row {
        flex-direction: column;
    }

    .home-tyre-search-ebat-col {
        margin-bottom: 0.5rem;
    }

    .home-tyre-search-vehicle-group {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .home-tyre-search-btn {
        width: 100%;
        margin-top: 1rem;
        height: auto;
    }

    .home-tyre-search-vehicle-button {
        width: 50px;
    }

}


.alt-tire-selector { text-align: center; }
.form-select-lg { font-size: 1rem; font-weight: 500; }
.tire-display-area { position: relative; max-width: 700px; margin: 0 auto; }


.tire-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 487px;
    aspect-ratio: 487 / 155; 
}

.tire-image-wrapper .img-fluid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tire-overlay-svg {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    opacity: 0.5;
}

.tire-overlay-svg text {
    fill: rgb(255, 255, 255);
    font-size: 1.7rem;
    font-weight: bold;
    font-family: 'Arial Black', Gadget, sans-serif;
    letter-spacing: 0.1em;
}

.guide-lines-container { display: none; }
.season-box { position: absolute; top: 50%; right: 0; transform: translateY(-50%); border: 2px solid #f58220; border-radius: 8px; padding: 10px 15px; background: #fff; z-index: 10; }
.season-box .icon-placeholder { font-size: 2rem; color: #f58220; }
.season-box .text-placeholder { font-size: 0.9rem; font-weight: 500; }
@media (max-width: 768px) {
    .tire-overlay-svg text { font-size: 1.5rem; }
    .tire-overlay-svg {top: 16px;}
}