/* Contenedor principal */
#crqg-test-container {
    margin: 0 auto;
     margin-bottom:2rem;
   
}

#crqg-test-loader {
    text-align: center;
    margin-top: 20px;
}

.crqg-spinner {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: crqg-spin 1s linear infinite;
    margin: 0 auto;
    margin-bottom: 10px;
}

#crqg-test-loader p {
    font-size: 17px;
    font-weight: bold;
}

@keyframes crqg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.crqg-error-message {
        display: block;
    max-width: 300px;
    line-height: 1.2;
    font-style: italic;
    background-color: rgb(255, 255, 255);
    margin: 1em auto;
    padding: 0.75em 1em;
    border-radius: 2px;
    color: rgb(153, 99, 0);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(153, 99, 0);
    border-image: initial;
}

/* Título y número de la pregunta */
.crqg-rating .crqg-question-header,
.crqg-categories .crqg-question-header  {
    display: flex;
    align-items: center;
}

.crqg-rating .question-number,
.crqg-categories .question-number
 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 10px;
    min-width: 30px;
}

.crqg-rating p,
.crqg-rating span.crqg-p,
.crqg-categories p,
.crqg-categories span.crqg-p  {
    font-weight: bold;
    margin: 0;
}

span.crqg-p {
    display: inline-block;
}

/* Opciones (alineadas horizontalmente) */
.crqg-rating  .crqg-options {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.crqg-rating  .crqg-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.crqg-rating  .crqg-option input[type="radio"] {
    display: none;
}

.crqg-rating .crqg-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* Botón de envío */
.crqg-submit {
    display: block;
    margin: 20px auto 0;
    padding: 16px 28px;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}



.crqg-categories .crqg-options{
    display: flex;
    flex-direction: column;
}

.crqg-categories .crqg-options label {
   padding: 6px 0;
   cursor: pointer;
}

.crqg-categories .crqg-options input[type=radio] {
    display: none;
}

.crqg-categories .crqg-options span:before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    margin: 0 .4em 0 0;
    border-radius: 50%;
    top: -2px;
    position: relative;
    color: #5b191c;
    line-height: 1.1;
    padding-left: .1em;
}

.crqg-categories .crqg-options input[type=radio]:checked+span:before {
    box-shadow: inset 0 0 0 3px #fff;
}



.crqg-rating {
    display:flex;
    margin: 3em 0;
}
.crqg-rating .question-number {
    margin-right: .5em;
    font-size: 20px;
    font-weight: 700;
    min-width: 35px;
    min-height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
}

.crqg-rating .crqg-option span {
    float: left;
    padding: .3em 1em;
    text-decoration: none;
    cursor: pointer;
    margin-left:5px;
}


.crqg-rating {
    display:flex;
    margin: 3em 0;
}
.crqg-rating .question-number {
    margin-right: .5em;
    font-size: 20px;
    font-weight: 700;
    min-width: 35px;
    min-height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
}

.labels {
    display:flex;
    justify-content:space-between;
    margin-top:10px;
}

.labels span {
    font-size:11px;
}

.crqg-options-container .labels.top span {
    font-size:11px !important;
}

.crqg-options-container .labels.top span+span {
    text-align:right;
}


.crqg-rating .crqg-options + .labels span + span {
    text-align: right;
}

@media(max-width:768px) {
    
    .crqg-options-container .labels.top {
        display:none;
    }
    .crqg-rating {
        flex-direction:column;
    }
    .crqg-rating .crqg-options .crqg-option {
        flex: 1; 
        text-align: center;
    }
    .crqg-rating .crqg-option span {
        min-width:100%;
    }
      .crqg-rating .crqg-options + .labels span:nth-child(1) {
        padding-right:2rem !important;
    }
        .crqg-rating .crqg-options + .labels span:nth-child(2) {
        padding-left:2rem !important;
    }  
}






.labels.top {
    display:none;
}


.crqg-rating {
    justify-content:space-between;
    align-items: center;
}

.crqg-question-header {
    flex:4;
    padding-right:3rem;
}

.crqg-options-container {
    flex:1;
}


.crqg-rating .question-number {
    font-size:18px;
}

.crqg-rating p {
    font-size:17px;
}



.crqg-test-container .labels span {
    font-size:12px !important;
}

.crqg-rating p{
    font-weight:300;
}


#crqg-test-result p:not(.crqg-error-message) {
    border-radius:10px;
    padding:2rem;
    margin-bottom:2rem;
}

#crqg-test-result p {
    margin-bottom:0;
}



.crqg-categories .crqg-options-container{
    margin-bottom:26px;
    margin-top:10px;
}

.crqg-ad-container {
    margin-bottom: 26px;
}