.prediletas-cadastro {
    min-height: calc(100vh - 76px);
    padding: 50px 20px;
    background: #f5f5f5;
}
.prediletas-cadastro__container {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}
.prediletas-cadastro__progresso {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 40px;
}
.prediletas-cadastro__etapa {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.prediletas-cadastro__etapa span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dddddd;
    color: #666666;
    font-size: 12px;
    font-weight: 700;
}
.prediletas-cadastro__etapa small {
    color: #888888;
    font-size: 10px;
    white-space: nowrap;
}
.prediletas-cadastro__etapa--ativa span {
    background: #6d1d3a;
    color: #ffffff;
}
.prediletas-cadastro__etapa--ativa small {
    color: #6d1d3a;
    font-weight: 700;
}
.prediletas-cadastro__linha {
    flex: 1;
    height: 1px;
    margin: 15px 5px 0;
    background: #dddddd;
}
.prediletas-cadastro__cabecalho {
    margin-bottom: 30px;
}
.prediletas-cadastro__numero {
    display: block;
    margin-bottom: 8px;
    color: #6d1d3a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.prediletas-cadastro__cabecalho h1 {
    margin-bottom: 8px;
    color: #171717;
    font-size: 27px;
    line-height: 1.25;
}
.prediletas-cadastro__cabecalho p {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}
.prediletas-cadastro__erro {
    margin-bottom: 20px;
    padding: 12px 15px;
    border: 1px solid #e5b8c7;
    border-radius: 7px;
    background: #fff3f6;
    color: #8b1e40;
    font-size: 13px;
    line-height: 1.5;
}
.prediletas-cadastro__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.prediletas-cadastro__campo {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.prediletas-cadastro__campo label {
    color: #222222;
    font-size: 14px;
    font-weight: 600;
}
.prediletas-cadastro__campo input,
.prediletas-cadastro__campo select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d6d6d6;
    border-radius: 7px;
    background: #ffffff;
    color: #222222;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.prediletas-cadastro__campo input:focus,
.prediletas-cadastro__campo select:focus {
    border-color: #6d1d3a;
    box-shadow: 0 0 0 3px rgba(109, 29, 58, 0.1);
}
.prediletas-cadastro__campo small {
    color: #888888;
    font-size: 11px;
    line-height: 1.4;
}
.prediletas-cadastro__continuar {
    width: 100%;
    min-height: 50px;
    margin-top: 5px;
    border-radius: 7px;
    background: #6d1d3a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.prediletas-cadastro__continuar:hover {
    background: #812347;
    transform: translateY(-1px);
}
.prediletas-cadastro__login {
    margin-top: 25px;
    color: #777777;
    font-size: 13px;
    text-align: center;
}
.prediletas-cadastro__login a {
    color: #6d1d3a;
    font-weight: 700;
}
@media (max-width: 600px) {
    .prediletas-cadastro {
        min-height: calc(100vh - 64px);
        padding: 25px 12px;
    }
    .prediletas-cadastro__container {
        padding: 25px 18px;
        border-radius: 10px;
    }
    .prediletas-cadastro__progresso {
        margin-bottom: 30px;
    }
    .prediletas-cadastro__etapa small {
        display: none;
    }
    .prediletas-cadastro__linha {
        margin-top: 15px;
    }
    .prediletas-cadastro__cabecalho h1 {
        font-size: 23px;
    }
}

.prediletas-cadastro__linha--ativa {
    background: #6d1d3a;
}

.prediletas-cadastro__termos {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #666666;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}
.prediletas-cadastro__termos input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #6d1d3a;
}
.prediletas-cadastro__termos a {
    color: #6d1d3a;
    font-weight: 700;
}


.cadastro-camera {
    gap: 10px;
}

.cadastro-camera__descricao {
    margin: 0;
    color: #888888;
    font-size: 11px;
    line-height: 1.4;
}

.cadastro-camera__area {
    width: 100%;
    max-width: 430px;
    margin: 5px auto 0;
    overflow: hidden;
    border-radius: 10px;
    background: #171717;
    position: relative;
}

.cadastro-camera__video,
.cadastro-camera__preview {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #171717;
}

.cadastro-camera__preview {
    display: none;
}

.cadastro-camera__status {
    min-height: 18px;
    color: #777777;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.cadastro-camera__status.erro {
    color: #8b1e40;
}

.cadastro-camera__status.sucesso {
    color: #087443;
}

.cadastro-camera__acoes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cadastro-camera__botao {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #d6d6d6;
    border-radius: 7px;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cadastro-camera__botao:hover {
    background: #f5f5f5;
    border-color: #c8c8c8;
    transform: translateY(-1px);
}

.cadastro-camera__botao--principal {
    border-color: #6d1d3a;
    background: #6d1d3a;
    color: #ffffff;
}

.cadastro-camera__botao--principal:hover {
    border-color: #812347;
    background: #812347;
}

.cadastro-camera__botao--confirmar {
    border-color: #087443;
    background: #087443;
    color: #ffffff;
}

.cadastro-camera__botao--confirmar:hover {
    border-color: #075f37;
    background: #075f37;
}

.cadastro-camera__confirmacao {
    display: none;
    color: #087443;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.cadastro-camera__confirmacao.ativa {
    display: block;
}

.cadastro-camera__input {
    display: none !important;
}

.cadastro-camera__oculto {
    display: none !important;
}

.cadastro-camera__aviso {
    margin: -5px 0 0;
    color: #888888;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.cadastro-camera__canvas {
    display: none;
}

@media (max-width: 600px) {
    .cadastro-camera__area {
        max-width: 100%;
        border-radius: 8px;
    }

    .cadastro-camera__acoes {
        width: 100%;
        flex-direction: column;
    }

    .cadastro-camera__botao {
        width: 100%;
    }

    .cadastro-camera__status {
        font-size: 11px;
    }
}

/* Captura de identidade: nunca recortar a foto armazenada ou a prévia. */
.cadastro-camera__video,.cadastro-camera__preview { object-fit:contain; }
.cadastro-camera__area { background:#101319; }
.cadastro-camera__area--guiada::after { content:""; pointer-events:none; position:absolute; left:17%; right:17%; top:9%; bottom:9%; border:2px dashed rgba(255,255,255,.65); border-radius:48% 48% 42% 42%; box-shadow:0 0 0 1px rgba(0,0,0,.2); }
.cadastro-camera__area--documento::after { left:5%;right:5%;top:12%;bottom:12%;border-radius:12px; }
.cadastro-camera__area:has(.cadastro-camera__preview[style*="block"])::after { display:none; }
