/*====================================================
 BiSourcing Procurement Maturity Assessment
 Version 1.0
=====================================================*/

/*==============================
Variables
==============================*/

:root{

    --bsm-primary:#0B5ED7;
    --bsm-primary-dark:#084298;
    --bsm-secondary:#4B5563;

    --bsm-success:#198754;
    --bsm-warning:#F0AD4E;
    --bsm-danger:#DC3545;

    --bsm-bg:#F4F7FB;
    --bsm-card:#FFFFFF;
    --bsm-border:#E4E8F0;

    --bsm-text:#1F2937;
    --bsm-text-light:#6B7280;

    --bsm-radius:18px;

    --bsm-shadow:
        0 12px 30px rgba(0,0,0,.08);

    --bsm-transition:.25s;

}


/*==============================
Contenedor
==============================*/

#bs-maturity{

    width:100%;

    margin:auto;

    font-family:
    "Inter",
    "Segoe UI",
    Arial,
    sans-serif;

    color:var(--bsm-text);

}


/*==============================
Wrapper
==============================*/

.bsm-wrapper{

    width:100%;

    max-width:920px;

    margin:40px auto;

    padding:20px;

}


/*==============================
Card
==============================*/

.bsm-card{

    background:var(--bsm-card);

    border-radius:var(--bsm-radius);

    padding:45px;

    border:1px solid var(--bsm-border);

    box-shadow:var(--bsm-shadow);

}


/*==============================
Header
==============================*/

.bsm-header{

    text-align:center;

    margin-bottom:35px;

}

.bsm-header h2{

    margin:15px 0;

    font-size:34px;

    font-weight:700;

    color:#133A67;

}

.bsm-header p{

    max-width:700px;

    margin:auto;

    font-size:18px;

    line-height:1.7;

    color:var(--bsm-text-light);

}


/*==============================
Icono principal
==============================*/

.bsm-icon{

    width:90px;

    height:90px;

    margin:auto;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:

    linear-gradient(

    135deg,

    #0B5ED7,

    #2D8CFF

    );

    color:#FFF;

    font-size:36px;

    box-shadow:

    0 15px 30px

    rgba(11,94,215,.25);

}


/*==============================
Barra progreso
==============================*/

.bsm-progress{

    margin-bottom:40px;

}

.bsm-progress-bar{

    height:12px;

    background:#E9EEF7;

    border-radius:40px;

    overflow:hidden;

}

#bsm-progress-fill{

    width:0;

    height:100%;

    border-radius:40px;

    background:

    linear-gradient(

    90deg,

    #0B5ED7,

    #46A2FF

    );

    transition:.40s;

}

#bsm-progress-text{

    margin-top:12px;

    text-align:right;

    font-size:14px;

    color:#7B8794;

}


/*==============================
Categoría
==============================*/

.bsm-category{

    display:inline-block;

    padding:8px 18px;

    margin-bottom:20px;

    border-radius:30px;

    background:#E8F2FF;

    color:#0B5ED7;

    font-size:13px;

    font-weight:600;

    text-transform:uppercase;

    letter-spacing:.5px;

}


/*==============================
Pregunta
==============================*/

.bsm-question{

    font-size:28px;

    line-height:1.45;

    margin-bottom:30px;

    color:#12365F;

}

/*====================================================
Opciones de respuesta
====================================================*/

.bsm-options{

    display:flex;

    flex-direction:column;

    gap:18px;

    margin-bottom:40px;

}

.bsm-option{

    display:flex;

    align-items:center;

    gap:18px;

    padding:20px 24px;

    border:1px solid var(--bsm-border);

    border-radius:14px;

    background:#FFF;

    cursor:pointer;

    transition:all .25s ease;

}

.bsm-option:hover{

    border-color:var(--bsm-primary);

    background:#F8FBFF;

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(11,94,215,.08);

}


/*====================================================
Radio Button Personalizado
====================================================*/

.bsm-option input[type=radio]{

    appearance:none;

    -webkit-appearance:none;

    width:22px;

    height:22px;

    border-radius:50%;

    border:2px solid #B9C4D3;

    cursor:pointer;

    position:relative;

    flex-shrink:0;

    transition:.25s;

}

.bsm-option input[type=radio]:checked{

    border-color:var(--bsm-primary);

    background:var(--bsm-primary);

}

.bsm-option input[type=radio]:checked::after{

    content:"";

    position:absolute;

    left:5px;

    top:5px;

    width:8px;

    height:8px;

    border-radius:50%;

    background:#FFF;

}

.bsm-option span{

    flex:1;

    font-size:17px;

    line-height:1.6;

    color:var(--bsm-text);

}


/*====================================================
Footer
====================================================*/

.bsm-footer{

    display:flex;

    justify-content:space-between;

    gap:20px;

    margin-top:25px;

}


/*====================================================
Botones
====================================================*/

.bsm-btn{

    border:none;

    cursor:pointer;

    padding:15px 32px;

    border-radius:12px;

    font-size:16px;

    font-weight:600;

    transition:all .25s;

    min-width:170px;

}

.bsm-btn.primary{

    background:linear-gradient(
        135deg,
        #0B5ED7,
        #2D8CFF
    );

    color:#FFF;

}

.bsm-btn.primary:hover{

    transform:translateY(-2px);

    box-shadow:0 10px 25px rgba(11,94,215,.30);

}

.bsm-btn.secondary{

    background:#EEF3F8;

    color:#475569;

}

.bsm-btn.secondary:hover{

    background:#E2E8F0;

}

.bsm-btn:disabled{

    opacity:.45;

    cursor:not-allowed;

    transform:none;

    box-shadow:none;

}


/*====================================================
Animación
====================================================*/

#bsm-question-container{

    animation:bsmFade .30s ease;

}

@keyframes bsmFade{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*====================================================
Pantalla de Resultados
====================================================*/

.bsm-card.result{

    text-align:center;

}

.bsm-result-icon{

    width:90px;

    height:90px;

    margin:0 auto 25px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(
        135deg,
        #0B5ED7,
        #2D8CFF
    );

    color:#FFF;

    font-size:36px;

    box-shadow:0 15px 30px rgba(11,94,215,.20);

}

.bsm-score-circle{

    width:170px;

    height:170px;

    margin:30px auto;

    border-radius:50%;

    border:10px solid var(--bsm-primary);

    display:flex;

    align-items:center;

    justify-content:center;

    background:#FFF;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

}

.bsm-score-circle span{

    font-size:44px;

    font-weight:700;

    color:#133A67;

}

.bsm-description{

    max-width:700px;

    margin:25px auto 40px;

    line-height:1.8;

    font-size:17px;

    color:var(--bsm-text-light);

}

/*====================================================
Dimensiones
====================================================*/

.bsm-dimensions{

    margin-top:45px;

    text-align:left;

}

.bsm-dimensions h3{

    margin-bottom:25px;

    color:#12365F;

    font-size:24px;

}

.bsm-dimension{

    margin-bottom:24px;

}

.bsm-dimension-header{

    display:flex;

    justify-content:space-between;

    margin-bottom:8px;

    font-size:15px;

}

.bsm-dimension-header strong{

    color:var(--bsm-primary);

}

.bsm-bar{

    width:100%;

    height:10px;

    background:#E9EEF7;

    border-radius:30px;

    overflow:hidden;

}

.bsm-bar-fill{

    height:100%;

    background:linear-gradient(
        90deg,
        #0B5ED7,
        #43A1FF
    );

    transition:.4s;

}

/*====================================================
Recomendaciones
====================================================*/

.bsm-recommendations{

    margin-top:50px;

    padding:30px;

    background:#F8FBFF;

    border:1px solid #DCEBFF;

    border-radius:16px;

    text-align:left;

}

.bsm-recommendations h3{

    margin-bottom:20px;

    color:#133A67;

}

.bsm-recommendations ul{

    margin:0;

    padding-left:20px;

}

.bsm-recommendations li{

    margin-bottom:14px;

    line-height:1.7;

    color:#555;

}

/*====================================================
Resumen
====================================================*/

.bsm-summary{

    margin-top:40px;

    text-align:left;

    padding:30px;

    border-radius:16px;

    background:#F4F7FB;

}

.bsm-summary h4{

    margin-bottom:18px;

    color:#133A67;

}

.bsm-summary ul{

    padding-left:20px;

}

.bsm-summary li{

    margin-bottom:12px;

    line-height:1.7;

}

/*====================================================
Separación botón final
====================================================*/

#restartAssessment{

    margin-top:45px;

}

/*====================================================
Responsive
====================================================*/

@media(max-width:768px){

    .bsm-wrapper{

        padding:12px;

    }

    .bsm-card{

        padding:28px;

    }

    .bsm-header h2{

        font-size:28px;

    }

    .bsm-question{

        font-size:22px;

    }

    .bsm-option{

        padding:16px;

    }

    .bsm-option span{

        font-size:15px;

    }

    .bsm-footer{

        flex-direction:column;

    }

    .bsm-btn{

        width:100%;

    }

    .bsm-score-circle{

        width:140px;

        height:140px;

    }

    .bsm-score-circle span{

        font-size:36px;

    }

}

@media(max-width:480px){

    .bsm-header h2{

        font-size:24px;

    }

    .bsm-question{

        font-size:20px;

    }

    .bsm-description{

        font-size:15px;

    }

    .bsm-dimensions h3,

    .bsm-recommendations h3{

        font-size:20px;

    }

}


/*==========================================
Corrección listas Elementor / VamTam
==========================================*/

#bs-maturity ul{

    margin:15px 0 20px 20px !important;

    padding-left:20px !important;

    list-style:disc !important;

}

#bs-maturity li{

    display:list-item !important;

    margin-bottom:12px;

    line-height:1.7;

    color:#555;

}

#bs-maturity ul li::marker{

    color:#0B5ED7;

}