/* CF7 Modern Upload Styles */
.cf7-modern-upload-wrapper {
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cf7-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cf7-upload-area:hover {
    border-color: #6366f1;
    background: #f0f0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.cf7-upload-area.cf7-drag-over {
    border-color: #10b981;
    background: #f0fdf4;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.cf7-upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.cf7-upload-area:hover .cf7-upload-icon {
    transform: scale(1.1);
}

.cf7-upload-text {
    color: #6b7280;
}

.cf7-main-text {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #374151;
}

.cf7-sub-text {
    display: block;
    font-size: 14px;
    color: #9ca3af;
}

.cf7-file-list {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.cf7-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.3s ease;
}

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

.cf7-file-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cf7-file-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cf7-file-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    margin-bottom: 2px;
}

.cf7-file-size {
    color: #6b7280;
    font-size: 12px;
}

.cf7-file-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cf7-file-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.cf7-file-remove:active {
    transform: scale(0.95);
}

/* Прогресс загрузки */
.cf7-upload-progress {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.cf7-upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Сообщения об ошибках */
.cf7-upload-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cf7-upload-area {
        padding: 30px 15px;
        min-height: 100px;
    }
    
    .cf7-upload-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .cf7-main-text {
        font-size: 16px;
    }
    
    .cf7-file-item {
        padding: 10px 12px;
    }
    
    .cf7-file-name {
        font-size: 13px;
    }
    
    .cf7-file-remove {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cf7-upload-area {
        padding: 20px 10px;
        min-height: 80px;
    }
    
    .cf7-upload-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .cf7-main-text {
        font-size: 14px;
    }
    
    .cf7-sub-text {
        font-size: 12px;
    }
}