/* Estilos para o formulário de cadastro de membros */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

/* Título principal */
h1 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Subtítulo */
.subtitle {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Formulário */
form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Grupos de formulário */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

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

/* Campos obrigatórios */
.text-danger {
    color: #dc3545 !important;
}

/* Seções destacadas */
.section-highlight {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    text-align: center;
}

/* Upload de arquivo */
.file-upload {
    position: relative;
}

.upload-container {
    position: relative;
    display: inline-block;
}

#foto {
    display: none;
}

.custom-file-upload {
    display: inline-block;
    padding: 12px 25px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.custom-file-upload:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.custom-file-upload i {
    margin-right: 8px;
}

/* Preview da foto */
#photo-preview {
    margin-top: 20px;
    text-align: center;
}

#preview-image {
    max-width: 300px;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Filhos - container dinâmico */
.filhos-container {
    margin-bottom: 20px;
}

.filho {
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.filho:last-child {
    margin-bottom: 0;
}

/* Botões para filhos */
.add-filho-btn {
    background-color: #28a745;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add-filho-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.remove-filho {
    background-color: #dc3545;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

.remove-filho:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

.remove-filho .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
}

.remove-filho:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Termo de consentimento */
.textarea-container {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    background-color: #f8f9fa;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

/* Checkbox */
.form-check {
    margin: 20px 0;
}

.form-check-input {
    margin-top: 4px;
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

/* Botão principal */
#btn-gravar {
    background-color: #007bff;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

#btn-gravar:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

#btn-gravar:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mensagem de sucesso */
#containerResultado {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 3px solid #28a745;
}

#containerResultado h2 {
    color: #28a745;
    margin-bottom: 20px;
}

#containerResultado p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Loading spinner */
.disabled-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    color: #007bff;
    text-align: center;
}

.loading-spinner i {
    font-size: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal customizado */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #007bff;
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 20px;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 30px;
    font-size: 16px;
    line-height: 1.6;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

/* Mensagens de erro */
.text-danger {
    font-size: 14px;
    margin-top: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    form {
        padding: 20px;
    }
    
    .logo img {
        max-width: 150px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .section-highlight {
        padding: 15px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    #btn-gravar {
        width: 100%;
        padding: 15px;
    }
    
    .remove-filho {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    #preview-image {
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .filho .col-md-6,
    .filho .col-md-5 {
        margin-bottom: 15px;
    }
    
    .remove-filho {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .textarea-container {
        max-height: 150px;
        font-size: 13px;
    }
    
    .custom-file-upload {
        width: 100%;
        text-align: center;
    }
}

/* Animações suaves */
.form-group {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.form-control:hover {
    border-color: #007bff;
}

.section-highlight:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Estados de validação */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.04-.04c.18-.18.39-.36.6-.52l.22-.15.14-.1.13-.07.35-.2c.16-.1.31-.2.45-.31.14-.11.28-.22.41-.34.13-.12.26-.24.38-.37l.11-.11c.1-.1.2-.2.29-.31.09-.11.18-.22.26-.34.08-.12.15-.24.22-.37.07-.13.13-.26.18-.4.05-.14.09-.29.12-.44.03-.15.05-.3.06-.46h.03l-.01.49c-.01.15-.04.3-.07.44-.03.14-.07.28-.12.42-.05.14-.11.27-.18.4-.07.13-.14.25-.22.37-.08.12-.17.23-.26.34-.09.11-.19.21-.29.31l-.11.11c-.12.13-.25.25-.38.37-.13.12-.27.23-.41.34-.14.11-.29.21-.45.31l-.35.2-.13.07-.14.1-.22.15c-.21.16-.42.34-.6.52l-.04.04-.29.29z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
} 