/* ==========================================================================
   INSCRICAO.HTML - Formulário de Candidatura e Inscrição Oficial
   Baseado na identidade visual padrão (politicas-estatutos.css / historia.css)
   ========================================================================== */

body {
    background-color: #f8fafc !important; /* Um fundo cinza quase impercetível para destacar o formulário branco */
}

/* --- CABEÇALHO DA PÁGINA (Page Header) --- */
.page-header {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 34, 68, 0.95)), url('../img/page-header.jpg') center center no-repeat;
    background-size: cover;
    background-color: #003366; 
    padding: 40px 0 !important; 
    margin-bottom: 40px !important; 
    border-bottom: 4px solid #ffcc00; 
}

/* Texto visível e contrastado no cabeçalho */
.page-header h1, 
.page-header h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

.page-header a {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.2s ease;
}

.page-header a:hover {
    color: #ffffff !important;
    text-decoration: none;
}


/* --- BLOCO DO FORMULÁRIO (Card Container) --- */
.registration-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 5px;
}

/* Títulos das Secções do Formulário (Ex: "1. Dados Pessoais", "2. Escolha do Curso") */
.form-section-title {
    color: #003366 !important; /* Azul CDL */
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 20px;
    margin-top: 25px;
}


/* --- CAMPOS DE ENTRADA (Inputs, Selects e Textareas) --- */
.form-group label {
    color: #1e293b; /* Cinza-grafite */
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.form-control {
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    padding: 10px 15px !important;
    height: auto !important;
    color: #334155 !important;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out !important;
}

/* Efeito de Foco Avançado (Quando o utilizador clica no campo) */
.form-control:focus {
    border-color: #003366 !important; /* Muda para o azul CDL */
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15) !important; /* Brilho azul suave */
    background-color: #ffffff !important;
}


/* --- CAMPO PERSONALIZADO PARA UPLOAD DE DOCUMENTOS --- */
.custom-file-upload {
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-file-upload:hover {
    border-color: #003366;
    background: #f1f5f9;
}

.custom-file-upload i {
    color: #003366;
    margin-bottom: 10px;
}


/* --- BOTÕES DE SUBMISSÃO --- */
.btn-submit-registration {
    background-color: #003366 !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px;
}

.btn-submit-registration:hover {
    background-color: #002244 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.25);
}


/* --- BOTÃO FLUTUANTE "VOLTAR AO TOPO" --- */
#backToTop {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #003366 !important;
    border: none;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: #002244 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* --- AJUSTES DE RESPONSIVIDADE (Ecrãs de Telemóveis) --- */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0 !important;
    }
    
    .page-header h3 {
        font-size: 2rem !important;
    }

    .registration-card {
        padding: 20px !important; /* Reduz as margens internas do formulário em ecrãs pequenos */
    }
}