:root {
    --bg-page: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
    --card-bg: #FFFFFF;
    --primary-dark: #0F172A;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --gradient-vibrant: linear-gradient(135deg, #06B6D4 0%, #7C3AED 50%, #EC4899 100%);
    --radius-card: 16px;
    --radius-inner: 10px;
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.2);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    transition: color 0.2s;
}

nav a:hover, nav a.active { color: #7C3AED; }

.btn-login-highlight {
    background: var(--gradient-vibrant);
    color: #FFFFFF !important;
    padding: 0.45rem 1.2rem;
    border-radius: 20px;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

header.form-header {
    background-color: var(--card-bg);
    color: var(--primary-dark);
    padding: 25px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
}

header.form-header h1 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--primary-dark);
}

header.form-header p { font-size: 0.95rem; color: var(--text-muted); }

.card-step {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    box-shadow: var(--shadow-card);
}

.card-step h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--text-main); }
.form-group input { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.95rem; }

.scale-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 15px;
    border-radius: var(--radius-inner);
    margin-bottom: 20px;
    font-size: 9.5pt;
    color: #1e3a8a;
}

.question-counter-display {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-question-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: var(--radius-inner);
    margin-bottom: 20px;
}

.question-text-title {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.option-label:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.option-label input[type="radio"] {
    transform: scale(1.3);
    accent-color: #2563eb;
    cursor: pointer;
}

.btn-group-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.btn-submit {
    background-color: #1e3a8a;
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.3);
    transition: all 0.2s ease;
}
.btn-submit:hover { background-color: #2563eb; }

.btn-secondary-action {
    background-color: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}
.btn-secondary-action:hover { background-color: #F1F5F9; }

#areaPix {
    display: none;
    margin: 25px auto 50px auto;
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 25px;
    background: var(--card-bg);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    max-width: 500px;
}

#qrCodeImg {
    width: 220px;
    height: 220px;
    border: 1px solid var(--border-color);
    padding: 8px;
    background: white;
    border-radius: 8px;
    margin: 15px 0;
}

.copia-cola-input {
    font-size: 11px;
    font-family: monospace;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: 1px dashed #009ee3;
    background: #ebf8ff;
    text-align: center;
    border-radius: 4px;
    color: #2b6cb0;
    cursor: pointer;
    font-weight: bold;
}

.result-box {
    display: none;
    margin-top: 25px;
    padding: 30px;
    background-color: var(--card-bg);
    border: 2px solid #1e3a8a;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.hogrefe-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #ffffff;
}

.hogrefe-table th {
    background-color: #1e3a8a;
    color: white;
    text-align: left;
    padding: 9px 12px;
    font-size: 9pt;
    text-transform: uppercase;
}

.hogrefe-table td {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    font-size: 9.5pt;
}

.bar-background {
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 4px;
}

.bar-fill { height: 100%; background-color: #2563eb; width: 0%; }

.legend-box {
    margin-top: 25px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-inner);
    padding: 20px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 8.5pt;
    text-align: center;
}
.bg-alta { background-color: #dcfce7; color: #166534; }
.bg-media { background-color: #fef9c3; color: #854d0e; }
.bg-baixa { background-color: #fee2e2; color: #991b1b; }

.holland-code-box {
    text-align: center;
    background: #eff6ff;
    border: 2px dashed #2563eb;
    padding: 15px;
    border-radius: var(--radius-inner);
    margin: 15px 0;
}
.holland-code-value {
    font-size: 22pt;
    font-weight: bold;
    color: #1e3a8a;
    letter-spacing: 2px;
}

.btn-print {
    background-color: #0284c7;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 11pt;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}
.btn-print:hover { background-color: #0369a1; }

footer {
    margin-top: 3rem;
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1rem 0;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand p, .footer-col a { font-size: 0.8rem; color: var(--text-muted); }
.footer-col h5 { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 0.8rem; color: var(--primary-dark); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.copyright-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* REGRAS DE IMPRESSÃO LIMPA (Oculta tudo exceto a caixa de resultados) */
@media print {
    body { background: white; padding: 0; margin: 0; }
    .container { max-width: 100%; width: 100%; padding: 0; margin: 0; box-shadow: none; }
    header, form, #areaPix, footer, .form-header, .btn-print { display: none !important; }
    .result-box { display: block !important; border: none !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; background: white !important; }
}

@media (max-width: 850px) {
    nav ul { display: none; }
    .copyright-bar { flex-direction: column; gap: 0.5rem; text-align: center; }
}