/* Ajustes específicos da página de cadastro */
.page-cadastro {
    max-width: 780px;
    display: block;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
@media (min-width: 960px) {
    .page-cadastro { padding-top: 3rem; padding-bottom: 3rem; }
}

.cad-topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem;
    animation: fadeIn .7s ease-out both;
}

.cad-card { max-width: 780px; margin: 0 auto; }

.cad-head { text-align: center; }
.brand-accent {
    display: block; width: 40px; height: 4px;
    background: var(--black);
    margin: 0 auto 1rem;
    border-radius: 2px;
}
.cad-head h2 { font-size: 1.9rem; }
@media (min-width: 768px) { .cad-head h2 { font-size: 2.25rem; } }

/* Grid do formulário */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}
@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
}
.form-grid .full { grid-column: 1 / -1; }

/* Cabeçalho de seção */
.section-head {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: .75rem;
    margin-top: .75rem;
    animation: fadeIn .5s ease-out both;
}
.section-head .step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 999px;
    background: var(--black); color: #fff;
    font-size: .75rem; font-weight: 700;
}
.section-head h3 {
    font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--text-2);
}
.section-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* Select com chevron custom */
.input-wrap select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}
.select-chevron {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    width: 14px; height: 14px; color: var(--muted); pointer-events: none;
}

/* Ícone de check do CEP */
.check-icon {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%) scale(.8);
    width: 20px; height: 20px; color: var(--black);
    opacity: 0; transition: all .25s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}
.check-icon.visible { opacity: 1; transform: translateY(-50%) scale(1); }

.cep-feedback {
    display: block; font-size: .72rem; font-weight: 600;
    margin-top: 6px; min-height: 1em;
    transition: all .2s ease;
}
.cep-feedback.success { color: var(--text-2); }
.cep-feedback.error { color: #dc2626; }

.alert-success {
    background: #f0fdf4; border: 1px solid #86efac;
    color: #15803d; padding: .75rem 1rem; border-radius: 10px;
    font-size: .85rem; font-weight: 500; margin-bottom: 1rem;
    animation: fadeIn .3s ease-out;
}

.copy.center { text-align: center; margin-top: 2rem; }


        /* Estilos visuais para a validação do CPF */
        .cpf-feedback {
            font-size: 0.8rem;
            margin-top: 4px;
            display: block;
            font-weight: 500;
        }
        .cpf-feedback.valido {
            color: #22c55e; /* Verde */
        }
        .cpf-feedback.invalido {
            color: #ef4444; /* Vermelho */
        }
        input.cpf-invalido {
            border-color: #ef4444 !important;
        }
        input.cpf-valido {
            border-color: #22c55e !important;
        }
