/* Variáveis de Cores Profissionais */
:root {
    --primary: #2563eb;
    --secondary: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --card-bg: #ffffff;
    --text: #1e293b;
    --gray: #64748b;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 480px;
}

/* Header e Logo */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-bottom: 2rem;
}

.logo-link {
    display: inline-block;
    margin-bottom: 1rem;
    transition: transform 0.2s;
    background: rgba(255, 255, 255, 0.95);
    padding: 14px 28px;
    border-radius: 12px;
}

.logo-img {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

header h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

header p {
    color: #94a3b8;
    margin: 0;
}

/* Cards — lógica de exibição */
.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: none;
    animation: slideUp 0.4s ease-out forwards;
}

.card.active {
    display: block;
}

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

/* Inputs */
input {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Help Box */
.help-box {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.4;
    border-radius: 4px;
    text-align: left;
}

.help-box strong {
    display: block;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botões */
.btn-next, .btn-opt {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-next {
    background: var(--primary);
    color: white;
    margin-top: 10px;
}

.btn-next:hover {
    background: #1d4ed8;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.btn-opt {
    background: #f1f5f9;
    color: var(--text);
}

.btn-opt.yes:hover { background: var(--secondary); color: white; }
.btn-opt.no:hover { background: var(--danger); color: white; }

/* Progresso */
.progress-bar {
    background: #e2e8f0;
    height: 6px;
    border-radius: 10px;
    margin-bottom: 25px;
    overflow: hidden;
}

#progress {
    background: var(--primary);
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
}

/* Navegação do Quiz */
.nav-quiz {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.btn-back {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-back:hover {
    color: var(--primary);
}

.counter {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Resultado */
#result-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#result-desc {
    color: #475569;
    line-height: 1.6;
}

/* Título dentro do card */
.card h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 1.2rem;
    color: var(--text);
}
