* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f6fb;
    color: #1f2333;
    line-height: 1.5;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 20px;
}
.header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #1F3BB1;
    margin-bottom: 6px;
}
.header .logo-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #1F3BB1;
}
.header .subtitle {
    font-size: 26px;
    font-weight: 700;
    color: #1f2333;
}
.header .lede {
    color: #5b6178;
    font-size: 14.5px;
    max-width: 46ch;
    margin-top: 6px;
}

.main-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.card {
    background: #ffffff;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 1px 2px rgba(31,35,51,0.04), 0 8px 24px -16px rgba(31,35,51,0.15);
}

.card-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card-description { color: #5b6178; font-size: 14px; margin-bottom: 22px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: #333850; }
.form-input, .form-control, select.form-control {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #dcdee8;
    border-radius: 8px;
    font-size: 14.5px;
    font-family: inherit;
    color: #1f2333;
    background: #fff;
    transition: border-color .15s;
}
.form-input:focus, .form-control:focus { outline: none; border-color: #1F3BB1; }
textarea.form-control { resize: vertical; min-height: 90px; }
textarea#texto { min-height: 220px; }
.char-count { font-size: 12px; color: #9297a8; margin-top: 4px; text-align: right; }

.info-box {
    background: #eef1fd;
    border: 1px solid #c7d0f7;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #2c3a8f;
}

.btn-submit, .btn-primary {
    width: 100%;
    padding: 13px 18px;
    background: #1F3BB1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
    text-decoration: none;
}
.btn-submit:hover, .btn-primary:hover { background: #17307e; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.loading-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    text-align: center;
    gap: 14px;
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid #e4e6ef;
    border-top-color: #1F3BB1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #5b6178; font-size: 14px; }

.result-area { display: none; margin-top: 26px; }

.score-hero {
    text-align: center;
    padding: 22px 0 6px;
}
.score-hero .score-number { font-size: 48px; font-weight: 800; color: #1F3BB1; line-height: 1; }
.score-hero .score-scale { font-size: 15px; color: #9297a8; }
.score-hero .score-banca { font-size: 13px; color: #5b6178; margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }

.competencias { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.competencia-card {
    border: 1px solid #e4e6ef;
    border-radius: 10px;
    padding: 14px 16px;
}
.competencia-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 10px; }
.competencia-nome { font-weight: 600; font-size: 14.5px; }
.competencia-nota { font-family: inherit; font-weight: 700; font-size: 14px; color: #1F3BB1; white-space: nowrap; }
.competencia-bar { height: 6px; border-radius: 4px; background: #eceefa; overflow: hidden; margin-bottom: 8px; }
.competencia-bar-fill { height: 100%; background: #1F3BB1; border-radius: 4px; }
.competencia-feedback { font-size: 13.5px; color: #5b6178; }

.pontos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
@media (max-width: 560px) { .pontos-grid { grid-template-columns: 1fr; } }
.pontos-box h4 { font-size: 13.5px; margin-bottom: 8px; }
.pontos-box.fortes h4 { color: #2E6E52; }
.pontos-box.melhorar h4 { color: #AE5A1E; }
.pontos-box ul { padding-left: 18px; font-size: 13.5px; color: #333850; }
.pontos-box li { margin-bottom: 4px; }

.comentario-geral {
    background: #f9fafc;
    border: 1px solid #e4e6ef;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    color: #333850;
    margin-bottom: 22px;
}
.comentario-geral h4 { font-size: 13.5px; margin-bottom: 6px; }

.footer {
    text-align: center;
    color: #9297a8;
    font-size: 12.5px;
    padding: 20px 0 40px;
}
