/* ============================================================
   TRYOUT — styling halaman daftar, pengerjaan, dan hasil
   ============================================================ */

.tryout-container {
    max-width: 760px;
}

/* TIMER */
.tryout-timer {
    position: sticky;
    top: 1rem;
    z-index: 5;
    background: #041E4F;
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    text-align: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(4, 30, 79, 0.25);
    margin-bottom: 1.5rem;
}
.tryout-timer strong { font-variant-numeric: tabular-nums; }
.tryout-timer.time-warning { background: #B36A00; }
.tryout-timer.time-up { background: #A4262C; }

/* FORM & IDENTITY */
.tryout-identity,
.tryout-questions {
    border: 1px solid #dde3ee;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}
.tryout-identity legend,
.tryout-questions legend {
    font-weight: 700;
    padding: 0 0.5rem;
    color: #041E4F;
}
.tryout-identity label {
    display: block;
    font-weight: 600;
    margin-top: 0.75rem;
}
.tryout-identity input {
    width: 100%;
    max-width: 420px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #c8d0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.25rem;
}
.tryout-note {
    font-size: 0.9rem;
    color: #55607a;
}

/* SOAL */
.tryout-question {
    padding: 1rem 0;
    border-bottom: 1px dashed #dde3ee;
}
.tryout-question:last-child { border-bottom: none; }
/* Render \n pada teks soal sebagai baris baru (mis. pernyataan 1) dan 2) Data Sufficiency) */
.tryout-question .question-text,
.tryout-review-item .question-text {
    white-space: pre-line;
}
.tryout-choices {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.5rem;
}
.tryout-choice {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #e4e8f2;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.tryout-choice:hover { background: #f3f6fc; border-color: #9fb2d8; }
.tryout-choice input { accent-color: #041E4F; }
.tryout-letter { font-weight: 700; min-width: 1.2em; color: #041E4F; }
.tryout-choice-text { flex: 1; }

/* SUBMIT */
.tryout-submit-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-bottom: 40px;
}

/* HASIL */
.tryout-score-card {
    background: #f3f6fc;
    border: 1px solid #cdd8ef;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.tryout-score-number {
    font-size: 3.2rem;
    font-weight: 800;
    color: #041E4F;
    line-height: 1.1;
}
.tryout-score-number span {
    font-size: 1.4rem;
    font-weight: 600;
    color: #55607a;
}
.tryout-wa-button {
    margin-top: 1rem;
    background: #25D366;
    color: #fff;
}
.tryout-wa-button:hover { background: #1da851; }

/* SOAL BERGAMBAR & ISIAN OPEN-ENDED */
.tryout-question-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.5rem 0 0.75rem;
    border: 1px solid #dde3ee;
    border-radius: 8px;
}

.tryout-open-ended-label {
    display: block;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
    color: #041E4F;
}

.tryout-open-ended-input {
    width: 100%;
    max-width: 420px;
    padding: 0.6rem 0.75rem;
    border: 2px solid #dde3ee;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.tryout-open-ended-input:focus {
    outline: none;
    border-color: #041E4F;
}

/* E-CERTIFICATE */
.tryout-certificate-form { margin-top: 0.75rem; }
.tryout-certificate-button {
    background: #041E4F;
    color: #fff;
}
.tryout-certificate-button:hover { background: #0a2f70; }

.tryout-review-heading { margin-bottom: 0.75rem; }
.tryout-review-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
}
.tryout-review-item {
    border: 1px solid #dde3ee;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}
.tryout-review-item.is-correct { border-left: 5px solid #1c8a3c; }
.tryout-review-item.is-wrong { border-left: 5px solid #A4262C; }
.tryout-explanation {
    margin-top: 0.5rem;
    background: #f8f9fc;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
}
.tryout-explanation summary {
    cursor: pointer;
    font-weight: 600;
    color: #041E4F;
}

@media (max-width: 640px) {
    .tryout-identity, .tryout-questions, .tryout-review-item {
        padding: 1rem;
    }
    .tryout-score-number { font-size: 2.4rem; }
}
