/*!
Theme Name:Felan Child
Theme URI: https://felan.ricetheme.com/
Author: RiceTheme
Author URI: https://ricetheme.com/
Description: This is a child theme of Felan
Template: felan
Version: 1.0.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.4
License URI: https://choosealicense.com/licenses/gpl-2.0/
Text Domain:felanchild
Tags: editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/


/*code srt from here*/

/* Main Form Container */
#freelancer-verify-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Section Headers */
.felan-verify-type {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.verify-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

#verify-type {
    width: 100%;
    max-width: 300px;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease;
}

#verify-type:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Document Upload Section */
.document-upload-section {
    margin-bottom: 40px;
}

.document-type-header {
    margin-bottom: 25px;
}

#selected-document-type {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

/* Upload Columns Layout */
.felan-image-freelancer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .felan-image-freelancer {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.upload-column {
    display: flex;
    flex-direction: column;
}

/* Upload Labels */
.upload-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    margin-bottom: 15px;
}

/* Upload Boxes */
.upload-box {
    flex: 1;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    background: #f9fafb;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #007cba;
    background: #f0f7ff;
    transform: translateY(-2px);
}

.upload-box.dragover {
    border-color: #007cba;
    background: #e6f2ff;
}

/* Upload Placeholder */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-icon {
    font-size: 32px;
    color: #6b7280;
    margin-bottom: 8px;
}

.upload-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: #007cba;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* Upload Buttons */
.upload-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.upload-button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Preview Images */
#felan_avatar_view img,
#felan_thumbnail_view img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Hide upload placeholder when image is present */
#felan_avatar_view:has(img) ~ #felan_add_avatar,
#felan_thumbnail_view:has(img) ~ #felan_add_thumbnail {
    display: none;
}

/* Show preview when image is present */
#felan_avatar_view:has(img),
#felan_thumbnail_view:has(img) {
    display: block;
    margin-bottom: 15px;
}

#felan_avatar_view:not(:has(img)),
#felan_thumbnail_view:not(:has(img)) {
    display: none;
}

/* Form Field */
.form-field {
    position: relative;
    flex: 1;
}

.errors-log {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

/* Submit Button */
.button-warpper {
    text-align: right;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.felan-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.felan-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.felan-button:active {
    transform: translateY(0);
}

.btn-loading {
    display: none;
}

.felan-button.loading .btn-loading {
    display: inline-block;
}

/* Status Messages */
#felan_drop_avatar,
#felan_drop_thumbnail {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* File input positioning fix */
.moxie-shim {
    z-index: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .upload-box {
        padding: 15px;
        min-height: 150px;
    }
    
    .upload-icon {
        font-size: 24px;
    }
    
    .upload-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .felan-button {
        width: 100%;
        justify-content: center;
    }
}

/* Helper text */
.upload-box::before {
    content: "Click to upload or drag and drop";
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    display: block;
}

/* Form validation states */
#verify-type.error,
.upload-box.error {
    border-color: #dc3545;
}

#verify-type.error:focus,
.upload-box.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Loading state */
.felan-button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success state */
.upload-box.success {
    border-color: #28a745;
    background: #f0fff4;
}

/* Animation for file drop */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.upload-box.dragover {
    animation: pulse 0.5s ease;
}

/*code end from here*/
