/**
 * Sistema HERMES - Estilos Customizados
 * Conferência Anprotec 2026
 */

:root {
    --cor-primaria: #5a7441;
    --cor-secundaria: #30465e;
    --cor-fundo: #ccdff4;
    --cor-branco: #ffffff;
    --cor-texto: #333333;
    --cor-borda: #dee2e6;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--cor-fundo);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--cor-texto);
    min-height: 100vh;
}

/* Header e Banner */
.banner-topo {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.banner-rodape {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-top: 2rem;
}

/* Container Principal */
.container-inscricao {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Cards e Formulários */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
    border-radius: 12px 12px 0 0 !important;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    background-color: var(--cor-branco);
    border-radius: 0 0 12px 12px;
}

/* Títulos */
.titulo-pagina {
    color: var(--cor-primaria);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.subtitulo {
    color: var(--cor-secundaria);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Botões */
.btn-primario {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: var(--cor-branco);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primario:hover {
    background-color: #4a6235;
    border-color: #4a6235;
    color: var(--cor-branco);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(90, 116, 65, 0.3);
}

.btn-secundario {
    background-color: var(--cor-secundaria);
    border-color: var(--cor-secundaria);
    color: var(--cor-branco);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-secundario:hover {
    background-color: #243548;
    border-color: #243548;
    color: var(--cor-branco);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(48, 70, 94, 0.3);
}

.btn-outline-primario {
    background-color: transparent;
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primario:hover {
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
}

/* Formulários */
.form-label {
    font-weight: 600;
    color: var(--cor-secundaria);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid var(--cor-borda);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 0.2rem rgba(90, 116, 65, 0.25);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid, .form-select.is-valid {
    border-color: var(--cor-primaria);
}

/* Campos obrigatórios */
.required::after {
    content: " *";
    color: #dc3545;
}

/* Checkbox e Radio */
.form-check-input:checked {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
}

.form-check-label {
    margin-left: 0.5rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.progress-step {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--cor-borda);
    color: var(--cor-texto);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.step-number.active {
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
}

.step-number.completed {
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
}

.step-text {
    font-weight: 600;
    color: var(--cor-texto);
}

.step-text.active {
    color: var(--cor-primaria);
}

.step-line {
    width: 50px;
    height: 3px;
    background-color: var(--cor-borda);
    margin: 0 0.5rem;
}

.step-line.completed {
    background-color: var(--cor-primaria);
}

/* Upload de arquivo */
.upload-area {
    border: 2px dashed var(--cor-borda);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--cor-primaria);
    background-color: rgba(90, 116, 65, 0.05);
}

.upload-area.dragover {
    border-color: var(--cor-primaria);
    background-color: rgba(90, 116, 65, 0.1);
}

.upload-icon {
    font-size: 3rem;
    color: var(--cor-primaria);
    margin-bottom: 1rem;
}

/* Tabelas */
.table-custom {
    background-color: var(--cor-branco);
    border-radius: 8px;
    overflow: hidden;
}

.table-custom thead {
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
}

.table-custom th {
    font-weight: 600;
    padding: 1rem;
}

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
}

/* Resumo de Inscrição */
.resumo-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cor-borda);
}

.resumo-item:last-child {
    border-bottom: none;
}

.resumo-label {
    font-weight: 600;
    color: var(--cor-secundaria);
}

.resumo-valor {
    color: var(--cor-texto);
}

.resumo-total {
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.resumo-total .resumo-label,
.resumo-total .resumo-valor {
    color: var(--cor-branco);
    font-size: 1.25rem;
}

/* Alertas customizados */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(90, 116, 65, 0.15);
    color: var(--cor-primaria);
}

.alert-info {
    background-color: rgba(48, 70, 94, 0.15);
    color: var(--cor-secundaria);
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--cor-borda);
    border-top-color: var(--cor-primaria);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .container-inscricao {
        padding: 10px;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-step {
        margin-bottom: 1rem;
    }
    
    .step-line {
        display: none;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-primario, .btn-secundario {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Tooltip customizado */
.tooltip-custom {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip-custom .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--cor-secundaria);
    color: var(--cor-branco);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
}

.tooltip-custom:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Dados Bancários */
.dados-bancarios {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
}

.dados-bancarios h5 {
    color: var(--cor-secundaria);
    margin-bottom: 1rem;
}

.dados-bancarios p {
    margin-bottom: 0.5rem;
}

.dados-bancarios strong {
    color: var(--cor-primaria);
}

/* Campo oculto inicialmente */
.campo-oculto {
    display: none;
}

/* Animação de entrada */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Lista de grupo */
.lista-grupo {
    max-height: 300px;
    overflow-y: auto;
}

.participante-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.participante-nome {
    font-weight: 600;
}

.participante-instituicao {
    font-size: 0.875rem;
    color: #6c757d;
}

.lider-badge {
    background-color: var(--cor-primaria);
    color: var(--cor-branco);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Termos e condições */
.termos-link {
    color: var(--cor-primaria);
    text-decoration: underline;
    font-weight: 600;
}

.termos-link:hover {
    color: var(--cor-secundaria);
}
