.file-upload-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.file-upload-box {
    background: white;
    border: 1px dashed #ccc;
    border-radius: 2px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.file-upload-box:hover {
    background: #fafafa;
}

.file-upload-box.dragover {
    border-color: #333;
    background: #fafafa;
}

.upload-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.browse-button {
    background: #bbb;
    color: white;
    border: none;
    padding: 9px 24px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.browse-button:hover {
    opacity: 0.8;
}

.file-info-container {
    margin-top: 12px;
    max-height: 400px;
    overflow-y: auto;
    /* padding-right: 5px; */
}

.file-info-container::-webkit-scrollbar {
    width: 6px;
}

.file-info-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.file-info-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.file-info-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.file-info {
    background: rgb(243, 242, 242);
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: left;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-info.removing {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
    }
}

.file-info:last-child {
    margin-bottom: 0;
}

.file-info .remove-file {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: #b7b6b6;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    line-height: 1;
    width: 25px;
    height: 25px;
    font-family: "Times New Roman", serif;
}

.file-info .file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 40px;
}

.file-thumbnail {
    width: 60px;
    height: 60px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #6c757d;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    /* width: 40%; */
}

.file-size {
    color: #6c757d;
    font-size: 14px;
}

.file-info .remove-file:hover {
    background: #c82333;
}

.submit-button {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.submit-button:hover {
    background: #f8f9fa;
    border-color: #007cba;
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.upload-progress {
    display: none;
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #007cba, #005a87);
    width: 0%;
    transition: width 0.3s ease;
}


.uploading-now {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.hidden {
    display: none;
}

/* Form integration styles */
.cc-form__row {
    margin-bottom: 20px;
}

.cc-form__row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.cc-form__row input[type="text"],
.cc-form__row textarea,
.cc-form__row select {
    transition: border-color 0.3s ease;
}

.cc-form__row input[type="text"]:focus,
.cc-form__row textarea:focus,
.cc-form__row select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.cc-form__row textarea {
    min-height: 100px;
    resize: vertical;
}

.cc-form__required {
    color: #dc3545;
}

.cc-form__optional {
    color: #6c757d;
    font-weight: normal;
}

/* Adjust file upload box for form integration */
.cc-form .file-upload-box {
    margin-bottom: 0;
}

.cc-form .submit-button {
    margin-top: 15px;
}

