  /* General Styling for the Upload Section */
  #image-upload-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

/* Styling for Each Upload Container */
.custom-upload-container {
    width: 100%;
    /* Adjust for 3 items per row */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px dashed #cccccc;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    transition: border-color 0.3s ease;
    margin-top: 15px;
}

/* Drag-and-Drop Area */
.custom-drag-and-drop-area {
    display: block;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 150px;
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}

.custom-drag-and-drop-area p {
    margin: 0;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.custom-drag-and-drop-area .custom-helper-text {
    visibility: visible;
    margin-top: 4rem !important
}

.custom-drag-and-drop-area .custom-drag-message {
    visibility: hidden;
    font-weight: bold;
    color: #333;
}

/* Highlight on Drag Over */
.custom-drag-and-drop-area.custom-dragover {
    border: 2px solid #3b82f6;
    background-color: #e8f1ff;
}

.custom-drag-and-drop-area.custom-dragover .custom-helper-text {
    visibility: hidden;
}

.custom-drag-and-drop-area.custom-dragover .custom-drag-message {
    visibility: visible;
}

/* File Input (Hidden) */
.custom-file-input {
    display: none;
}

/* Preview Area */
.custom-preview-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    width: 100%;
}

/* Preview Box */
.custom-preview-box {
    position: relative;
    width: 150px;
    /* height: 80px; */
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Preview Image */
.custom-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #image-upload-section {
        gap: 15px;
    }

    .custom-upload-container {
        width: 100%;
        /* 2 items per row */
    }
}

@media (max-width: 480px) {
    .custom-upload-container {
        width: 100%;
        /* 1 item per row */
    }
}

.info-icon {
    position: relative;
    display: inline-block;
    color: #007bff;
    cursor: pointer;
    font-size: 16px;
}

.info-icon i {
    font-size: 16px;
}

.info-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 25px;
    /* Adjust as per spacing requirement */
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: pre-line;
    /* Allows line breaks */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out;
    text-align: left;
    /* Aligns multi-line text to the left */
    width: max-content;
    max-width: 200px;
    /* Restrict width for better display */
}

.info-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 15px;
    /* Adjust based on tooltip position */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #000 transparent;
    /* Arrow pointing up */
    z-index: 999;
    opacity: 1;
    visibility: visible;
}

.info-icon::after,
.info-icon::before {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}
