/*
 * Abecom Desafio — estilo industrial/técnico
 * Projeto Gerado pelo Prompt Mestre do Desenvolvedor e Vibe Coder Dante Testa — www.dantetesta.com.br
 */

:root {
    --ades-primaria: #15549E;
    --ades-secundaria: #686868;
    --ades-destaque: #DD0000;
    --ades-bg: #eef0f2;
    --ades-bg-gradiente-1: #cfe0f5;
    --ades-bg-gradiente-2: #3F7DC6;
    --ades-bg-panel: #ffffff;
    --ades-borda: #dfe2e6;
    --ades-texto: #212121;
    --ades-texto-mudo: #5f6570;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html, body {
    margin: 0;
    padding: 0;
}

body.ades-body {
    background-color: var(--ades-bg-gradiente-2);
    background-image:
        linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px),
        linear-gradient(135deg, var(--ades-bg-gradiente-1) 0%, var(--ades-bg-gradiente-2) 100%);
    background-size: 40px 40px, 40px 40px, cover;
    background-attachment: fixed;
    color: var(--ades-texto);
    font-family: 'Noto Sans', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

h1, h2 {
    font-family: 'Noto Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ades-app {
    width: 100%;
    max-width: 560px;
}

.ades-step {
    display: none;
}

.ades-step.is-active {
    display: block;
    animation: ades-fade-in .35s ease both;
}

@keyframes ades-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ades-panel {
    background: var(--ades-bg-panel);
    border: 1px solid var(--ades-borda);
    border-top: 4px solid var(--ades-primaria);
    border-radius: 10px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(33, 33, 33, .06);
}

.ades-logo {
    max-height: var(--ades-logo-altura, 56px);
    margin-bottom: 24px;
}

.ades-logo-placeholder {
    display: inline-block;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: .08em;
    color: var(--ades-primaria);
    margin-bottom: 24px;
    border: 2px solid var(--ades-primaria);
    padding: 8px 18px;
    border-radius: 6px;
}

.ades-headline {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 16px;
}

.ades-subtexto, .ades-intro {
    color: var(--ades-texto-mudo);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.ades-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    background: rgba(0, 0, 0, .02);
    border: 1px solid var(--ades-borda);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--ades-texto-mudo);
    cursor: pointer;
}

.ades-checkbox input {
    margin-top: 3px;
    accent-color: var(--ades-primaria);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ades-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 24px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease, background-color .15s ease;
}

.ades-btn--primary {
    background: var(--ades-primaria);
    color: #fff;
}

.ades-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    opacity: .92;
}

.ades-btn:disabled {
    background: var(--ades-primaria);
    opacity: .45;
    cursor: not-allowed;
}

.ades-btn.is-loading {
    opacity: .7;
    cursor: wait;
}

.ades-field {
    text-align: left;
    margin-bottom: 16px;
}

.ades-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ades-texto-mudo);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ades-field input {
    width: 100%;
    background: rgba(0, 0, 0, .02);
    border: 1px solid var(--ades-borda);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ades-texto);
    font-size: 15px;
    font-family: inherit;
}

.ades-field input:focus {
    outline: none;
    border-color: var(--ades-primaria);
}

.ades-error {
    background: rgba(221, 0, 0, .08);
    border: 1px solid var(--ades-destaque);
    color: #a30000;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    text-align: left;
    margin-bottom: 16px;
}

.ades-progresso {
    font-family: 'Noto Sans', sans-serif;
    color: var(--ades-texto-mudo);
    font-size: 14px;
    letter-spacing: .08em;
    margin-bottom: 18px;
}

.ades-progresso #ades-progresso-atual {
    color: var(--ades-primaria);
    font-weight: 700;
}

.ades-pergunta-texto {
    font-size: 22px;
    margin: 0 0 28px;
}

.ades-alternativas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ades-alt-btn {
    width: 100%;
    text-align: left;
    background: rgba(0, 0, 0, .02);
    border: 1px solid var(--ades-borda);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--ades-texto);
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.ades-alt-btn:hover:not(:disabled) {
    border-color: var(--ades-primaria);
    background: rgba(21, 84, 158, .12);
}

.ades-alt-btn:disabled {
    opacity: .6;
    cursor: wait;
}

.ades-alt-btn--correta {
    border-color: #16a34a !important;
    background: rgba(22, 163, 74, .1) !important;
    color: #15803d;
    opacity: 1 !important;
    font-weight: 600;
}
.ades-alt-btn--correta::after {
    content: '✓';
    float: right;
    font-weight: 700;
}

.ades-alt-btn--errada {
    border-color: var(--ades-destaque) !important;
    background: rgba(221, 0, 0, .08) !important;
    color: #a30000;
    opacity: 1 !important;
    font-weight: 600;
}
.ades-alt-btn--errada::after {
    content: '✕';
    float: right;
    font-weight: 700;
}

.ades-explicacao {
    text-align: left;
    background: rgba(0, 0, 0, .025);
    border: 1px solid var(--ades-borda);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
}
.ades-explicacao strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ades-texto-mudo);
    margin-bottom: 6px;
}
.ades-explicacao p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ades-texto);
}

#ades-btn-proxima {
    margin-top: 18px;
}

.ades-resultado {
    font-size: 20px;
    margin: 0 0 24px;
}

.ades-resultado strong {
    color: var(--ades-primaria);
    font-family: 'Noto Sans', sans-serif;
    font-size: 26px;
}

.ades-agradecimento, .ades-lembrete {
    color: #212121;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.ades-social {
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    column-gap: 36px;
    row-gap: 16px;
    margin-top: 22px;
}

.ades-social a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #14549F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .15s ease;
}

.ades-social a:hover {
    opacity: .7;
}

.ades-social a svg {
    flex-shrink: 0;
}

@media (max-width: 420px) {
    .ades-social {
        grid-template-columns: auto;
    }
}

@media (max-width: 480px) {
    .ades-panel {
        padding: 28px 20px;
    }
    .ades-headline {
        font-size: 22px;
    }
}
