/* === BLOCO QUIZ (REWARDED) === */

.rm-rq {
    --rm-rq-cor: var(--color-primary, #05A71E);
    --rm-rq-on: var(--color-on-primary, #fff); /* texto sobre a cor do bloco */
    max-width: 560px;
    margin: 32px auto;
    background: #f7f7f7;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    overflow: hidden;
    text-align: center;
    color: #1a1a1a;
    /* cor própria: no kit escuro o texto não some no fundo claro */
}

.rm-rq * {
    box-sizing: border-box;
}

/* Vence o ".single-article-content strong" do tema, que escurecia o negrito dentro dos botões */
.rm-rq .rm-rq-body strong {
    color: inherit;
}

.rm-rq-progress {
    height: 4px;
}

.rm-rq-bar {
    width: 0;
    height: 100%;
    background: var(--rm-rq-cor);
    transition: width .3s ease;
}

.rm-rq-body {
    padding: 22px 24px 26px;
}

/* Prefixo .rm-rq vence o ".single-article-content p" do tema */
.rm-rq .rm-rq-hook {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #0a7a3f;
    color: color-mix(in srgb, var(--rm-rq-cor) 55%, #000);
}

.rm-rq .rm-rq-time {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.4;
    color: #1aa34a;
}

.rm-rq.is-opcoes .rm-rq-head {
    display: none;
}

.rm-rq-step {
    display: none;
}

.rm-rq-step.is-active {
    display: block;
    animation: rmRqIn .25s ease;
}

@keyframes rmRqIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.rm-rq .rm-rq-q {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: #000;
}

.rm-rq .rm-rq-q--loading,
.rm-rq .rm-rq-q--opcoes {
    font-weight: 500;
    color: #222;
}

.rm-rq .rm-rq-q--final {
    font-size: 24px;
    font-weight: 700;
}

/* Respostas com imagem */
.rm-rq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rm-rq-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    font: inherit;
    transition: transform .15s, box-shadow .15s;
}

.rm-rq-card:hover,
.rm-rq-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.rm-rq-card img,
.rm-rq-card-img--empty {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: linear-gradient(135deg, #d7f7e6, #e9eefc);
}

.rm-rq-card-label {
    display: block;
    margin-top: auto;
    padding: 10px 8px;
    background: var(--rm-rq-cor);
    color: var(--rm-rq-on);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.rm-rq-card:hover .rm-rq-card-label,
.rm-rq-opt:hover,
.rm-rq-cta:hover,
.rm-rq-link:hover {
    filter: brightness(.92);
}

/* Respostas só com texto */
.rm-rq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rm-rq-opt {
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 10px;
    background: var(--rm-rq-cor);
    color: var(--rm-rq-on);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.rm-rq-spinner {
    width: 32px;
    height: 32px;
    margin: 6px auto 16px;
    border: 3px solid #e9e9e9;
    border-top-color: var(--rm-rq-cor);
    border-radius: 50%;
    animation: rmRqSpin .8s linear infinite;
}

@keyframes rmRqSpin {
    to { transform: rotate(360deg); }
}

.rm-rq .rm-rq-cta {
    display: inline-block;
    padding: 16px 48px;
    border-radius: 12px;
    background: var(--rm-rq-cor);
    color: var(--rm-rq-on);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.rm-rq .rm-rq-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #777;
}

.rm-rq-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rm-rq .rm-rq-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 24px;
    border-radius: 100px;
    background: var(--rm-rq-cor);
    color: var(--rm-rq-on);
    font-size: 15px;
    text-decoration: none;
}

.rm-rq-link-n {
    font-weight: 500;
    opacity: .85;
}

.rm-rq-link svg {
    flex: none;
}

/* === Variante texto === */

.rm-rq--texto {
    background: #fff;
    border-color: #ececec;
    border-radius: 18px;
}

.rm-rq--texto .rm-rq-progress {
    background: #f1f1f1;
}

.rm-rq--texto .rm-rq-body {
    padding: 20px 20px 18px;
}

.rm-rq.rm-rq--texto .rm-rq-time {
    margin-bottom: 10px;
    font-size: 12px;
}

.rm-rq.rm-rq--texto .rm-rq-q {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 500;
    color: #222;
}

.rm-rq.rm-rq--texto .rm-rq-q--opcoes {
    font-weight: 700;
    color: #111;
}

.rm-rq--texto .rm-rq-list {
    gap: 10px;
}

.rm-rq--texto .rm-rq-opt {
    font-size: 14px;
}

.rm-rq.rm-rq--texto .rm-rq-cta {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
}

.rm-rq-jobs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.rm-rq .rm-rq-job {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--rm-rq-cor);
    border-radius: 12px;
    background: var(--rm-rq-cor);
    color: var(--rm-rq-on);
    text-decoration: none;
    transition: filter .15s, transform .15s;
}

.rm-rq-job:hover,
.rm-rq-job:focus-visible {
    filter: brightness(.94);
    transform: translateY(-1px);
}

.rm-rq-job-img {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.rm-rq-job-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rm-rq-job-txt {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rm-rq-job-txt strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.rm-rq-job-txt small {
    font-size: 12px;
    line-height: 1.35;
    opacity: .92;
}

.rm-rq-job-go {
    flex: none;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .rm-rq-body {
        padding: 20px 14px 22px;
    }

    .rm-rq-card img,
    .rm-rq-card-img--empty {
        height: 130px;
    }

    .rm-rq .rm-rq-q--final {
        font-size: 21px;
    }

    .rm-rq .rm-rq-cta {
        padding: 16px 28px;
    }
}
