.form-materiali-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-materiali-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-materiali .form-group {
    margin-bottom: 20px;
}

.form-materiali label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-materiali .required {
    color: #e53935;
}

.form-materiali input[type="text"],
.form-materiali select,
.form-materiali textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 16px;
}

.form-materiali textarea {
    resize: vertical;
    min-height: 120px;
}

.form-materiali .dropzone-container {
    border: 2px dashed #ddd;
    padding: 10px;
    text-align: center;
    background-color: #fafafa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-materiali .dropzone-container:hover {
    border-color: #aaa;
}

.form-materiali .dropzone {
    padding: 30px 20px;
}

.form-materiali .dz-message {
    font-size: 18px;
    color: #666;
}

.form-materiali .files-preview {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: white;
    display: none;
}

.form-materiali .file-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.form-materiali .file-item.uploading {
    background-color: #f0f8ff;
    border-color: #cce5ff;
}

.form-materiali .file-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.form-materiali .file-name {
    margin-left: 8px;
    font-size: 14px;
}

.form-materiali .file-actions {
    display: flex;
    align-items: center;
}

.form-materiali .file-progress {
    flex: 1;
    height: 4px;
    background-color: #e0e0e0;
    margin-left: 10px;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.form-materiali .file-progress .progress {
    height: 100%;
    background-color: #4caf50;
    width: 0%;
}

.form-materiali .file-description {
    width: 100%;
    margin-top: 8px;
}

.form-materiali .file-description input {
    width: 100%;
    font-size: 14px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-materiali .remove-file {
    background: none;
    border: none;
    color: #e53935;
    font-size: 20px;
    cursor: pointer;
    padding: 0 8px;
}

.form-materiali .remove-file:hover {
    color: #c62828;
}

.form-materiali .progress-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
    display: none;
}

.form-materiali .progress-bar .progress {
    height: 100%;
    background-color: #4caf50;
    width: 0%;
    transition: width 0.3s ease;
}

.form-materiali .submit-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-materiali .submit-btn:hover {
    background-color: #0d8aee;
}

.form-materiali-errors {
    background-color: #ffebee;
    border-left: 4px solid #e53935;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.form-materiali-errors .error {
    color: #c62828;
    margin: 5px 0;
}

.form-materiali-success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.form-materiali-success p {
    color: #2e7d32;
    margin: 5px 0;
}