.upload-modal form {
    background: none;
}
.upload-modal .global-modal-content {
    max-height: 800px;
    overflow-y: auto;
    width: 70%;
    font-size: 0.9rem;
    color: #000;
    line-height: 1.5;
}
.upload-modal .global-head img {
    max-height: 35px;
}
.upload-modal .instruction-section,
.upload-modal .print-file-rule-section,
.upload-modal .upload-section {
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 0 0 10px 0;
    width: 100%;
}
.upload-modal .instruction-section ul {
    width: 100%;
    font-size: 0.9rem !important;
}
.upload-modal .print-file-rule-section h3 {
    width: 100%;
}
.upload-modal .instruction-section ul,
.upload-modal .print-file-rule-section .rule-column,
.upload-modal .upload-section .upload-wrapper {
    padding-left: 32px;
}
.upload-modal .global-footer {
    clear: both;
}
.upload-modal h3 {
    font-size: 1.3rem;
    font-weight: 600;
}
.upload-modal i.bi {
    margin-right: 10px;
}
.upload-modal .uploadInstruct {
    list-style: none;
    padding-left: 0;
}
.upload-modal .uploadInstruct .instructItem {
    position: relative;
    padding-left: 20px;
    margin-left: -4px;
}
.upload-modal .uploadInstruct .instructItem::before {
    content: "\f26e"; /* Unicode code of bi-check-lg */
    font-family: "bootstrap-icons";
    font-weight: normal;
    position: absolute;
    left: 0;
    top: -2px;
    color: #28a745;
    font-size: 1rem;
}
.upload-modal .uploadInstruct .instructItem:nth-of-type(n+4) {
    display: none;
}
.upload-modal .read-more-btn {
    padding: 3px 7px;
    font-size: 1em;
    border-radius: 5px;
    background-color: #FE9E10;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    margin-left: 50px;
    margin-top: 5px;
    outline: none;
}
.upload-modal .upload-wrapper label {
    margin-bottom: 0;
}
.upload-modal label.custom-upload {
    padding: 3px 20px;
    background-color: #FE9E10;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    font-size: inherit;
}
.upload-modal .read-more-btn:hover,
.upload-modal #template-btn-wrapper .inputButton:hover,
.upload-modal .custom-upload:hover {
    background-color: #333;
}
.upload-modal .custom-upload input[type="file"] {
    display: none;
}
.uploaded-files-section .file-section {
    position: relative;
}

.uploaded-files-section .file-section .preview-block {
    display: none;
    padding: 3px;
    border: #ccc 1px solid;
    background: #ccc;
    position: absolute;
    bottom: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.uploaded-files-section .file-section .preview-block img {
    max-height: 420px;
}
.uploaded-files-section .file-link:hover ~ .preview-block {
    display: block;
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 768px) {
    .upload-modal #template-btn-wrapper {
        display: inline-flex;
    }
    .upload-modal .print-file-rule-section .rule-column:nth-of-type(2) {
        margin-top: 10px;
    }
}