/* ============================================
   CSS DO FORMULÁRIO DE CADASTRO
   ============================================ */

.header-simples {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow);
}

.header-simples .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-login {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.link-login:hover {
    color: var(--secondary-color);
}

/* CADASTRO */
.cadastro-section {
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
    background: #f8f9fa;
}

.container-cadastro {
    max-width: 900px;
    margin: 0 auto;
}

/* PROGRESSO DAS ETAPAS */
.progresso-etapas {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    overflow-x: auto;
    padding: 10px 0;
}

.etapa-indicador {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s;
    flex: 1;
    min-width: 80px;
}

.etapa-indicador.ativa,
.etapa-indicador.completa {
    opacity: 1;
}

.etapa-numero {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
}

.etapa-indicador.ativa .etapa-numero {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

.etapa-indicador.completa .etapa-numero {
    background: var(--secondary-color);
    color: var(--white);
}

.etapa-label {
    font-size: 12px;
    text-align: center;
    color: var(--text-dark);
    font-weight: 500;
}

/* CONTEÚDO DAS ETAPAS */
.etapa-conteudo {
    display: none;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-height: 500px;
}

.etapa-conteudo.ativa {
    display: block;
    animation: fadeIn 0.3s;
}

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

.etapa-conteudo h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.etapa-descricao {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 16px;
}

/* FORM GROUPS */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 15px;
}

.hint {
    font-weight: 400;
    color: var(--text-light);
    font-size: 13px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    text-align: right;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

.form-input-file {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--light-bg);
    cursor: pointer;
    transition: all 0.3s;
}

.form-input-file:hover {
    border-color: var(--secondary-color);
    background: #fff;
}

.file-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

.preview-foto {
    margin-top: 15px;
    text-align: center;
}

.preview-foto img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

/* RADIO E CHECKBOX */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-content {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.3s;
}

.radio-card input[type="radio"]:checked + .radio-content {
    border-color: var(--secondary-color);
    background: #e8f5e9;
}

.radio-content strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.radio-content span {
    font-size: 13px;
    color: var(--text-light);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-item:hover {
    border-color: var(--secondary-color);
    background: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked {
    accent-color: var(--secondary-color);
}

.checkbox-item-large {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.checkbox-item-large input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-item-large span {
    line-height: 1.6;
}

.checkbox-item-large a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-item-large a:hover {
    text-decoration: underline;
}

/* INFO BOXES */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-box svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-box strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 15px;
}

.info-box p {
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.termos-box {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
}

.termos-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.termos-box ul {
    list-style: none;
}

.termos-box li {
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 15px;
}

.aviso-final {
    background: #fff3cd;
    padding: 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--warning-color);
}

.aviso-final strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 16px;
}

.aviso-final p {
    color: var(--text-dark);
    font-size: 14px;
    margin: 8px 0;
}

/* NAVEGAÇÃO */
.navegacao-etapas {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn-voltar,
.btn-proximo,
.btn-finalizar {
    padding: 16px 40px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-voltar {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-voltar:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-proximo,
.btn-finalizar {
    background: var(--secondary-color);
    color: var(--white);
    margin-left: auto;
}

.btn-proximo:hover,
.btn-finalizar:hover {
    background: #229954;
    transform: translateY(-2px);
}

.btn-finalizar {
    background: var(--primary-color);
}

.btn-finalizar:hover {
    background: #1a2832;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .progresso-etapas {
        justify-content: flex-start;
    }
    
    .etapa-conteudo {
        padding: 25px 20px;
    }
    
    .etapa-conteudo h2 {
        font-size: 24px;
    }
    
    .radio-group {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .navegacao-etapas {
        flex-direction: column;
    }
    
    .btn-proximo,
    .btn-finalizar {
        margin-left: 0;
    }
}
