﻿
html, body {
    min-height: 100%;
}

/* ====== AJUSTES ESPECÍFICOS DAS LARGURAS ANTIGAS ====== */
.inputs_rua,
.inputs_numero,
.inputs_complemento,
.inputs_bairro {
    width: 100% !important; /* Agora o grid controla as larguras */
}

/* ---------- LAYOUT GERAL ---------- */
.multi-step-card {
    max-width: 1000px;
    margin: 40px auto 80px;
    padding: 32px 32px 40px;
    background: #f7f7fb;
    border-radius: 24px;
    box-shadow: 1px 1px 10px 1px #CCC;
}

h2 {
    margin: 0px 0px 10px 0px;
    text-align: center;
    color: #6b7280;
}

.multi-step-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0;
}

.multi-step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
}

.multi-step-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

    .multi-step-subtitle span {
        font-weight: 500;
    }

/* ---------- INDICADOR DE STEPS ---------- */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    gap: 10px;
}

.steps-indicator__item {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #9ca3af;
    position: relative;
    white-space: nowrap;
}

    .steps-indicator__item::after {
        content: "";
        position: absolute;
        left: 0;
        right: -14px;
        top: 50%;
        height: 2px;
        background: #e5e7eb;
        z-index: 0;
    }

    .steps-indicator__item:last-child::after {
        display: none;
    }

.steps-indicator__circle {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ffffff;
}

.steps-indicator__label {
    position: relative;
    z-index: 1;
}

.steps-indicator__item.is-active .steps-indicator__circle {
    border-color: #f94777;
    background: #3641eb;
    color: #fff;
}

.steps-indicator__item.is-active {
    color: #4b5563;
    font-weight: 500;
}

.steps-indicator__item.is-complete .steps-indicator__circle {
    border-color: #00ff5e;
    background: #1ca24e;
    color: #fff;
}

.steps-indicator__item.is-complete {
    color: #16a34a;
    font-weight: 500;
}

    .steps-indicator__item.is-complete::after {
        background: #22c55e;
    }

/* ---------- STEPS (TELAS) ---------- */
.form-steps-wrapper {
    margin-top: 26px;
}

.form-step {
    display: none;
    animation: fadeIn 0.25s ease-out;
}

    .form-step.is-active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- GRIDS / CAMPOS ---------- */
.step-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
}

.step-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 22px;
}

.step-grid-1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.input-container {
    width: 100%;
}

.input-container3 {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.radios-colab {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    align-items: center;
    justify-content: center;
}

.label-radio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.input-label {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 5px;
    margin-left: 4px;
}

.input-container input,
.input-container select {
    width: 100%;
    border-radius: 999px;
    border: 2px solid #c4b5fd;
    padding: 10px 18px;
    font-size: 0.9rem;
    outline: none;
    background: #fdfcff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

    .input-container input::placeholder {
        color: #9ca3af;
        font-size: 0.85rem;
    }

    .input-container input:focus,
    .input-container select:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.20);
        background: #ffffff;
    }

    .input-container input[readonly],
    .input-container select[readonly] {
        background: #e5e7eb;
    }


.input-container2 input,
.input-container2 select {
    width: 7%;
    display: flex;
    border-radius: 999px;
    border: 2px solid #c4b5fd;
    padding: 0;
    font-size: 0.9rem;
    outline: none;
    background: #fdfcff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s;
    justify-content: center;
}

    .input-container2 input::placeholder {
        color: #9ca3af;
        font-size: 0.85rem;
    }

    .input-container2 input:focus,
    .input-container2 select:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.20);
        background: #ffffff;
    }

    .input-container2 input[readonly],
    .input-container2 select[readonly] {
        background: #e5e7eb;
    }

input[type="checkbox"] {
    width: 30px;
    height: 15px;
    cursor: pointer;
}



.input-container3 input,
.input-container3 select {
    width: 50%;
    display: flex;
    border-radius: 999px;
    border: 2px solid #c4b5fd;
    padding: 0;
    font-size: 0.9rem;
    outline: none;
    background: #fdfcff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s;
    justify-content: center;
}

    .input-container3 input::placeholder {
        color: #9ca3af;
        font-size: 0.85rem;
    }

    .input-container3 input:focus,
    .input-container3 select:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.20);
        background: #ffffff;
    }

    .input-container3 input[readonly],
    .input-container3 select[readonly] {
        background: #e5e7eb;
    }

/* ---------- SENHA / BOTÃO OLHO ---------- */
.senha-container {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 999px;
    border: 2px solid #c4b5fd;
    padding-right: 6px;
}

    .senha-container input {
        border: none;
        border-radius: 999px 0 0 999px;
        padding-right: 0;
        background: #fdfcff;
    }

    .senha-container button {
        border: none;
        background: transparent;
        cursor: pointer;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        color: #6b7280;
    }

        .senha-container button:hover {
            color: #4b5563;
        }

#senhaErro {
    margin-top: -2px;
    margin-bottom: 8px;
    text-align: center;
}

/* ---------- TERMOS ---------- */
.aceita-termos-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #4b5563;
    justify-content: center;
}

    .aceita-termos-container input[type=checkbox] {
        margin-top: 2px;
    }

    .aceita-termos-container a {
        color: #6366f1;
        text-decoration: underline;
    }

/* ---------- BARRA DE AÇÕES (BOTÕES) ---------- */
.form-login__acoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.btn-step {
    border-radius: 999px;
    border: none;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-step--secondary {
    background: #e5e7eb;
    color: #374151;
}

    .btn-step--secondary:hover {
        background: #d1d5db;
    }

.btn-step--primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 10px 26px rgba(79, 70, 229, 0.45);
}

    .btn-step--primary:hover {
        background: linear-gradient(135deg, #4338ca, #6d28d9);
        box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55);
    }

.btn-step:active {
    transform: translateY(1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

/* ---------- CAMPOS INVÁLIDOS ---------- */
.campo-invalido input,
.campo-invalido select,
input.campo-invalido,
select.campo-invalido {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

#cepErro {
    margin-bottom: 4px;
}

/* ========== MODAIS CPF (INVÁLIDO / JÁ CADASTRADO) ========== */
.popup,
.popup-cpf {
    display: none; /* controlado via JS */
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.popup-content,
.popup-content-cpf {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 26px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    text-align: center;
}

    .popup-content p,
    .popup-content-cpf p {
        margin: 10px 0 18px;
        color: #374151;
        font-size: 0.9rem;
    }

.botoes-cpf {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.botao-continuar,
.botao-voltar,
#closePopup-cpf {
    border-radius: 999px;
    border: none;
    padding: 8px 18px;
    font-size: 0.85rem;
    cursor: pointer;
}

.botao-continuar {
    background: #4f46e5;
    color: #fff;
}

.botao-voltar,
#closePopup-cpf {
    background: #e5e7eb;
    color: #111827;
}

@media (max-width: 992px) {
    h2 {
        margin: 0px 0px 5px 0px;
        font-size: 1.3rem;
    }
}
/* ========== RESPONSIVO (CELULAR) ========== */
@media (max-width: 768px) {
    .multi-step-card {
        margin: 35px auto 40px;
        padding: 22px 18px 28px;
        border-radius: 18px;
    }

    .multi-step-title {
        font-size: 1.1rem;
    }

    .multi-step-subtitle {
        font-size: 0.78rem;
    }

    .steps-indicator {
        flex-direction: column;
        align-items: flex-start;
    }

    .steps-indicator__item {
        justify-content: flex-start;
    }

        .steps-indicator__item::after {
            display: none;
        }

    .step-grid-2,
    .step-grid-3 {
        grid-template-columns: 1fr; /* todos campos empilhados no mobile */
    }

    .form-login__acoes {
        justify-content: space-between;
    }

    .aceita-termos-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .form-login__acoes {
        flex-direction: row;
        gap: 8px;
    }

    .btn-step {
        flex: 1;
        padding-inline: 16px;
    }

    .popup-content,
    .popup-content-cpf {
        padding: 20px 18px;
    }
}


/* Mais espaço no fim do formulário no mobile */
@media (max-width: 768px) {
    .form-login {
        padding-bottom: 140px; /* espaço para o teclado */
    }

    /* Step 4 tem reCAPTCHA + checkbox, então dou um pouco mais ainda */
    .form-step[data-step="4"] {
        padding-bottom: 180px;
    }
}