.custom-drop-area {
    border: 2px dashed #ccc;
    padding: 10px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    position: relative;
    cursor: pointer;
    width: 100%;
}
.elementor-signature-container{
    margin-bottom: 40px;
}
.custom-drop-area:hover {
    background-color: #f0f8ff;
    border-color: #0073e6;
}
.elementor-signature-container .elementor_signature_clear {
    width: 25px !important;
    height: 25px !important;
    position: absolute !important;
    right: 0px;
    z-index: 9999;
    left: 0;
    bottom: -30px;
    margin-bottom: 0px;
    top: auto;
}



div.elementor-field-type-signature {
    padding-top: 0px;
}
div.elementor-signature-container .elementor_signature_clear {
    width: 150px !important;
    height: 25px !important;
    position: absolute !important;
    right: 0px;
    z-index: 9999;
    left: 0;
    bottom: -30px;
    margin-bottom: 0px;
    top: auto;
}
.custom-drop-area strong {
    font-size: 30px;
    color: #333;
}

.custom-drop-area p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}
.elementor-field-type-signature .width-100 {
    width: 100%;
    margin-top: 0;
}

.browse-files-btn {
    background-color: transparent;
    border: none;
    color: #5a5a5a;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
}

.browse-files-btn:hover {
    color: #005bb5;
}

.file-limit-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #999;
}


/* Overlay background */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Popup content */
.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    text-align: left;
    animation: fadeIn 0.3s ease-in-out;
    border: 2px solid #000;
    font-size: 14px;
    position: relative;
}
.popup-content h3{
    margin-top: 0;
}
.popup-content{
    padding-bottom: 40px;
}
/* Close button */
.close-popup-btn {
    position: absolute;
    right: 0px;
    bottom: 0px;
    padding: 10px 12px;
    background-color: #ffffff;
    color: #606060;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
.custom-drop-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

.custom-drop-area.dragover {
    border-color: #00f;
    background-color: #f0f8ff;
}

.file-preview-container {
    margin-top: 15px;
}

.file-preview-list {
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.file-preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 3px;
    background: #f9f9f9;
}

.file-preview-item button {
    background: red;
    color: white;
    border: none;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 3px;
}

.file-preview-item button:hover {
    background: darkred;
}


/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
