﻿
@keyframes shake {
    0%, 100% {
        transform: translateX(0)
    }

    20%, 60% {
        transform: translateX(-6px)
    }

    40%, 80% {
        transform: translateX(6px)
    }
}

.checkbox-group.error {
    border: 1px solid #dc3545;
    border-radius: 6px;
    padding: 8px;
}

.form-group.error {
    border-radius: 6px;
}

    .form-group.error input,
    .form-group.error select,
    .form-group.error textarea {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 2px rgba(220,53,69,.15);
    }

.form-group.shake {
    animation: shake .45s
}

.form-group.shake {
    animation: shake 0.5s;
}

#conhecimentoOutrosWrapper {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

    #conhecimentoOutrosWrapper.show {
        max-height: 80px;
        opacity: 1;
        margin-top: 10px;
    }

#conhecimentoOutros {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.autorizacao-divulgacao {
    display: flex;
    align-items: center; /* alinha label e radios no centro */
    gap: 15px; /* espaço entre o texto e os radios */
}

.radio-group-inline {
    display: flex;
    gap: 10px; /* espaço entre Sim e Não */
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.grid-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px; /* espaçamento vertical e horizontal */
    list-style: none; /* remove bolinhas do UL */
    padding: 0;
    margin: 0;
}

.form-group.autorizacao {
    margin-bottom: 20px; /* espaço abaixo do bloco de radios */
}
    /* container dos radios */
    .form-group.autorizacao .checkbox-group {
        display: flex;
        gap: 20px; /* controla distância entre "Sim" e "Não" */
        align-items: center;
    }

    /* cada item radio + label */
    .form-group.autorizacao .checkbox-item {
        display: flex;
        align-items: center;
        gap: 3px; /* distância entre bolinha e o texto */
        margin: 0; /* remove margens extras */
    }
/* estilo base para radios */
.checkbox-item input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    background: #fff;
    border: 1px solid #000;
    border-radius: 50%;
    position: relative;
}

    .checkbox-item input[type="radio"]:checked::after {
        content: "";
        width: 8px;
        height: 8px;
        background: #000; /* cor da bolinha interna */
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.checkbox-group.five-columns {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px 1px;
}

.form-step[data-step="3"] .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* sempre 3 */
    gap: 15px 20px;
}
/* Ajusta proporção personalizada para cada campo */
.form-row.nome-cpf .form-group:first-child {
    flex: 2; /* Nome maior */
}

.form-row.nome-cpf .form-group:nth-child(2),
.form-row.nome-cpf .form-group:nth-child(3) {
    flex: 1; /* CPF e Nascimento menores */
}

.form-row.email-contato .form-group:first-child {
    flex: 2; /* Email maior */
}

.form-row.email-contato .form-group:nth-child(2),
.form-row.email-contato .form-group:nth-child(3) {
    flex: 1; /* Celular e Telefone menores */
}

.form-row.endereco .form-group {
    flex: 1; /* Estado, Cidade e Conheceu iguais */
}
/* BOTOES */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/*
                                                        .btn-next {
                                                            background: linear-gradient(135deg, #d19f68, #b8895a);
                                                            color: #fff;
                                                            box-shadow: 0 4px 10px rgba(209, 159, 104, 0.4);
                                                        }

                                                            .btn-next:hover {
                                                                background: linear-gradient(135deg, #b8895a, #9c734b);
                                                                transform: translateY(-2px);
                                                            } */

.btn-prev {
    background: #6c757d;
    color: #fff;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

    .btn-prev:hover {
        background: #5a6268;
        transform: translateY(-2px);
    }

.btn-next, .btn-submit {
    background: #28a745;
    color: #fff;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

    .btn-next:hover, .btn-submit:hover {
        background: #218838;
        transform: translateY(-2px);
    }

/* Steps */
.form-step {
    display: none;
    flex: 1;
    overflow: hidden;
}

    .form-step.active {
        display: block;
    }

.step-navigation {
    position: absolute;
    bottom: 20px; /* distância do rodapé */
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0; /* tira margin-top que empurrava */
  
}

    .step-navigation.single {
        justify-content: flex-end;
    }

    .step-navigation .btn-next.only {
        margin-left: auto;
    }

@@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0d0d0d 0%, #d19f68 100%) !important;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: linear-gradient(135deg, #0d0d0d 0%, #d19f68 100%), repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 20px) !important;
    background-blend-mode: overlay;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px;
}

/* Step 1 flexível quando ele estiver ativo */
.form-card:has(.form-step[data-step="1"].active) {
    height: auto;
    min-height: 500px;
    overflow-y: auto; /* se quiser rolar quando crescer */
}

.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    width: 800px; /* largura fixa */
    height: 700px; /* altura fixa */
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* corta caso o conteúdo passe do limite */
    justify-content: space-between; /* conteúdo em cima, botões embaixo */
    padding-bottom: 80px;
}




@@media (max-width: 900px) {
    .form-card {
        width: 100%; /* ocupa toda a largura disponível */
        height: auto; /* altura cresce conforme conteúdo */
        min-height: 500px; /* mantém um mínimo pra não ficar espremido */
    }
}

.form-content {
    flex: 1;
    overflow: visible; /* garante que nada será cortado */
    /*             padding-right: 0;
                                 */
}

.form-header {
    text-align: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

    .form-header img {
        width: 100px;
        height: auto;
        margin-bottom: 10px;
    }

    .form-header h2 {
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 5px;
        color: #222;
    }

    .form-header p {
        color: #555;
        font-size: 12px;
        margin: 0;
    }

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin: 0 5px;
    transition: all 0.3s ease;
}

    .step.active {
        background: #ecc799;
        color: #fff;
    }

    .step.completed {
        background: #d19f68;
        color: #fff;
    }

.step-line {
    width: 40px;
    height: 2px;
    background: #ddd;
    margin: 0 5px;
    align-self: center;
}

    .step-line.completed {
        background: #222324;
    }

.form-step[data-step="3"] .form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 20px;
}

.form-step {
    display: none;
}

    .form-step.active {
        display: block;
    }

    .form-step h4 {
        font-size: 16px;
        margin-bottom: 10px;
        color: #333;
        border-bottom: 2px solid #d19f68;
        padding-bottom: 3px;
    }

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
    padding: 0 6px;
}

.form-section {
    margin-bottom: 20px; /* espaço entre os blocos */
}

    .form-section label {
        font-weight: 460 !important;
        /*                 font-size: 17px !important;
                                                         */
    }


.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
    color: #333;
    font-size: 11px;
    margin-left: 2px;
    font-weight: 500 !important;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 11px;
    height: 28px;
    transition: border-color 0.3s ease;
    line-height: 1.4; /* melhora leitura */
}

    .form-group input:focus,
    .form-group select:focus {
        outline: none;
        border-color: #d19f68;
        box-shadow: 0 0 0 2px rgba(209, 159, 104, 0.2);
    }


/* Quando marcado, fica com fundo preto */
input[type="checkbox"]:checked {
    background-color: #000 !important;
    border-color: #000;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 14px; /* tamanho do V */
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centraliza */
    line-height: 1;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 por linha */
    gap: 10px 20px; /* espaço entre linhas e colunas */
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px; /* texto maior e legível */
    line-height: 1.4;
}

    /* Só os que têm input extra ficam em coluna */
    .checkbox-item.with-input {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }


        .checkbox-item.with-input .checkbox-label {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .checkbox-item.with-input input[type="text"] {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 13px;
            background: #fafafa;
            transition: all 0.3s ease;
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
        }

            .checkbox-item.with-input input[type="text"]:focus {
                border-color: #d19f68;
                box-shadow: 0 0 0 3px rgba(209, 159, 104, 0.25);
                outline: none;
                background: #fff;
            }

            .checkbox-item.with-input input[type="text"].show {
                height: auto;
                opacity: 1;
                margin-top: 5px;
            }


    .checkbox-item input[type="text"] {
        display: block; /* vira bloco, ocupa linha inteira */
        margin-top: 5px; /* espaço em cima */
        width: 100%; /* ocupa toda a largura */
    }

    .checkbox-item input[type="checkbox"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 15px;
        height: 15px;
        cursor: pointer;
        margin: 0;
        background: #fff; /* fundo branco quando vazio */
        border: 1px solid #000; /* borda preta */
        border-radius: 3px;
        background: #fff;
        position: relative;
    }

    .checkbox-item label {
        display: block;
        font-weight: 500 !important;
        margin-bottom: 3px;
        color: #333;
        font-size: 12px;
        margin-left: 2px;
    }

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px; /* mais arredondado */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-next, .btn-prev, .btn-submit {
    border: none;
    border-radius: 8px; /* menos arredondado */
    padding: 8px 16px; /* reduzido */
    margin: 8px 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px; /* menor */
    transition: all 0.2s ease;
}



/* Voltar */
.btn-prev {
    background: #e0e0e0;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .btn-prev:hover {
        background: #cfcfcf;
        transform: translateY(-1px);
    }

.resumo-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 5px;
}

.form-step, p {
    margin-bottom: 3px;
}

.resumo-section h6 {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
    margin-top: 8px;
}

.resumo-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resumo-section li {
    font-size: 10px;
    margin-bottom: 3px;
    color: #555;
}

.error-message {
    color: #dc3545;
    font-size: 9px;
    margin-top: 2px;
    display: none;
}

.form-group.error input,
.form-group.error select {
    border-color: #dc3545;
}

.form-group.error .error-message {
    display: block;
}

@@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
}
