.cad-container {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    padding: 30px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    border: 1px solid #2c4786;
}

.cad-header {
    text-align: center;
    margin-bottom: 25px;
}

.foto-perfil {
    width: 100px;
    height: 100px;
    border: 2px solid #2c4786;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    background-color: white;
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

.form-abas label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}

.form-abas input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.aba {
    display: flex;
    flex-direction: column;
}

.botoes-navegacao {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-proximo {
    background-color: #2c4786;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.btn-proximo:hover {
    background-color: #1b305e;
}

.input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
}

#sugestoes-igreja {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

#sugestoes-igreja li {
    padding: 10px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sugestoes-igreja li:hover {
    background-color: #f0f0f0;
}

.btn-voltar {
    background-color: #ffffff;
    color: #2c4786;
    border: 1px solid #2c4786;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.btn-voltar:hover {
    background-color: #f0f0f0;
}

/* Menu retrátil endereço */
.toggle-grupo {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.icone {
    display: inline-block;
    transition: transform 0.3s ease;
}

.icone.rotacionado {
    transform: rotate(180deg);
}

.toggle-grupo .icone {
    transition: transform 0.3s ease;
}

.grupo-retratil .conteudo-grupo {
    display: none;
    margin-bottom: 20px;
}
.grupo-retratil.expanded .conteudo-grupo {
    display: block;
}
.grupo-retratil.expanded .icone {
    transform: rotate(180deg);
}

select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.botoes-navegacao.linha-dupla {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.botoes-navegacao.linha-dupla .btn-voltar {
    margin-right: auto;
}

.botoes-navegacao.linha-dupla .btn-proximo {
    margin-left: auto;
}

/* MODAL de seleção (galeria/câmera) */
.modal-foto {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-conteudo {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    margin: 0 auto;
    max-width: 400px;
}
.modal-conteudo button {
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Modal de recorte */
.editor-foto {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
}

.editor-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background-color: #000; /* opcional para fundo preto */
}

#img-crop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    cursor: move;
    touch-action: none; /* essencial para mobile */
}


.mascara-circular {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 10;
}

.editor-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

#zoom-range {
    width: 300px;
    margin: 20px auto;
    display: block;
}

.botoes-editor {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.botoes-editor button {
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.botoes-editor button:first-child {
    background-color: #2c4786;
    color: #fff;
}

.botoes-editor button:last-child {
    background-color: #ccc;
    color: #000;
}
.form-abas label.label-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-weight: bold;
}
.grupo-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
}

.label-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}
.label-check span {
    white-space: nowrap;
}
