/**
 * Estilos do formulário de cadastro - Habitação
 */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: none;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
}

.form-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid #667eea;
}

.section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.form-label .text-danger {
    color: #dc3545 !important;
    font-weight: bold;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a91 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Estilos para campos de upload */
.section-header-upload {
    margin-bottom: 25px;
}

.section-header-upload h4 {
    color: #20b2aa;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-divider {
    height: 3px;
    background: linear-gradient(90deg, #20b2aa 0%, #48d1cc 100%);
    border-radius: 2px;
    margin-top: 5px;
}

.upload-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: block;
    font-size: 1rem;
}

.upload-label i {
    color: #20b2aa;
}

.upload-box {
    position: relative;
    border: 2px dashed #20b2aa;
    border-radius: 10px;
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-box:hover {
    border-color: #48d1cc;
    background-color: #f0ffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.2);
}

.upload-box.dragover {
    border-color: #48d1cc;
    background-color: #e0ffff;
    border-style: solid;
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-content {
    pointer-events: none;
    z-index: 1;
}

.upload-icon {
    font-size: 4rem;
    color: #c0c0c0;
    margin-bottom: 15px;
    display: block;
}

.upload-text {
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
    margin: 10px 0;
}

.upload-info {
    color: #6c757d;
    font-size: 0.875rem;
    display: block;
    margin-top: 8px;
}

.upload-files-list {
    margin-top: 15px;
    width: 100%;
    text-align: left;
}

.upload-file-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.upload-file-item i {
    color: #20b2aa;
    margin-right: 8px;
}

.upload-file-name {
    flex: 1;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-file-size {
    color: #6c757d;
    margin-left: 10px;
    font-size: 0.8rem;
}

.upload-file-remove {
    color: #dc3545;
    cursor: pointer;
    margin-left: 10px;
    font-size: 1rem;
    transition: color 0.2s;
}

.upload-file-remove:hover {
    color: #c82333;
}

.upload-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
}

.upload-thumbnail-pdf {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-right: 12px;
    font-size: 2rem;
    color: #dc3545;
}

#laudo_medico_candidato_container,
#laudo_medico_conjuge_container {
    animation: fadeIn 0.3s ease-in;
}

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

/* Estilos para preview de arquivos */
.file-preview-item {
    margin-bottom: 15px;
}

.file-preview-content {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.file-preview-content:hover {
    background: #e9ecef;
    border-color: #20b2aa;
}

.pdf-preview {
    border-left: 4px solid #dc3545;
}

.image-preview {
    border-left: 4px solid #28a745;
}

.pdf-icon {
    font-size: 2.5rem;
    color: #dc3545;
    margin-right: 15px;
}

.file-preview-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    border: 2px solid #dee2e6;
}

.file-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-preview-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-preview-size {
    font-size: 0.875rem;
    color: #6c757d;
}

.file-preview-remove {
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 15px;
    transition: color 0.2s;
    padding: 5px;
}

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

/* Estilos para campos com erro de validação */
.campo-erro {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.mensagem-erro-campo {
    font-size: 0.875rem;
    margin-top: 5px;
    color: #dc3545;
}

#alert-validacao {
    margin-bottom: 20px;
}

#alert-validacao ul {
    padding-left: 20px;
}

#alert-validacao li {
    margin-bottom: 5px;
}
