/*
 * Estilos do componente Quiz CTA no frontend: modal em tela cheia com fundo desfocado (backdrop), card
 * centralizado com botão de fechar, título, subtítulo, botão de recompensa e aviso (disclaimer). Usa fonte
 * de sistema para evitar o atraso de texto invisível da webfont do tema.
 */

/* Fonte de sistema em todo o modal (evita FOIT da webfont do tema; cobre os descendentes para vencer regras do tema). */
.mqc-wrap,
.mqc-wrap * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Container do modal em tela cheia. */
.mqc-wrap {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Fundo escurecido e desfocado atrás do card. */
.mqc-wrap .mqc-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: none;
    cursor: default;
}

/* Card central do modal. */
.mqc-wrap .mqc-card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 32px 24px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    text-align: center;
    z-index: 1;
    box-sizing: border-box;
}

/* Botão de fechar (X). */
.mqc-wrap .mqc-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease;
    padding: 0;
}

/* Hover do botão de fechar. */
.mqc-wrap .mqc-close:hover {
    background: #f3f4f6;
}

/* Título do modal. */
.mqc-wrap .mqc-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
    line-height: 1.3;
}

/* Subtítulo do modal. */
.mqc-wrap .mqc-subtitle {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* Botão de recompensa. */
.mqc-wrap .mqc-reward-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease, transform 0.15s ease;
    margin-bottom: 16px;
    box-sizing: border-box;
}

/* Hover do botão de recompensa. */
.mqc-wrap .mqc-reward-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Aviso abaixo do botão. */
.mqc-wrap .mqc-disclaimer {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}
