.js input[type=file] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

input[type=file] + label {
    width: 100%;
    font-size: 1.25rem;
    /* 20px */
    font-weight: 300;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
    overflow: hidden;
    padding: 0.625rem 1.25rem;
    /* 10px 20px */
}

.no-js input[type=file] + label {
    display: none;
}

input[type=file]:focus + label,
input[type=file].has-focus + label {
    outline: 1px dotted #000;
    outline: -webkit-focus-ring-color auto 5px;
}

input[type=file] + label * {
    /* pointer-events: none; */
    /* in case of FastClick lib use */
}

/* style 2 */

input[type=file] + label {
    color: #005129;
    border: 2px solid currentColor;
}
input[type=file] + label:hover {
    background-color: #005129;
    color:white;
}
@media screen and (max-width: 980px) {
    input[type=file] + label {
        font-size: 10px;
    }
    .alert-file-input {
        position: absolute;
        margin-bottom: -11px;
        color: white;
        z-index: 1000;
        right: 35px;
        top: 10px;
        height: 37px !important;
    }
}


.error-file-input {
    background: #dc3545;
}
.success-file-input {
    background: #28a745;
}
.alert-file-input {
    float: right;
    width: 40px;
    margin-right: -20px;
    margin-top: -10px;
    /*height: 50px;*/
    margin-bottom: -11px;
    line-height: 46px;
    color: white;
    padding-left: 13px;
    z-index: 1000;
}

input[type=file] + label span{
    position: absolute;
    margin-left: 10px;
    z-index: 999;
}