
body {
    font-family: 'Inter', sans-serif!important;
    background-color: #0d47a1!important;
    min-height: 100vh!important;
}


/* Wrapper geral */
.container {
    max-width: 100%;
}

/* Desktop grande */
@media (min-width: 1200px) {

    .stepper-container,
    .card-prematricula {
        max-width: 1500px;   /* ajuste fino aqui */
        margin-left: auto;
        margin-right: auto;
    }
}


.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: #ffffff;
    z-index: 1050;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
}

.logo-cliente img {
    height: 44px;
    max-width: 140px;
    object-fit: contain;
}

.nome-cliente {
    font-size: 15px;
    white-space: nowrap;
}

.titulo-header {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.header-right {
    width: 160px; /* mantém o título perfeitamente centralizado */
}

/* Mobile */
@media (max-width: 576px) {
    .nome-cliente {
        display: none; /* esconde nome no mobile para não poluir */
    }

    .titulo-header {
        font-size: 16px;
    }

    .logo-cliente img {
        height: 38px;
    }

    .header-right {
        width: 80px;
    }
}


/* empurra o conteúdo para não ficar atrás da header */
.body-offset {
     padding-top: 84px; /* header (76) + respiro leve */
}

.foto-upload {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #f1f3f5;
    border: 2px dashed #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.foto-label {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-upload img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}


.icone-camera {
    font-size: 36px;
    color: #6c757d;
}

.foto-upload {
    cursor: pointer; /* seta vira mão */
    transition: all 0.25s ease;
}

.foto-upload:hover,
.foto-upload:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
    background-color: #f8fbff;
}

.foto-upload:hover .icone-camera,
.foto-upload:focus-within .icone-camera {
    color: #0d6efd;
    transform: scale(1.1);
}

.icone-camera {
    transition: all 0.25s ease;
}


.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px;
}

.btn-primary {
    border-radius: 12px;
    font-weight: 600;
}
@media (min-width: 992px) {
    .body-offset {
        padding-top: 80px;
    }
}
.tooltip-sem-cpf .tooltip-inner {
    font-size: 13px;
    padding: 8px 10px;
}

.stepper-container {
    width: 100%;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

/* STEP DESABILITADO – visível porém inativo */
.stepper-step.disabled {
    opacity: 1; /* remove o apagado excessivo */
    pointer-events: none;
}

/* Círculo desabilitado */
.stepper-step.disabled .stepper-circle {
    background-color: #9aa5b1; /* cinza azulado */
    color: #ffffff;
}

/* Texto desabilitado */
.stepper-step.disabled .stepper-label {
    color: #a4a8ac; /* cinza claro legível no fundo azul */
}

.stepper-step.disabled + .stepper-line,
.stepper-line {
    background-color: #8fa6c9;
}



.stepper-step.active .stepper-circle {
    background-color: #0d6efd;
    color: #fff;
}

.stepper-step.completed .stepper-circle {
    background-color: #38bc7f;
    color: #fff;
}

.stepper-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.stepper-label {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.stepper-line {
    width: 40px;
    height: 2px;
    background: #dee2e6;
    margin: 0 12px;
}

/* STEP CONCLUÍDO */
.stepper-step.completed .stepper-circle {
    background-color: #38bc7f; /* verde bootstrap */
    color: #ffffff;
}

.stepper-step.completed .stepper-label {
    color: #38bc7f;
    font-weight: 600;
}


/* Mobile */
@media (max-width: 576px) {
    .stepper-label {
        display: none;
    }
}

/* STEP ATIVO - TEXTO BRANCO NO DESKTOP */
@media (min-width: 992px) {
    .stepper-step.active .stepper-label {
        color: #ffffff;
    }
}


/* Mobile: esconde label (já tinha, reforçando) */
@media (max-width: 576px) {
    .stepper-label {
        display: none;
    }
}
.btn-step {
    min-width: 160px;
    height: 44px;
    font-weight: 600;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-step span {
    transition: transform 0.2s ease;
}

.btn-step:hover span {
    transform: translateX(-2px);
}

.btn-primary.btn-step:hover span {
    transform: translateX(2px);
}
.step {
    animation-duration: 0.35s;
    animation-fill-mode: both;
}

/* Avançar */
.step-enter-right {
    animation-name: slideInRight;
}

/* Voltar */
.step-enter-left {
    animation-name: slideInLeft;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* OBSERVAÇÃO OCULTA POR PADRÃO */
.obs-area {
    display: none;
}

.obs-area textarea {
    resize: none;
}

.mb-5.erro {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
}

/* ===== PAR-Q RADIO TOGGLE ===== */
.parq-toggle {
    display: inline-flex;
    border: 1.5px solid #0d6efd;
    border-radius: 8px;
    overflow: hidden;
}

.parq-toggle input {
    display: none;
}

.parq-toggle label {
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #0d6efd;
    background: #fff;
    transition: all 0.2s ease;
    user-select: none;
}

/* divisor visual */

.parq-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.parq-toggle label + input + label {
    border-left: 1px solid #0d6efd;
}

/* selecionado */
.parq-toggle input:checked + label {
    background: #0d6efd;
    color: #fff;
}

/* hover */
.parq-toggle label:hover {
    background: rgba(13, 110, 253, 0.08);
}
.mb-5.erro .parq-toggle {
    border-color: #dc3545;
}

.mb-5.erro .parq-toggle label {
    color: #dc3545;
}

.mb-5.erro .parq-toggle input:checked + label {
    background: #dc3545;
    color: #fff;
}

@media (min-width: 992px) {
    .step-title {
        width: 100%;
        display: block;
    }
}

/* Mobile: comportamento padrão (empilhado) */
.step-title {
    display: block;
}

/* Desktop: tudo na mesma linha */
@media (min-width: 992px) {
    .step-title {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .step-title h5 {
        margin-bottom: 0;
        white-space: nowrap;
    }

    .step-title small {
        font-size: 0.95rem;
        opacity: 0.85;
    }
}
.btn-outline-primary.active {
    background-color: var(--bs-primary);
    color: #fff;
}

/* =========================
   STEP ATIVO – UNDERLINE SIMPLES
========================= */

.stepper-step.active .stepper-label {
    position: relative;
    font-weight: 600;
}

/* underline curto */
.stepper-step.active .stepper-label::after {
    content: "";
    display: block;
    width: 26px;          /* controla o comprimento */
    height: 3px;          /* espessura */
    margin-top: 6px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* =========================
   BOTÕES DE STEP
========================= */
.btn-step-fixed {
    min-width: 180px;
    height: 48px;
    font-weight: 600;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* =========================
   MOBILE – NÃO ESTOURA
========================= */
@media (max-width: 576px) {

    .btn-step-fixed {
        width: 100%;          /* ocupa toda a largura */
        min-width: 100%;      /* remove largura fixa */
    }

    /* container dos botões */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 12px;
    }
}


/* Caixa do checkbox */
.resp-fin-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Estilo do checkbox */
.resp-fin-box .form-check-input {
    border: 1.5px solid rgba(255, 255, 255, 0.75); /* borda branca sutil */
    background-color: transparent;
}

/* Checked */
.resp-fin-box .form-check-input:checked {
    background-color: #ffffff;
    border-color: #ffffff;
}

/* Check icon azul */
.resp-fin-box .form-check-input:checked {
    --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='%230d6efd' d='M7.629 14.571 3.2 10.143l1.414-1.414 3.015 3.015 7.757-7.757 1.414 1.414z'/%3e%3c/svg%3e");
}

/* =========================
   MOBILE
========================= */
@media (max-width: 576px) {

    .step-title {
        flex-direction: column;
        align-items: flex-start; /* ⬅️ alinha tudo à esquerda */
        gap: 10px;
    }

    .resp-fin-box {
        justify-content: flex-start;
        margin-left: 0;
    }
}



/* BASE – sempre outline */
#btnContinuarStep3 {
    background-color: transparent !important;
    border: 1px solid #0d6efd !important;
    color: #0d6efd !important;
    font-weight: 600;
    opacity: 1 !important;
}

/* span interno */
#btnContinuarStep3 span {
    color: inherit !important;
}

/* DESABILITADO */
#btnContinuarStep3:disabled {
    background-color: transparent !important;
    border-color: silver !important;
    color: silver !important;
    cursor: not-allowed;
}

/* HOVER – somente quando habilitado */
#btnContinuarStep3:not(:disabled):hover {
    background-color: #0d6efd !important;
    color: #fff !important;
}

#btnContinuarStep3:not(:disabled):hover span {
    color: #fff !important;
}

/* Desktop / Tablet */
.btn-group-equal {
    display: flex;
    flex-wrap: nowrap;
}

.btn-group-equal .btn {
    flex: 1 1 0;
    min-width: 260px;   /* largura confortável no desktop */
    text-align: center;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 576px) {
    .btn-group-equal {
        width: 100%;
    }

    .btn-group-equal .btn {
        min-width: 0;      /* 🔥 remove trava */
        width: 100%;       /* ocupa linha */
        flex: 1 1 50%;     /* dois botões lado a lado */
    }
}

/* =========================
   ERRO DE VALIDAÇÃO — BOOTSTRAP 5.3+
========================= */

.form-control.is-invalid,
.form-select.is-invalid {
    --bs-border-color: #dc3545 !important;
    --bs-border-width: 2px !important;
    --bs-focus-ring-color: rgba(220,53,69,.25) !important;

    border-color: #dc3545 !important;
    border-width: 2px !important;
    background-image: none !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .2rem rgba(220,53,69,.25) !important;
}

/* força dentro do wizard */
.card-responsavel .form-control.is-invalid,
.responsavel-bloco .form-control.is-invalid {
    --bs-border-color: #dc3545 !important;
}
