/* ============================================================
 * Watu — Frontend Styles
 * ============================================================ */

/* ============================================================
 * 1) Question page — main container
 * ============================================================ */
.watu-question {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.7;
}

.watu-question .question-content {
    margin-bottom: 18px;
    font-size: 16px;
}

.watu-question .question-content > p:first-child {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

.watu-question .watu_num {
    display: inline;
    margin-right: 4px;
    font-weight: 700;
    color: rgb(175, 12, 62);
}

.watu-question .question-content ol {
    padding-left: 26px;
    margin: 12px 0 18px;
}

.watu-question .question-content ol li {
    padding-left: 4px;
    margin-bottom: 6px;
}

.watu-question .question-content em {
    color: #64748b;
    font-size: 14px;
}

.watu-question .watu-questions-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.watu-question .watu-question-choice {
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    transition: background-color 0.2s ease,
                border-color 0.2s ease;
}

.watu-question .watu-question-choice:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.watu-question .watu-question-choice input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: #000;
}

.watu-question .watu-question-choice label {
    display: inline;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    width: 100%;
}

.watu-question .watu-question-choice:has(input[type="radio"]:checked) {
    background: rgb(255, 227, 230);
    border-color: #000;
}

.watu-question .watu-question-choice:has(input[type="radio"]:checked) label {
    color: #000;
    font-weight: 600;
}

/* ============================================================
 * 2) Submit button
 * ============================================================ */
.watu-question input[type="button"].watu-submit-button,
input[type="button"].watu-submit-button,
#action-button.watu-submit-button {
    display: inline-block;
    padding: 12px 32px;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    background: rgb(175, 12, 62);
    border: 1px solid rgb(175, 12, 62);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                transform 0.1s ease,
                box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.15);
    -webkit-appearance: none;
    appearance: none;
}

.watu-question input[type="button"].watu-submit-button:hover,
input[type="button"].watu-submit-button:hover,
#action-button.watu-submit-button:hover {
    background: rgb(175, 12, 62);
    border-color: rgb(175, 12, 62);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.watu-question input[type="button"].watu-submit-button:focus,
input[type="button"].watu-submit-button:focus,
#action-button.watu-submit-button:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.watu-question input[type="button"].watu-submit-button:active,
input[type="button"].watu-submit-button:active,
#action-button.watu-submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.watu-question input[type="button"].watu-submit-button:disabled,
.watu-question input[type="button"].watu-submit-button[disabled],
input[type="button"].watu-submit-button:disabled,
input[type="button"].watu-submit-button[disabled],
#action-button.watu-submit-button:disabled,
#action-button.watu-submit-button[disabled] {
    background: #93c5fd;
    border-color: #93c5fd;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
    box-shadow: none;
}

/* ============================================================
 * 3) Result / review page
 * ============================================================ */
#watu_quiz.quiz-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 0;
    color: #1e293b;
    line-height: 1.7;
}

#watu_quiz.quiz-area > p:first-of-type {
    margin: 0 0 8px;
    padding: 20px 24px;
    font-size: 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid rgb(175, 12, 62);
    border-radius: 12px;
    color: rgb(175, 12, 62);
}

#watu_quiz.quiz-area > p:first-of-type strong {
    font-weight: 700;
    color: rgb(175, 12, 62);
}

#watu_quiz.quiz-area > p:nth-of-type(2) {
    margin: 0 0 24px;
    padding: 12px 24px;
    font-size: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #94a3b8;
    border-radius: 12px;
    color: #475569;
}

#watu_quiz.quiz-area > hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 24px 0;
}

#watu_quiz .show-question {
    margin-bottom: 24px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

#watu_quiz .show-question-content {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
}

#watu_quiz .show-question-content > p {
    margin: 0 0 12px;
}

#watu_quiz .show-question-content > p:first-child {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

#watu_quiz .watu_num {
    display: inline;
    margin-right: 4px;
    font-weight: 700;
    color: #000;
}

#watu_quiz .show-question-content ol,
#watu_quiz .show-question-content ul {
    padding-left: 26px;
    margin: 8px 0 12px;
}

#watu_quiz .show-question-content li {
    margin-bottom: 4px;
}

#watu_quiz .show-question-content em {
    color: #64748b;
    font-size: 14px;
    font-style: italic;
}

#watu_quiz .show-question > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#watu_quiz .show-question > ul > li.answer {
    position: relative;
    padding: 12px 14px 12px 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    font-size: 15px;
    color: #334155;
    transition: background-color 0.2s ease,
                border-color 0.2s ease;
}

#watu_quiz .show-question > ul > li.answer::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #ffffff;
    box-sizing: border-box;
}

#watu_quiz .show-question > ul > li.answer > span.answer {
    display: inline;
}

#watu_quiz .show-question > ul > li.answer.correct-answer {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
    font-weight: 500;
}

#watu_quiz .show-question > ul > li.answer.correct-answer::before {
    background: #10b981;
    border-color: #10b981;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: center;
}

#watu_quiz .show-question > ul > li.answer.user-answer:not(.correct-answer) {
    /* background: #fef2f2; */
    /* border-color: #fca5a5; */
    color: #991b1b;
    font-weight: 500;
    background: rgba(153, 27, 27, .1);
    border-color: rgb(153, 27, 27);
}

#watu_quiz .show-question > ul > li.answer.user-answer:not(.correct-answer)::before {
    background: #ef4444;
    border-color: #ef4444;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
    background-size: 11px 11px;
    background-repeat: no-repeat;
    background-position: center;
}

#watu_quiz .show-question > ul > li.answer.user-answer.correct-answer {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
    font-weight: 600;
    box-shadow: 0 0 0 1px #10b981 inset;
}

#watu_quiz .show-question > ul > li.answer.user-answer.correct-answer::before {
    background: #059669;
    border-color: #059669;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: center;
}

#watu_quiz .show-question-feedback {
    margin-top: 16px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.65;
}

#watu_quiz .show-question-feedback > p:first-child {
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
}

#watu_quiz .show-question-feedback ul,
#watu_quiz .show-question-feedback ol {
    padding-left: 22px;
    margin: 6px 0 0;
}

#watu_quiz .show-question-feedback li {
    margin-bottom: 6px;
}

#watu_quiz .show-question-feedback li:last-child {
    margin-bottom: 0;
}

#watu_quiz .show-question-feedback strong {
    color: #1e293b;
}

/* ============================================================
 * 4) Mobile
 * ============================================================ */
@media (max-width: 600px) {
    .watu-question {
        padding: 15px;
        margin-bottom: 20px;
    }

    .watu-question .question-content {
        font-size: 15px;
    }

    .watu-question .question-content > p:first-child {
        font-size: 17px;
    }

    .watu-question .watu-question-choice {
        padding: 12px;
    }

    .watu-question input[type="button"].watu-submit-button,
    input[type="button"].watu-submit-button,
    #action-button.watu-submit-button {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }

    #watu_quiz.quiz-area > p:first-of-type {
        font-size: 16px;
        padding: 16px 18px;
    }

    #watu_quiz.quiz-area > p:nth-of-type(2) {
        font-size: 14px;
        padding: 10px 18px;
    }

    #watu_quiz .show-question {
        padding: 16px;
        margin-bottom: 18px;
    }

    #watu_quiz .show-question-content {
        font-size: 15px;
    }

    #watu_quiz .show-question-content > p:first-child {
        font-size: 17px;
    }

    #watu_quiz .show-question > ul > li.answer {
        padding: 11px 12px 11px 38px;
        font-size: 14px;
    }

    #watu_quiz .show-question > ul > li.answer::before {
        left: 12px;
        width: 16px;
        height: 16px;
    }

    #watu_quiz .show-question-feedback {
        padding: 14px;
        font-size: 14px;
    }
}