/* CONTAINER GERAL */
#aq-quiz {
    max-width: 520px;
    margin: 20px auto;
    margin-top: 35px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        min-height: 500px;
        transition: height 1s ease;
}

/* TÍTULO */
#aq-quiz h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #1f2937;
    line-height: 1.4;
    font-weight: 700;
}

/* SELECT */
#aq-quiz select {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    margin-bottom: 20px;
    background-color: #fff;
    transition: border 0.2s ease;
}

#aq-quiz select:focus {
    outline: none;
    border-color: #2563eb;
}

/* BOTÕES */
#aq-quiz button {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

#aq-quiz button:hover {
    background: #1e40af;
}

#aq-quiz button:active {
    transform: scale(0.98);
}

/* INDICADOR DE ETAPA (opcional) */
.aq-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.aq-progress-bar {
    height: 100%;
    width: 0%;
    background: #2563eb;
    transition: width 0.3s ease;
}

/* FEEDBACK DE ERRO */
.aq-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* RESPONSIVO */
@media (max-width: 480px) {
    #aq-quiz {
        padding: 20px 16px;
        width: calc(100% - 20px);
    }
}

.aq-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aq-option {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aq-option:hover {
    background: #e5e7eb;
}

.aq-option:active {
    transform: scale(0.97);
}

@media (min-width: 768px) {
    .aq-options {
        max-width: 480px;
        margin: 0 auto;
    }
}

#aq-quiz span, span#logo {
    display: inline-block;
    font-size: 1.1em;
    line-height: 1.0em;
    color: #1800ad;
    text-align: center;
    margin-bottom: 1em;
    width: 100%;
}

#aq-quiz .aq-nav {
        margin: 20px 0 0 25%;
    width: 50%;
    display: block;
    text-align: center;
    border-top: 1px solid #9c9c9c;
    padding: 20px 0 0;
}
#aq-quiz .aq-nav button {
    width: auto;
    background: white;
    border: 1px solid #444;
    color: #333;
    padding: 7px 17px;
}
#aq-calculo {
    text-align: center;
    padding: 10px 0px;

    transform: translateY(10px);
    animation: slideUpFade 0.4s ease forwards;
    padding-top: 0;
    margin-top: -1em;
}

.aq-loader {
    width: 35px;
    height: 35px;
    border: 5px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    margin: 0 auto;
    margin-bottom: 20px;
    animation: spin 1.5s linear infinite;
}

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


#aq-calculo-texto div {
    opacity: 0;
    transform: translateY(10px);
    animation: slideUpFade 0.4s ease forwards;
    padding: 4px 0;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFade {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

#aq-quiz span, #aq-quiz div.hide {
    opacity: 1;
    transform: translateY(0);
}

/* classe de saída */
#aq-quiz span.hide, #aq-quiz div.hide {
    animation: slideDownFade 0.4s ease forwards;
}

@keyframes wordUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ia-word {
      display: inline-block !important;
    opacity: 0;
    animation: wordUp .35s ease forwards;
    margin-right: .15em;
    width: auto !important;
    margin-bottom: 0.5em !important;
    font-size: 1em !important;;
}

#aq-calculo-texto div:last-child span {
       font-weight: 700;
    color: #0db500 !important;
    font-size: 1.15em !important;
}