/* Frontend */
.quiz-question-block img {
	display: block;
}

.quiz-question-block {
    margin-bottom: var(--spacing-48);
}

.quiz-question-block p {
    margin-bottom: 12px;
	font-size: var(--wp--preset--font-size--h-5);
}

.quiz-img {
	  margin-bottom: 10px;
}

.quiz-answers-block {
	  display: block;
}

.quiz-answers-block label {
    cursor: pointer;
    display: flex;       
    align-items: center; 
    gap: 12px;           
    cursor: pointer;
    padding: 8px 0;     
    line-height: 1.4;
    transition: all 0.2s ease;
}

.quiz-answers-block label:hover {
    color: #F40000;
}

.quiz-answers-block label:has(input:checked) {
    font-weight: 900;
}

.quiz-answers-block label:has(input:checked) {
    background-color: rgb(246 246 246) ; 
    border-radius: 6px;
    padding-left: 10px; 
}


/* Radio Buttons y Checkboxes */
#quiz-form input[type="radio"],
#quiz-form input[type="checkbox"] {
    accent-color: #F40000;
    width: 20px;  
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
	margin: 0;
}


/* Estilo para boton */
#quiz-form button {
    border-radius: 8px;
    padding: 8px 20px;
    line-height: 1;
    background-color: var(--color-textMain);
    color: var(--color-white);
    border: none;
    font-family: inherit;
    font-weight: 300;
    font-size: var(--wp--preset--font-size--h-6);
}

#quiz-form button:hover {
    background-color: var(--color-accent);
}



/* Inputs Text y Email */
#quiz-form input[type="text"],
#quiz-form input[type="email"] {
    width: 100%;
    max-width: 400px; 
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none; 
	margin-bottom: 12px;
}

#quiz-form input[type="text"]:focus,
#quiz-form input[type="email"]:focus {
    border-color: #F40000; 
}

#quiz-form input::placeholder {
    color: #aaa;
    font-weight: 300;
}




/* Modal Zoom Img */
#img-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#img-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

#img-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.zoomable:hover {
    transform: scale(1.03);
}