/* ============================================================
   style.css — Processo Seletivo | Consultor(a) Comercial
   Design: corporativo, limpo, responsivo
   Paleta: azul, cinza, branco
   ============================================================ */

/* ── Reset e base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    background: #f0f4f8;
    color: #2d3748;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Container ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    background: linear-gradient(135deg, #1a2e4a 0%, #1a6bbf 100%);
    color: #fff;
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
}

.header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-tag {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: #a8d4ff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .25rem .7rem;
    border-radius: 100px;
    margin-bottom: .6rem;
}

.header-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.header-badge {
    background: #28a745;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .35rem .85rem;
    border-radius: 100px;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: .3rem;
}

/* ── Main content ─────────────────────────────────────────── */
.main-content {
    padding-bottom: 3rem;
}

/* ── Alerta de erros ──────────────────────────────────────── */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

.alert-erro {
    background: #fff5f5;
    border-left: 4px solid #e53e3e;
    color: #c53030;
}

.alert-erro strong {
    display: block;
    margin-bottom: .5rem;
    font-size: .95rem;
}

.alert-erro ul {
    padding-left: 1.2rem;
}

.alert-erro li {
    margin-bottom: .25rem;
}

/* ── Cards / Seções ───────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #e8ecf1;
    background: #fafbfd;
}

.card-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: #1a6bbf;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 6px;
}

.card-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a2e4a;
}

.card-body {
    padding: 1.5rem;
}

/* ── Seção Apresentação ───────────────────────────────────── */
.vaga-descricao p {
    color: #4a5568;
    font-size: .95rem;
    margin-bottom: .75rem;
}

.vaga-lista {
    list-style: none;
    padding: 0;
    margin: .75rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.vaga-lista li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .93rem;
    color: #2d3748;
}

.vaga-lista li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: #1a6bbf;
    border-radius: 50%;
}

.vaga-aviso {
    background: #ebf4ff;
    border-left: 3px solid #1a6bbf;
    padding: .75rem 1rem;
    border-radius: 0 6px 6px 0;
    font-size: .88rem;
    color: #2c5282;
    margin-top: .5rem !important;
}

/* ── Section intro ────────────────────────────────────────── */
.section-intro {
    color: #4a5568;
    font-size: .93rem;
    margin-bottom: 1.25rem;
    padding: .75rem 1rem;
    background: #f7f9fc;
    border-radius: 6px;
    border-left: 3px solid #a0aec0;
}

.disc-intro {
    border-left-color: #1a6bbf;
    background: #ebf4ff;
    color: #2c5282;
}

/* ── Grid de formulário ───────────────────────────────────── */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-bottom: 1.1rem;
    flex: 1 1 100%;
}

/* Colunas responsivas */
.col-lg-2 { flex: 1 1 calc(16.66% - 1rem); min-width: 80px; }
.col-lg-4 { flex: 1 1 calc(33.33% - 1rem); min-width: 140px; }
.col-lg-5 { flex: 1 1 calc(41.66% - 1rem); min-width: 160px; }
.col-lg-6 { flex: 1 1 calc(50% - 1rem);    min-width: 180px; }
.col-lg-8 { flex: 1 1 calc(66.66% - 1rem); min-width: 200px; }

/* ── Labels ───────────────────────────────────────────────── */
label {
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
}

.req {
    color: #e53e3e;
    margin-left: 2px;
}

/* ── Inputs, selects, textareas ───────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: .6rem .9rem;
    font-size: .9rem;
    font-family: inherit;
    color: #2d3748;
    background: #fff;
    border: 1.5px solid #d1d9e0;
    border-radius: 6px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #1a6bbf;
    box-shadow: 0 0 0 3px rgba(26,107,191,.13);
}

input.invalido,
select.invalido,
textarea.invalido {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229,62,62,.1);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234a5568' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2.5rem;
}

/* ── Radio groups ─────────────────────────────────────────── */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem;
    border: 1.5px solid #d1d9e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 500;
    color: #374151;
    transition: border-color .2s, background .2s;
    user-select: none;
}

.radio-label:hover {
    border-color: #1a6bbf;
    background: #ebf4ff;
}

.radio-label input[type="radio"] {
    accent-color: #1a6bbf;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.radio-label:has(input:checked) {
    border-color: #1a6bbf;
    background: #ebf4ff;
    color: #1a4a8a;
}

/* ── DISC ─────────────────────────────────────────────────── */
.disc-questao {
    background: #fafbfd;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
    transition: border-color .2s;
}

.disc-questao:last-child {
    margin-bottom: 0;
}

.disc-questao.respondida {
    border-color: #48bb78;
    background: #f0fff4;
}

.disc-questao.invalida {
    border-color: #e53e3e;
    background: #fff5f5;
}

.disc-enunciado {
    font-size: .9rem;
    color: #2d3748;
    margin-bottom: .8rem;
    line-height: 1.5;
}

.disc-opcoes {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.disc-opcao {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .55rem .85rem;
    border: 1.5px solid #d1d9e0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    font-size: .88rem;
    font-weight: normal;
    color: #2d3748;
    user-select: none;
}

.disc-opcao:hover {
    border-color: #1a6bbf;
    background: #ebf4ff;
}

.disc-opcao:has(input:checked) {
    border-color: #1a6bbf;
    background: #dbeafe;
}

.disc-opcao input[type="radio"] {
    accent-color: #1a6bbf;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.disc-letra {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #e2e8f0;
    color: #2d3748;
    font-size: .75rem;
    font-weight: 700;
    border-radius: 4px;
}

.disc-opcao:has(input:checked) .disc-letra {
    background: #1a6bbf;
    color: #fff;
}

.disc-texto {
    line-height: 1.5;
}

/* ── Card LGPD ────────────────────────────────────────────── */
.card-lgpd .card-header {
    background: #fffbeb;
    border-bottom-color: #fde68a;
}

.lgpd-texto {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
}

.lgpd-texto p {
    font-size: .88rem;
    color: #4a3f00;
    line-height: 1.65;
    margin-bottom: .6rem;
}

.lgpd-texto p:last-child {
    margin-bottom: 0;
}

.lgpd-check {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    color: #374151;
    user-select: none;
}

.lgpd-check input[type="checkbox"] {
    accent-color: #1a6bbf;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.lgpd-check.invalida {
    color: #e53e3e;
}

/* ── Botão de envio ───────────────────────────────────────── */
.form-submit-wrap {
    text-align: center;
    padding: 1rem 0 .5rem;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 2.5rem;
    background: linear-gradient(135deg, #1a6bbf, #1e88e5);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(26,107,191,.35);
    transition: transform .15s, box-shadow .15s, background .2s;
    letter-spacing: .01em;
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #145ea8, #1976d2);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26,107,191,.4);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26,107,191,.3);
}

.btn-submit:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.submit-nota {
    margin-top: .75rem;
    font-size: .82rem;
    color: #718096;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: #1a2e4a;
    color: #a0aec0;
    text-align: center;
    padding: 1.25rem 0;
    font-size: .82rem;
    margin-top: 1rem;
}

/* ── CEP com status ───────────────────────────────────────── */
.cep-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.cep-wrap input {
    flex: 1;
}

.cep-status {
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: 0;
}

.cep-loading { color: #718096; }
.cep-ok      { color: #2e7d32; }
.cep-erro    { color: #e53e3e; }

.campo-hint {
    font-size: .78rem;
    color: #718096;
    margin-top: .15rem;
    display: block;
}

/* ── Upload de currículo ──────────────────────────────────── */
.file-upload-wrap {
    border: 2px dashed #c8d5e0;
    border-radius: 8px;
    transition: border-color .2s, background .2s;
}

.file-upload-wrap:hover,
.file-upload-wrap.tem-arquivo {
    border-color: #1a6bbf;
    background: #f0f7ff;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.5rem 1rem;
    cursor: pointer;
    text-align: center;
}

.file-upload-label svg {
    width: 32px;
    height: 32px;
    color: #1a6bbf;
    opacity: .7;
}

.file-upload-txt {
    font-size: .9rem;
    font-weight: 600;
    color: #1a6bbf;
}

.file-upload-tipos {
    font-size: .78rem;
    color: #718096;
}

/* Esconde o input nativo, o label faz o clique */
.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Linha de confirmação do arquivo selecionado */
.file-nome-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    background: #f0fff4;
    border-top: 1px solid #c6f6d5;
    border-radius: 0 0 6px 6px;
    font-size: .85rem;
    color: #276749;
    font-weight: 500;
}

.file-nome-wrap svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.file-nome-wrap span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#btn-remover-arquivo {
    background: none;
    border: none;
    cursor: pointer;
    padding: .2rem;
    color: #718096;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: color .15s, background .15s;
    flex-shrink: 0;
}

#btn-remover-arquivo svg {
    width: 14px;
    height: 14px;
}

#btn-remover-arquivo:hover {
    color: #e53e3e;
    background: #fff5f5;
}

/* ── Responsivo — telas pequenas ──────────────────────────── */
@media (max-width: 640px) {
    .header-title {
        font-size: 1.35rem;
    }

    .card-header {
        padding: .9rem 1.1rem;
    }

    .card-body {
        padding: 1.1rem 1rem;
    }

    .col-lg-2,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-8 {
        flex: 1 1 100%;
        min-width: 0;
    }

    .disc-opcoes {
        gap: .35rem;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .radio-group {
        gap: .4rem;
    }
}
