/* Estilos gerais */
:root {
    --primary-color: #1b1b1b;
    --secondary-color: #1b1b1b;
    --accent-color: #ff6b00;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #555;
    --text-color: #333;
    --white: #fff;
}

body {
    font-family: 'Poppins', sans-serif !important;
    background-color: var(--primary-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
}


.container {
    max-width: 500px !important;
    width: 100%;
    margin-top: 30px;
    padding: 0px 30px 30px 30px !important;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin: 1rem;
}

.logo-container {
    text-align: center;
    margin: 30px 0px 10px 0px;
}

.logo {
    max-width: 200px;
    height: auto;
    margin: 20px 0px 10px 0px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Progresso */
.progresso {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
    counter-reset: step;
}

.progresso::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--medium-gray);
    z-index: 1;
    transform: translateY(-50%);
}

.passo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.passo::before {
    counter-increment: step;
    content: counter(step);
}

.passo.ativo {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.passo.completo {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Etapas do formulário */
.etapa {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.etapa h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1b1b1b;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Campos do formulário */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 27, 27, 0.1);
}

.form-group input[readonly] {
    background-color: var(--light-gray);
    cursor: not-allowed;
}

/* Controle de senha */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--dark-gray);
    padding: 0.5rem;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.regras-senha {
    display: block;
    margin-top: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Preview de documentos */
.preview {
    margin-top: 1rem;
    text-align: center;
}

.preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid var(--medium-gray);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Botões */
.btn-continuar,
.btn-finalizar {
    width: 100%;
    padding: 0.9rem;
    background-color: #1b1b1b;
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-continuar:hover,
.btn-finalizar:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-continuar:active,
.btn-finalizar:active {
    transform: translateY(0);
}

.btn-continuar[disabled] {
    background-color: var(--medium-gray);
    cursor: not-allowed;
    transform: none !important;
}

/* Loading e feedback */
.loading {
    color: var(--dark-gray);
    font-style: italic;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Overlay de loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .logo {
        max-width: 160px;
    }
    
    .passo {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .etapa h2 {
        font-size: 1.3rem;
    }
}

/* Animações extras */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-finalizar:hover {
    animation: none;
}