/* LUCIFER/static/css/registro.css */
/* ===================================================
    🧭 ESTILOS DO REGISTRO DE FILIADOS (REGISTRO.HTML)
=================================================== */

/* RESET GERAL - SOMENTE UMA VEZ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ESTILOS PARA HTML E BODY - CONSOLIDADOS */
html, body {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #f0f0f0;
}

body.registration-page-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
}

/* LOGO FLUTUANTE */
.floating-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 100px;
    height: auto;
    z-index: 1000;
    opacity: 0.9;
}

/* CONTAINER PRINCIPAL DO FORMULÁRIO */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    background-color: #111;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(227, 181, 5, 0.3);
    flex-shrink: 0;
    width: calc(100% - 4rem);
}

/* SEÇÃO INTRODUTÓRIA */
.intro h1 {
    font-size: 2rem;
    color: #e3b505;
    margin-bottom: 1rem;
    text-align: center;
}

.intro p {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

hr {
    border: none;
    height: 1px;
    background-color: #333;
    margin: 2rem 0;
}

/* FORMULÁRIO */
form.formulario {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form.formulario h2 {
    color: #e3b505;
    font-size: 1.4rem;
    margin-top: 2rem;
    text-align: center;
}

form.formulario input,
form.formulario select,
form.formulario textarea {
    width: 100%;
    padding: 1rem;
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form.formulario input:focus,
form.formulario select:focus,
form.formulario textarea:focus {
    border-color: #e3b505;
    outline: none;
    box-shadow: 0 0 0 2px rgba(227, 181, 5, 0.5);
}

form.formulario textarea {
    min-height: 120px;
    resize: vertical;
}

form.formulario label {
    margin-top: 1rem;
    color: #bbb;
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

form.formulario button[type="submit"] {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: #e3b505;
    color: #111;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: fit-content;
    align-self: center;
    font-size: 1.1rem;
}

form.formulario button[type="submit"]:hover {
    background-color: #cf9f03;
    transform: translateY(-2px);
}

/* Mensagens de erro para CEP/CPF */
.text-red-400 {
    color: #f87171;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

/* A CLASSE HIDDEN CORRIGIDA */
.hidden {
    display: none !important;
}

/* TERMOS E CONDIÇÕES */
.termos-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.btn-termos {
    padding: 0.7rem 1.2rem;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-termos:hover {
    background-color: #666;
    transform: translateY(-1px);
}

.check-termos {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    user-select: none;
    cursor: pointer;
    line-height: 1.3;
}

.check-termos input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #e3b505;
    border: 1px solid #777;
    border-radius: 4px;
}

/* ESTILOS DO MODAL (NOVO) */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    overflow: auto;
    display: flex;
}

.modal-content {
    background-color: #111;
    margin: 2rem;
    padding: 2.5rem;
    border: 1px solid #444;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    color: #eee;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(227, 181, 5, 0.4);
}

.modal-content h2 {
    color: #e3b505;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-content h3 {
    color: #cf9f03;
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.modal-content p, .modal-content ul {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}
.modal-content ul ul {
    list-style-type: circle;
    padding-left: 20px;
}

.modal-content .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-content .close:hover {
    color: #fff;
    transform: scale(1.1);
}

/* MODAL DE CONFIRMAÇÃO (APÓS ENVIO) */
#confirmModal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0; top: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#confirmModal.show {
    display: flex;
}

.modal-confirm-content {
    background-color: #111;
    padding: 2.5rem;
    border-radius: 12px;
    color: #eee;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 15px #e3b505;
    font-size: 1.2rem;
}

/* Botão Sair dos Termos (dentro do modal) */
.btn-modal-sair {
    padding: 0.8rem 1.5rem;
    background-color: #e3b505;
    color: #111;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
}
.btn-modal-sair:hover {
    background-color: #cf9f03;
    transform: translateY(-2px);
}

/* CORREÇÃO PARA DROPDOWNS DOS CAMPOS 'SELECT' */
form.formulario select {
    position: relative;
    z-index: 2;
}

form.formulario select:focus {
    z-index: 3;
}

/* Estilos para pré-visualização de imagens */
.image-preview-container {
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px dashed #444;
    border-radius: 8px;
    padding: 10px;
    background-color: #1a1a1a;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
}

/* Indicador de carregamento */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: #e3b505;
    font-size: 1.1rem;
    font-weight: bold;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #e3b505;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* MEDIA QUERIES PARA RESPONSIVIDADE */
@media (max-width: 1024px) {
    .container {
        width: 90%;
        margin: 1.5rem auto;
        padding: 1.8rem;
    }
    .intro h1 {
        font-size: 1.8rem;
    }
    .formulario h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 1rem auto;
        padding: 1.5rem;
    }
    body.registration-page-body {
        padding: 0 0.5rem;
    }
    .floating-logo {
        width: 80px;
        top: 10px;
        left: 10px;
    }
    form.formulario input,
    form.formulario select,
    form.formulario textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    .intro h1 {
        font-size: 1.7rem;
    }
    .intro p {
        font-size: 1rem;
    }
    .modal-content {
        margin: 1rem;
        padding: 2rem;
        max-height: 95vh;
    }
    .modal-content h2 {
        font-size: 1.8rem;
    }
    .modal-content h3 {
        font-size: 1.2rem;
    }
    .modal-content p, .modal-content ul {
        font-size: 0.9rem;
    }
    .check-termos {
        font-size: 0.85rem;
    }
    .btn-termos {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    .modal-confirm-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 98%;
        padding: 1rem;
    }
    .floating-logo {
        width: 60px;
        top: 5px;
        left: 5px;
    }
    form.formulario button[type="submit"] {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    .modal-content {
        margin: 1rem;
        padding: 2rem;
    }
    .modal-content h2 {
        font-size: 1.7rem;
    }
    .modal-content h3 {
        font-size: 1.3rem;
    }
    .modal-content p, .modal-content ul {
        font-size: 1rem;
    }
    .check-termos {
        font-size: 1rem;
    }
    .btn-termos {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    .modal-confirm-content {
        padding: 2rem;
        font-size: 1.1rem;
    }
}