#quiz_headline {
    color: red;
}

.quiz-wrap {
    max-width: 1641px;
    margin: 2rem auto;
    padding: 1.25rem;
}

.quiz-head {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.quiz-progress { font-weight: 600; }

.grid { display: grid; gap: 12px; }
.grid-cols-2 { grid-template-columns: 1fr 1fr; }

.questions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.questions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
}

.question-column {
    display: flex;
    flex-direction: column;
}

.quiz-wrap .category-header {
    font: normal normal normal 30px/35px Euclid Mono;
    letter-spacing: 0px;
    color: #537BFF;
    text-align: left;
    margin: 0 0 16px 0;
}

.card {
    display: flex;
    flex-direction: column;
}

.choices { 
    display: flex; 
    gap: .5rem; 
    flex-direction: column;
}

.radio-option {
    display: block;
    cursor: pointer;
    width: 100%;
}

.radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    height: 60px;
    border-radius: 9999px;
    font-size: 30px;
    font-family: Fraunces;
    font-weight: 200;
    user-select: none;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
    text-transform: uppercase;
}

.radio-label:hover {
    border-color: #DEE3D9;
}

.radio-label:hover::after {
    content: '✓';
    position: absolute;
    left: 37px;
    top: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 24px;
    font-weight: bold;
}

.radio-label::before {
    content: '';
    display: inline-block;
    width: 44px;
    height: 44px;
    border: 2px solid #DEE3D9;
    border-radius: 50%;
    background: #DEE3D9;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.radio-label.selected::before {
    border-color: #DEE3D9;
    background: #DEE3D9;
}

.radio-label.selected::after {
    content: '✓';
    position: absolute;
    left: 37px;
    top: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 24px;
    font-weight: bold;
}

.radio-label.selected {
    background: transparent;
    border-color: #DEE3D9;
}

.radio-label.correct {
    background: transparent;
    border-color: #DEE3D9;
}

.radio-label.correct::before {
    border-color: #EDD780;
    background: #EDD780;
}

.radio-label.correct.selected::before {
    background: #EDD780;
}

.radio-label.correct::after {
    content: '✓';
    position: absolute;
    left: 37px;
    top: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 24px;
    font-weight: bold;
}

.radio-label.correct.selected::after {
    color: black;
}

.feedback { 
    margin-top: .5rem; 
    font-size: 22px;
    padding: 8px;
    animation: flashBackground 1s ease-in-out;
}
.ok { color: #047857; font-size: 22px; }
.bad { color: #b91c1c; font-size: 22px; }
.feedback strong { text-transform: uppercase; }

.toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1rem;
    padding-top: 50px;
    border-top: 1px solid var(--unnamed-color-edd780);
    position: relative;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 0;
    top: 50px;
    padding: 8px 12px;
    border-radius: 20px;
    animation: flashBackground 1s ease-in-out;
}

@keyframes flashBackground {
    0% {
        background-color: rgba(237, 215, 128, 0);
    }
    25% {
        background-color: rgba(237, 215, 128, 0.3);
    }
    50% {
        background-color: rgba(237, 215, 128, 0.6);
    }
    75% {
        background-color: rgba(237, 215, 128, 0.3);
    }
    100% {
        background-color: rgba(237, 215, 128, 0);
    }
}

.heart-icon {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.score-text {
    font-size: 25px;
    font-weight: normal;
    color: #537BFF;
}

.button-group {
    display: flex;
    gap: 24px;
}
button.btn {
    background: #DEE3D9 0% 0% no-repeat padding-box;
    border-radius: 100px;
    border: none;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    color: #000000;
    font-family: 'Euclid Mono', 'Vanguard', monospace;
    font-size: 25px;
}
button.btn.btn-next {
    background: #FFAEA7 0% 0% no-repeat padding-box !important;
    color: #000000;
}
button.btn[disabled] { 
    opacity: .5; 
    cursor: not-allowed; 
    color: #000000;
}

.muted { opacity: .8; }

.info-line {
    margin-top: .35rem;
    padding-top: .35rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 22px;
}

.quiz-progress {
    font: normal normal 300 55px/60px Fraunces;
    font-weight: 600;
    letter-spacing: 0px;
    color: #000000;
    text-align: left;
    border-bottom: 1px solid var(--unnamed-color-edd780);
    padding-bottom: 0.25rem;
    padding-right: 80px;
    display: flex;
    align-items: center;
}

.quiz-prompt {
    text-align: left;
    font: normal normal normal 35px/40px Fraunces;
    letter-spacing: 0px;
    color: #000000;
    opacity: 1;
    padding-left: 70px;
    display: flex;
    align-items: center;
    background-image: url('/wp-content/uploads/quiz/images/arrow_dzth_blue.svg');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 32px auto;
}

.quiz-wrap .legend {
    margin-top: 2rem;
    padding: 1.5rem;
    background: transparent;
}

.quiz-wrap .legend-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #537BFF;
    margin-bottom: 1rem;
    font-family: Euclid Mono, monospace;
}

.quiz-wrap .legend-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.quiz-wrap .legend-list li {
    margin-bottom: 0.5rem;
    font-size: 20px;
    line-height: 1.5;
    color: #333;
}

.quiz-wrap .legend-list li strong {
    color: #000;
}

/* Responsive Layout */
/* Mobile: Stack toolbar vertically */
@media (max-width: 767px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .score-display {
        position: static;
        align-self: flex-start;
        top: auto;
        left: auto;
    }
    
    .button-group {
        align-self: flex-end;
    }
    
    .quiz-wrap .legend {
        padding: 0;
    }
    
    .quiz-wrap .legend-title {
        font-size: 20px;
    }
    
    button.btn {
        font-size: 18px;
    }
}

/* Mobile and Tablet: Stack quiz-head vertically */
@media (max-width: 1199px) {
    .quiz-head {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quiz-progress {
        font-size: 28px;
        line-height: 32px;
    }
    
    .quiz-prompt {
        font-size: 24px;
        line-height: 28px;
    }
    
    .quiz-wrap .category-header {
        font-size: 20px;
        line-height: 24px;
    }
    
    .radio-label {
        font-size: 18px;
        height: 54px;
    }
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .questions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 columns */
@media (min-width: 1200px) {
    .questions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}