/* Conteneur principal */
#bcpc-calculator {
    max-width: 940px;
    margin: 10px auto 20px;
    background: #0f0f0f;
    border-radius: 14px;
    color: #e7e7e7;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    border-radius: 10px;
    border: 1px solid #333;
    overflow: hidden;
}

.calculator-desc{
    color: #aaa;
    font-size: 15px;
}

/* Barre des types (radios) */
.bcpc-vehicle-types {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* On cache les radios natifs */
.bcpc-veh-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Labels stylisés = onglets */
.bcpc-veh-label {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    border-radius: 0;
    background: #181818;
    color: #bdbdbd;
    cursor: pointer;
    user-select: none;
    border: 1px solid #333;
    border-right: none;
    border-top: none;
    transition: transform .12s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

#bcpc-vehicle-types .bcpc-veh-label:first-of-type{
    border-left: none;
}

.bcpc-veh-label:hover {
    color: #fff;
    background: #1d1d1d;
}

/* État actif quand radio est coché */
.bcpc-veh-radio:checked + .bcpc-veh-label {
    background: #2a2a2a;
    color: #fff;
    box-shadow: inset 0 -2px 0 #fff;
}

/* Icône placeholder (remplace par tes SVG / font-icons si besoin) */
.bcpc-veh-icon {
    width: 30px;
    height: 30px;
    display: inline-block;
}

.bcpc-veh-icon img{
    border-radius: 0 !important;
}


#bcpc-calculator .bcpc-row label{
    display: none;
}
/* Ligne des selects */
.bcpc-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #121212;
}

/* Selects */
.bcpc-row select {
    width: 100%;
    padding: 20px 12px;
    border: 1px solid #333;
    border-right: none;
    border-top: none;
    border-bottom: none;
    background: #181818;
    color: #bdbdbd;
    outline: none;
    border-radius: 0;
}

.bcpc-row select:focus {
    color: #fff;
}

.bcpc-row select:first-of-type{
    border-left: none;
}

/* Résultats */
#bcpc-results {
    z-index: 100;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    max-width: calc(100% - 30px);
    background: #121212;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 0 5px 5px rgba(255, 255, 255, 1);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
#bcpc-results .result-wrapper{
    padding: 14px;
    overflow-y: auto;
    max-height: 90vh;
}
#bcpc-results:after{
    content: "";
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, .8);
    width: 100vw;
    height: 100vh;
    z-index: -1;
}
#bcpc-results.bcpc-visible {
    opacity: 1;
    visibility: visible;
}

#bcpc-results .close{
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    color: #777;
    cursor: pointer;
    border: 1px solid #555;
    float: right;
}

#bcpc-results .close:hover{
    color: #bbb;
    border-color: #aaa;
}

#bcpc-results h4{
    font-size: 14px;
    text-transform: uppercase;
    color: var(--e-global-color-primary);
    letter-spacing: .7px;
    font-weight: 500;
    margin-bottom: 0;
}

#bcpc-results h3{
    color: var(--e-global-color-7b91203);
    margin-bottom: 20px;
}

#bcpc-quote-form input{
    background: transparent;
    border-color: #555;
    color: #fff;
}

#bcpc-quote-form input:focus{
    border-color: #aaa;
}

#bcpc-quote-form select{
    padding: 12px 15px;
    border-radius: 8px;
    background: transparent;
    color: #ddd;
}
#bcpc-quote-form select option{
    color: #000;
}
#bcpc-quote-form select:focus{
    outline: 2px solid #eee;
}

#bcpc-quote-form label{
    margin: 10px 0 5px;
    color: #999;
}

#bcpc-quote-form button{
    margin-top: 15px;
    border: none;
}

@media all and (max-width: 900px){
    .bcpc-veh-label{
        flex-direction: column;
        padding: 12px 6px;
        font-size: 15px;
        gap: 2px;
    }
    .bcpc-veh-icon{
        height: 28px;
        width: 28px;
    }
}

@media all and (max-width: 600px){
    .bcpc-row,
    .bcpc-vehicle-types{
        display: flex;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .bcpc-row::-webkit-scrollbar,
    .bcpc-vehicle-types::-webkit-scrollbar{
        display: none;
    }
    .bcpc-row select,
    .bcpc-veh-label{
        min-width: 25%;
        font-size: 13px;
    }
    .calculator-desc{
        font-size: 13px;
    }
    .bcpc-row select{
        padding: 16px 6px;
    }
    .bcpc-veh-icon{
        height: 22px;
        width: 22px;
    }
}