/* Página full-screen do teste vocacional (estilo ChatGPT) */
body.teste-chat-page {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f7f8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.teste-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 48rem;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.teste-chat-header {
    padding: 0.75rem 1rem;
    background: var(--teste-primary, #0677f7);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.teste-chat-header img {
    height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    justify-self: start;
}

.teste-chat-header-title {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    justify-self: center;
    grid-column: 2;
}

.teste-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.teste-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.45;
}

.teste-bubble-assistant {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-bottom-left-radius: 4px;
    color: #1a1a1a;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.teste-bubble-user {
    align-self: flex-end;
    background: var(--teste-primary, #0677f7);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.teste-bubble-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.teste-bubble-buttons button {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid #dadce0;
    background: #fff;
    color: #1a1a1a;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.teste-bubble-buttons button:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* Opção 1–5 marcada: destaque visual para o lead ter certeza da escolha */
.teste-bubble-buttons button.teste-scale-btn-selected {
    background: var(--teste-primary, #0677f7);
    color: #fff;
    border-color: var(--teste-primary, #0677f7);
}

.teste-bubble-buttons button.teste-scale-btn-selected:hover {
    background: var(--teste-primary, #0677f7);
    color: #fff;
}

/* Barra de progresso logo abaixo do cabeçalho (fase das perguntas) */
.teste-progress-wrap {
    flex-shrink: 0;
    height: 28px;
    background: rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.teste-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 0%;
    background: var(--teste-progress-fill, #28a745);
    border-radius: 0 4px 4px 0;
    transition: width 0.35s ease;
}

.teste-progress-pct {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.teste-chat-input-area {
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.teste-chat-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    max-width: 48rem;
    margin: 0 auto;
}

.teste-chat-input-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 24px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s;
}

.teste-chat-input-row input:focus {
    border-color: var(--teste-primary, #0677f7);
}

.teste-chat-input-row button {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 24px;
    background: var(--teste-primary, #0677f7);
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
}

.teste-chat-input-row button:hover {
    filter: brightness(1.05);
}

.teste-chat-input-row button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.teste-download-box {
    margin-top: 0.5rem;
    padding: 1rem;
    background: #e8f0fe;
    border-radius: 12px;
    border: 1px solid #aecbfa;
}

.teste-download-box a {
    color: var(--teste-primary, #0677f7);
    font-weight: 600;
}

@media (max-width: 640px) {
    .teste-bubble { max-width: 95%; }
    .teste-chat-messages { padding: 0.75rem; }
    .teste-chat-input-row { flex-wrap: wrap; }
    .teste-chat-input-row button { width: 100%; }
}

/* Página de resultado – gráficos Holland e ranking RIASEC */
.vocational-charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .vocational-charts-container {
        grid-template-columns: 1fr;
    }
}
