/* =========================================================
   Verb quiz
   ========================================================= */

.verb-quiz-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.verb-quiz-hero,
.verb-quiz-setup,
.verb-quiz-stage {
    box-sizing: border-box;

    border: 1px solid #dfe8ef;
    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 7px 20px
        rgba(31, 60, 90, 0.07);
}

.verb-quiz-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 24px;

    padding: 30px 32px;

    background:
        radial-gradient(
            circle at 92% 18%,
            rgba(114, 84, 184, 0.12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            #fbfaff
        );
}

.verb-quiz-back {
    display: inline-flex;

    margin-bottom: 17px;

    color: #60758a !important;

    font-size: 0.85rem;
    font-weight: 850;

    text-decoration: none !important;
}

.verb-quiz-back:hover {
    color: #7254b8 !important;
}

.verb-quiz-kicker,
.verb-quiz-section-label {
    color: #7254b8;

    font-size: 0.76rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 0.65px;
}

.verb-quiz-hero h1 {
    margin: 5px 0 0;

    color: #102b56;

    font-size: clamp(
        2rem,
        4vw,
        3rem
    );

    font-weight: 950;
    line-height: 1.08;
}

.verb-quiz-hero p {
    max-width: 760px;

    margin: 11px 0 0;

    color: #536579;

    line-height: 1.55;
}

.verb-quiz-hero-arabic {
    min-width: 190px;

    color: #102b56;

    font-size: clamp(
        2.5rem,
        6vw,
        4.3rem
    );

    font-weight: 900;

    text-align: center;
}

.verb-quiz-setup {
    padding: 26px 28px;
}

.verb-quiz-setup-block + .verb-quiz-setup-block {
    margin-top: 24px;
    padding-top: 22px;

    border-top: 1px solid #e8eef3;
}

.verb-quiz-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 11px;
}

.verb-quiz-chip {
    min-width: 125px;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;

    border: 1px solid #d6e1e9;
    border-radius: 11px;

    background: #ffffff;
    color: #40566d;

    font: inherit;

    cursor: pointer;
}

.verb-quiz-chip strong {
    min-width: 22px;

    color: #102b56;

    font-size: 1rem;
}

.verb-quiz-chip span {
    font-size: 0.76rem;
    font-weight: 800;
}

.verb-quiz-chip.active {
    border-color: #7254b8;

    background: #7254b8;
    color: #ffffff;
}

.verb-quiz-chip.active strong {
    color: #ffffff;
}

.verb-quiz-mode-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin-top: 11px;
}

.verb-quiz-mode {
    min-width: 0;
    min-height: 82px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;

    padding: 12px;

    border: 1px solid #dce5ec;
    border-radius: 13px;

    background: #ffffff;
    color: #40566d;

    font: inherit;

    text-align: left;

    cursor: pointer;
}

.verb-quiz-mode strong {
    color: #102b56;

    font-size: 0.84rem;
}

.verb-quiz-mode span {
    color: #718196;

    font-size: 0.72rem;
    line-height: 1.35;
}

.verb-quiz-mode.active {
    border-color: #7254b8;

    background: #f3effd;
}

.verb-quiz-mode.is-unavailable {
    opacity: 0.42;
}

.verb-quiz-start-bar,
.verb-quiz-stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.verb-quiz-start-bar {
    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid #e8eef3;
}

.verb-quiz-start-bar strong {
    display: block;

    margin-top: 4px;

    color: #102b56;
}

.verb-quiz-primary {
    min-height: 42px;

    padding: 0 16px;

    border: 0;
    border-radius: 11px;

    background: #7254b8;
    color: #ffffff;

    font: inherit;
    font-weight: 900;

    cursor: pointer;
}

.verb-quiz-primary:hover {
    background: #6246a9;
}

.verb-quiz-primary:disabled {
    opacity: 0.5;

    cursor: wait;
}

.verb-quiz-stage {
    padding: 26px 28px;
}

.verb-quiz-stage-head {
    padding-bottom: 17px;

    border-bottom: 1px solid #e8eef3;
}

.verb-quiz-stats {
    display: flex;
    gap: 8px;
}

.verb-quiz-stats span {
    padding: 5px 9px;

    border-radius: 999px;

    background: #f2f5f8;
    color: #607286;

    font-size: 0.74rem;
    font-weight: 900;
}

.verb-quiz-message {
    padding: 34px 20px;

    color: #8190a0;

    text-align: center;
}

.verb-quiz-question {
    margin-top: 20px;
}

.verb-quiz-prompt {
    padding: 22px;

    border: 1px solid #dde7ee;
    border-radius: 16px;

    background: #fafcfd;

    text-align: center;
}

.verb-quiz-prompt-label {
    color: #718196;

    font-size: 0.78rem;
    font-weight: 850;
}

.verb-quiz-prompt-arabic {
    margin-top: 8px;

    color: #102b56;

    font-size: clamp(
        2rem,
        6vw,
        3.6rem
    );

    font-weight: 950;
    line-height: 1.35;
}

.verb-quiz-prompt-french {
    margin-top: 7px;

    color: #40566d;

    font-size: 1.12rem;
    font-weight: 900;
}

.verb-quiz-prompt img {
    width: min(360px, 100%);
    max-height: 250px;

    object-fit: contain;

    margin-top: 10px;

    border-radius: 14px;

    background: #f5f9fb;
}

.verb-quiz-options {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 11px;

    margin-top: 14px;
}

.verb-quiz-option {
    min-height: 72px;

    padding: 12px;

    border: 1px solid #d8e3ea;
    border-radius: 13px;

    background: #ffffff;
    color: #334a61;

    font: inherit;
    font-weight: 850;

    cursor: pointer;
}

.verb-quiz-option:hover {
    border-color: #b4cfe0;

    background: #f7fbfd;
}

.verb-quiz-option.is-correct {
    border-color: #69b98c;

    background: #edf9f3;
}

.verb-quiz-option.is-wrong {
    border-color: #db8e8e;

    background: #fff1f1;
}

.verb-quiz-option-arabic {
    display: block;

    color: #102b56;

    font-size: 1.5rem;
    font-weight: 900;
}

.verb-quiz-option img {
    width: 100%;
    height: 150px;

    object-fit: contain;

    border-radius: 10px;

    background: #f6fafb;
}

.verb-quiz-input-panel {
    display: flex;
    gap: 10px;

    margin-top: 14px;
}

.verb-quiz-answer-input {
    flex: 1;

    min-width: 0;

    padding: 12px 14px;

    border: 1px solid #cfdce5;
    border-radius: 12px;

    color: #102b56;

    font-size: 1.4rem;
    font-weight: 850;

    text-align: right;
}

.verb-quiz-feedback {
    min-height: 24px;

    margin-top: 14px;

    font-weight: 850;

    text-align: center;
}

.verb-quiz-feedback.is-success {
    color: #267149;
}

.verb-quiz-feedback.is-error {
    color: #9a4444;
}

.verb-quiz-actions {
    display: flex;
    justify-content: center;

    margin-top: 16px;
}

@media (max-width: 1050px) {

    .verb-quiz-mode-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {

    .verb-quiz-hero {
        grid-template-columns: 1fr;
    }

    .verb-quiz-hero-arabic {
        display: none;
    }

    .verb-quiz-mode-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .verb-quiz-start-bar,
    .verb-quiz-stage-head {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 520px) {

    .verb-quiz-hero,
    .verb-quiz-setup,
    .verb-quiz-stage {
        padding: 18px;
    }

    .verb-quiz-mode-grid,
    .verb-quiz-options {
        grid-template-columns: 1fr;
    }

    .verb-quiz-input-panel {
        flex-direction: column;
    }
}
